Canonical tag

A canonical tag (rel="canonical") tells search engines which URL is the preferred version when several URLs show the same or very similar content. It consolidates ranking signals onto that one URL, but it is a hint, not a command.

Many sites serve the same content on more than one URL: with and without tracking parameters, through different category paths, in a print version or with sorting options. A canonical tag is a link element in the head of a page, rel="canonical" with an href to the preferred URL, that tells search engines which version you want indexed and shown.

Why it matters. Without a clear canonical, Google picks one itself. Links, relevance and other signals may then be split over several URLs, and the version that ranks may not be the one you want. A consistent canonical helps consolidate signals and keeps your reports in Search Console readable.

Ways to declare a canonical:

  • A rel="canonical" link element in the HTML head.
  • A Link HTTP header, useful for PDFs and other non-HTML files.
  • Listing only canonical URLs in your XML sitemap (a weaker signal).
  • A 301 redirect, the strongest signal, when the duplicate does not need to exist for users.

It is a hint. Google weighs the canonical tag against other signals such as redirects, internal links, sitemaps, hreflang and HTTPS. If they conflict, Google may choose another URL. The URL Inspection tool shows both the user-declared canonical and the Google-selected canonical.

Common mistakes:

  • Every page canonicalised to the homepage, which effectively asks Google to drop all other pages.
  • Paginated pages 2, 3 and further all pointing to page 1. Each paginated page should normally canonicalise to itself.
  • Canonical pointing to a URL that redirects, returns 404 or carries noindex.
  • Mixing signals: a canonical to URL A while internal links and the sitemap all use URL B.
  • Relative URLs or the wrong protocol and hostname in the tag.
  • Combining noindex and canonical on the same page, which sends contradictory messages.

Cross-domain canonicals. When the same article is published on more than one site, the copy can carry a canonical to the original. This is common for syndicated content. For sponsored articles written uniquely for one publisher this is not needed and should not be used, because it would tell Google the publisher's page is not the main version.

Best practice is simple: every indexable page gets a self-referencing canonical with the absolute, clean URL, and duplicates point to that version.

Questions about Canonical tag

Is a canonical tag the same as a redirect?

No. A redirect sends users and bots to another URL; a canonical keeps both URLs accessible and only suggests which one should be indexed. Use a 301 when the duplicate does not need to exist.

Should every page have a self-referencing canonical?

Yes, that is a good default. It protects the page against parameter variations and scrapers that copy your content.

Why did Google ignore my canonical tag?

Usually because other signals point elsewhere, such as internal links, redirects or the sitemap, or because the pages are not similar enough. Align all signals to the same URL.

Related terms