How does Google choose a canonical URL, and how do you signal one?

Google chooses a canonical URL itself when duplicates exist, and your preference is a hint, not a rule. You can signal it with redirects and rel="canonical" (strong signals) or sitemap inclusion (a weak signal).

Verified against the sources on 2026-11-07. Labels: Proven means the primary source we opened states it. Practice means widely used practice or secondary reporting that the primary source does not confirm. Experimental means a proposal or draft.

What is a canonical URL and why do duplicates occur?

  • Proven Google says it groups pages whose main content is the same or very similar and chooses the one that, based on the signals it collected, is objectively the most complete and useful for Search users. The canonical is crawled most often and duplicates less often.
  • Proven The page’s examples include tracking parameters on a URL, several hostnames reaching the same homepage, and one product page reachable by multiple paths.
  • Proven Reasons given to specify one include controlling which URL appears, consolidating signals such as links, simplifying metrics, and saving crawl time for new or updated pages. Google also says specifying a canonical is generally not critical, because it will identify the best version if you do not.

Which methods signal a canonical?

  • Proven Permanent redirects are a strong signal; the page says to use them only when deprecating a duplicate page.
  • Proven A rel="canonical" link element in the head, or an HTTP Link header, is a strong signal. The header also works for non-HTML documents such as PDF files, for web search results.
  • Proven Listing a URL in a sitemap is a weak signal. Google’s sitemap guidance says to include the canonical URLs you want shown in results; see how sitemaps work.
  • Proven Google says these methods can stack and become more effective when combined.

What implementation details does the page give?

  • Proven Use absolute URLs and a self-referential canonical on the canonical page.
  • Proven Of the two rel="canonical" annotation methods, the HTML element and the HTTP header, Google recommends choosing one, because using both is more error prone.
  • Proven The page says rel="canonical" annotations with attributes such as hreflang, lang, media or type are not used for canonicalization.
  • Proven When using client-side JavaScript, put the canonical in the HTML source and make sure JavaScript does not change it.

What does Google advise against, and what does it prefer?

  • Proven Google advises against using robots.txt or the URL removal tool to choose a canonical, and does not recommend noindex for choosing one within a site because it blocks the page from Search. It prefers rel="canonical". For what robots.txt does, see RFC 9309 explained.
  • Proven By default, HTTPS is preferred over HTTP unless problems exist, such as an invalid certificate.
  • Proven Pages in a reciprocal hreflang cluster are preferred over pages outside it.

Terms such as canonical and indexing are in the glossary.

What we could not verify

  • It covers Google Search only and does not describe other search engines.
  • It does not cover AMP canonical rules or the hreflang setup in detail.
  • Google calls a stated preference a hint; neither page promises it is always chosen, and Google says the weight of each signal is not given. Reports of a specific number of signals are secondary and we did not verify them.

Last reviewed on 2026-11-07.

Frequently asked questions

Why did Google ignore my rel=canonical?

Google says your preference is a hint, not a rule, so it may choose a different page. It also says annotations carrying attributes such as hreflang, lang, media or type are not used for canonicalization.

Will a duplicate page ever appear in results instead of the canonical?

Google says results usually point to the canonical, but a duplicate may be shown when it better fits the user, for example a mobile version on a phone.

Can I use rel=canonical on a PDF?

Yes. Google says the rel=canonical HTTP header works for non-HTML documents such as PDF files, and that this method is supported for web search results.

Is it critical to set a canonical on every page?

Google says specifying one is generally not critical because it will pick the best version if you do not, but doing so gives you more control over which URL appears and helps consolidate signals.

Sources

  1. Consolidate duplicate URLs (Google Search Central), read 2026-11-07
  2. What is canonicalization (Google Search Central)
  3. Build and submit a sitemap (Google Search Central)
  4. Search Engine Journal: How Google picks canonical URLs (2026-04-14, secondary report of a John Mueller reply)

Related guides