BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
SEO

URL canonicalization: How Google picks one URL

When the same content sits at several URLs, search engines pick one to index and show. You can say which one you prefer; Google makes the final call.

Monthly searches · url canonicalization
12.1k
Keyword research data
url canonicalization
URL canonicalization: How Google picks one URL
Click the image to view it full size

URL canonicalization is the process of choosing one representative URL, the canonical, for content that can be reached at more than one address. Google also calls it deduplication. It groups pages with the same or very similar main content and shows only one of them in search results.

Where duplicate URLs come from

Most sites have duplicates without meaning to. The same page can answer at:

  • http:// and https://
  • www.example.com and example.com
  • /shoes/ and /shoes (a trailing slash)
  • /Shoes and /shoes, if the server ignores letter case
  • /shoes?sort=price or /shoes?utm_source=newsletter, from sorting, filters and tracking parameters
  • a mobile URL such as m.example.com, or a regional copy in the same language

Google adds one more cause: accidental variants, such as a demo or staging copy of the site left open to crawlers.

Is duplicate content a problem?

Not in the way people often fear. Some duplicate content is normal, it isn't a violation of Google's spam policies, and it won't cause a manual action. If you do nothing, Google picks a canonical for you. Google SEO Starter Guide

It's still worth stating your preference when:

  • you want a clean URL in search results, not one with a tracking parameter;
  • you want signals for the duplicates, such as links from other sites, combined on one URL;
  • you want your analytics to show one page instead of five versions;
  • you'd rather Googlebot spend its visits on new pages than on copies.

More on the content side in duplicate content.

How Google chooses the canonical

When Google indexes a page, it works out the page's main content. If several URLs carry the same or very similar main content, Google clusters them and marks the one it finds most complete and useful as canonical. That page is crawled most often; the duplicates less.

Google weighs signals such as HTTPS over HTTP, redirects, sitemap listings and rel="canonical" annotations. Your choice is a hint, not a rule: Google can pick a different URL. And the search result can still point to a duplicate when it suits the searcher better, such as a mobile URL on a phone. Google Search Central

How to tell Google which URL you prefer

Google lists these methods, from strongest to weakest:

Method Signal Use it when
Permanent redirect (301, 308) Strong You want to retire the duplicate URL completely
rel="canonical" link element Strong The duplicates must stay reachable, such as sorted or filtered views
rel="canonical" HTTP header Strong The file isn't HTML, such as a PDF
Listing only canonical URLs in your sitemap Weak You run a large site and want a simple baseline

None of them is required; Google says a site will likely do fine without stating a preference. The methods stack: using two or more that agree makes your preferred URL more likely to win.

A canonical element goes in the <head> of each duplicate and points to the preferred URL:

<link rel="canonical" href="https://example.com/dresses/green-dresses">

Add the same element to the preferred page itself (a self-referencing canonical), and link to the canonical URL from your own pages. The canonical tag article covers the element in detail.

Mistakes that confuse Google

  • Blocking duplicates in robots.txt. Google may still index a blocked URL without its content, and it can't see the canonical on it.
  • Using the URL removal tool. It hides all versions of the URL, not just the duplicate.
  • Mixed signals. A sitemap that lists one URL while the canonical element names another.
  • Using noindex instead. It removes the page from search completely; rel="canonical" is the right tool within one site.
  • Relative URLs in the canonical. Google supports them but recommends absolute URLs, which can't break if a test site gets crawled.
  • A canonical outside the <head>, or one that JavaScript changes. Google only accepts the element in the <head>. Set it in the HTML source and don't let scripts rewrite it.
  • A fragment as canonical. Google generally ignores the part after #.

How to check which URL Google chose

Open Google Search Console and inspect the URL. Under Page indexing, the URL Inspection tool shows two fields: the user-declared canonical (yours) and the Google-selected canonical. Only the indexed result shows Google's choice; the live test can't predict it.

If they differ, look for conflicting signals: internal links, redirects or the sitemap pointing at the other URL, or two pages whose content isn't as similar as you think. The Page indexing report lists such pages as "Duplicate, Google chose different canonical than user".

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.