SEO Stack Hub Use Free Tools

What is a canonical tag and when should I use it?

IndexingTechnical SEOAsked by SEO Stack Hub · October 27, 2026

What is a canonical tag, and when should I add one to my pages?

1 answer

SEO Stack Hub TeamNov 3, 2026

A canonical tag is a small line of HTML in the <head> of a page that tells search engines which URL is the main version of that content. It looks like this: <link rel="canonical" href="https://example.com/page/">.

You need it whenever the same or very similar content can be reached at more than one URL. Common cases are:

URLs with tracking or sorting parameters, such as ?utm_source= or ?sort=price
HTTP and HTTPS, or www and non-www versions that both load
Product pages that appear in several categories with different paths
Printer-friendly or AMP versions of an article
Content you republish on another site (the copy should point back to the original)

Every indexable page should also have a self-referencing canonical that points to its own clean URL. Most SEO plugins, such as Rank Math or Yoast, add this automatically.

A few rules keep canonicals working. Point the tag to a page that returns a 200 status, not a redirect or a 404. Do not canonicalise page 2 of a blog archive to page 1, because the pages have different content. Keep the canonical consistent with your sitemap and internal links, so all three signals agree. Remember that Google treats the canonical as a strong hint, not a command; if your internal links and sitemap point elsewhere, Google may choose a different URL.

If Search Console shows "Duplicate, Google chose different canonical than user", check which URL your internal links and sitemap use, and make them match the canonical you want. You can review a page's tags quickly with our free SEO tools.

SEO Stack Hub was founded by Zahid Butt.