By Plainly Editorial

Updated

First published

What is canonicalization?

Filed under Internet literacy

What is duplicate content and why does it happen?

Duplicate content means the same or very similar content is available at more than one URL. It is usually accidental and comes from how websites are built, not from copying.

Common causes include tracking and sorting parameters (example.com/shoes?sort=price), both http and https versions working, both www and non-www versions working, URLs with and without a trailing slash, separate mobile URLs, printer-friendly pages, and session IDs. Online shops often create many URLs for one product through filters, colours and category paths.

Syndication is another cause: an article you publish may be republished on a partner site. Language or regional variants that are near-identical, such as English pages for the UK and the US, also count as duplicates for Google's purposes.

Is duplicate content bad for SEO?

Google says some duplicate content on a site is normal and is not a violation of its spam policies. There is no penalty for having a print version of a page or a few parameter URLs.

The practical problems are different. Google shows only one version of duplicated content, and it may not pick the one you want. Links and other signals can be split across versions, and crawlers waste time fetching many copies of the same page, which matters most on large sites. Your analytics and Search Console reports can also be harder to read when traffic is spread over several URLs.

What is a canonical URL?

A canonical URL is the URL Google treats as the main, representative version of a page from a group of duplicates. It is the one Google crawls most often and usually shows in search results. The other URLs in the group are treated as alternates.

Google groups pages into duplicate clusters, then picks the canonical using signals such as whether the page uses https, redirects, rel=canonical annotations, sitemap inclusion and internal links. Your declared preference is one signal among these, which is why it is often described as a hint rather than an instruction.

How do you tell Google which URL is canonical?

Redirects are a strong signal. A permanent redirect (301 or 308) sends people and crawlers from the duplicate to the preferred URL. Use it when you do not need the duplicate to be reachable, for example to send http to https or non-www to www.

A rel=canonical link element is also a strong signal. You add <link rel="canonical" href="https://example.com/page"> to the head of each duplicate, and ideally to the canonical page itself. For non-HTML files such as PDFs, you can send the same thing as a Link HTTP header. Use this when the duplicate has to stay accessible, such as a filtered or tracked URL.

Sitemap inclusion is a weak signal. Listing only canonical URLs in your sitemap helps, and it is easy to manage on large sites, but Google still has to work out which duplicates belong to each listed URL.

Internal links support all of these. If your menus and articles link to one version consistently, you reinforce that choice. Google advises using the methods together and making sure they all point to the same URL.

How do you decide which URL should be the canonical?

Pick the version you want people to see and share. In practice that usually means the https version, one consistent choice of www or non-www, one trailing-slash style, and the shortest clean URL without tracking or sorting parameters.

For a product that sits in several categories, choose a single path and use it everywhere. For syndicated articles, the original on your own site should be the canonical. Once you have decided, apply the same choice to redirects, canonical tags, sitemaps, internal links and hreflang annotations, so that every signal tells search engines the same thing.

Why does Google choose a different canonical from mine?

Because rel=canonical and sitemaps are hints, Google can override them. It happens when signals conflict, for example when the tag points to one URL, the sitemap lists another and internal links point to a third. It also happens when the declared canonical redirects, returns an error, is blocked, or is not actually a duplicate of the page.

Google may also prefer a URL it considers more useful to searchers, such as the https version over http, or a cleaner URL over one full of parameters. Sometimes its choice is reasonable and the simplest fix is to accept it and align your own signals with it.

How do you check the canonical in Search Console?

Paste the URL into the URL Inspection tool in Google Search Console. The page indexing details show the user-declared canonical (what your page says) and the Google-selected canonical (what Google actually chose). If they differ, Google is using another URL for that content.

The Page indexing report also groups URLs under reasons such as "Duplicate, Google chose different canonical than user" and "Alternate page with proper canonical tag". The second is normally fine: it means Google followed your tag. After fixing a problem, use Request Indexing in URL Inspection to ask Google to reprocess the page.

What are the most common canonicalization mistakes?

Using robots.txt to block duplicates is a frequent one. If Google cannot crawl a duplicate, it cannot see its canonical tag, and links to it may still be counted. Google also advises against using noindex to choose a canonical within a site, and against the URL removal tool for this job, because it hides all versions.

Other mistakes include pointing every page's canonical to the home page, canonical tags that use relative or wrong-protocol URLs, more than one canonical tag on a page, tags added by JavaScript that conflict with the HTML, and paginated pages (page 2, page 3) all canonicalised to page 1, which can hide the items on later pages.

Ways to signal a canonical URL, ranked by Google's documentation

MethodStrengthWhen to use
Permanent redirect (301/308)StrongRetiring a duplicate entirely: http to https, www to non-www, old URL to new URL
rel=canonical link elementStrongDuplicates that must stay reachable, such as parameter, filter or print URLs
rel=canonical HTTP headerStrongNon-HTML files such as PDFs that have duplicate versions
Sitemap inclusionWeakLarge sites, as a supporting signal listing only canonical URLs
Consistent internal linksSupporting signalAlways; link to the canonical version everywhere on your site
robots.txt or noindexNot recommendedNot for canonicalization; Google advises against both for choosing a canonical
  • A shop's product appears at /shoes/red-trainer, /sale/red-trainer and /red-trainer?colour=red; each version carries a rel=canonical pointing to /red-trainer.
  • A site moves to https and adds a sitewide 301 redirect from every http URL to its https equivalent.
  • A newsletter link adds ?utm_source=email to an article URL; the article's canonical tag keeps the clean URL as the version Google shows.
  • A blog post is republished on a partner site, which adds a canonical tag pointing back to the original post.
  • URL Inspection shows a page declares /guide/ as canonical but Google selected /guide (no slash), because every internal link uses the version without the slash.

Common questions

Should a page have a self-referencing canonical tag?

It is a widely recommended practice. A canonical tag on a page pointing to its own URL protects it when someone links with added parameters or a different case. Google does not require it, but it is low effort and makes your preference clear for every variant of the URL that might appear.

Is rel=canonical a directive or a hint?

A hint. Google treats rel=canonical as a strong signal but can choose a different URL if other signals disagree or the pages are not true duplicates. A permanent redirect is more forceful because visitors and crawlers cannot reach the old URL at all. Neither guarantees a particular result.

Can I use a canonical tag across different domains?

Yes. Cross-domain canonical tags are supported, which is useful when content is syndicated. However, Google notes that syndication partners may not add the tag, and that it may still show the copy it judges most suitable for a user. Asking partners to add noindex is another option for syndicated copies.

What is the difference between a canonical tag and a 301 redirect?

A 301 redirect sends anyone who visits the old URL to the new one, so only one page is ever seen. A canonical tag leaves both pages accessible to people but tells search engines which to show. Use a redirect when the duplicate has no reason to exist and a canonical tag when it does.

Does canonicalization affect AI search?

Indirectly. Google's AI features draw on pages in Google's index, and for duplicates that means the canonical version. If Google selects an unexpected canonical, that URL is the one eligible to appear and be linked. Clear canonical signals keep your preferred page as the one search systems use.

Do other search engines use rel=canonical?

Yes. Bing also supports rel=canonical and treats it as a hint, alongside redirects and sitemaps. Because each engine weighs signals differently, keeping redirects, canonical tags, sitemaps and internal links consistent is the safest way to get the same choice everywhere.

Sources and further reading

  1. What is canonicalization — Google Search Central
  2. How to specify a canonical URL with rel="canonical" and other methods — Google Search Central
  3. Fix canonicalization issues — Google Search Central
  4. Redirects and Google Search — Google Search Central
  5. URL Inspection tool — Search Console Help

Glossary terms

Keep reading