Skip to content

Canonical URL and Canonical Tags: What They Are and How to Use Them

A canonical URL is the address Google picks as the main version of a page that exists at more than one URL. A canonical tag is the line of HTML you use to suggest which address that should be.

By Kristijan GjorgjioskiIndependent SEO consultant

Published 23 October 2026 · 10 min read

Key takeaways

  • A canonical URL is the representative version Google chooses from a group of duplicate or near-identical pages; only that version normally appears in search results.
  • Google calls a canonical preference a hint, not a rule. Redirects and rel=canonical are strong signals, while sitemap inclusion is a weak one.
  • Google recommends a self-referencing canonical on the main page itself, written as an absolute URL inside the head of the HTML.
  • When a page carries more than one rel=canonical link, Google says it will likely ignore all of them.
  • The URL Inspection tool in Search Console shows both the canonical you declared and the one Google actually selected.

Every site I audit has more URLs than pages.

Tracking parameters, filter options, a stray http:// version, a trailing slash here and not there.

Each one creates another address for the same content, and Google has to decide which address is the real one.

That chosen address is the canonical URL. The canonical tag is how you tell Google which one you'd pick.

This guide covers what canonical URLs and canonical tags are, how Google chooses, how to set them up, the errors I find most often and how to check what Google did with your tags.

What Is a Canonical URL?

A canonical URL is the representative version of a page that Google selects from a set of duplicate or very similar URLs. Google indexes and normally shows only that version, and treats the others as duplicates.

Google's guide to what canonicalisation is describes the process like this: when it finds pages with the same or very similar main content, it clusters them and picks the one it judges most complete and useful as the canonical.

Here's a simple example. These four URLs can all load the same product page:

  • https://www.example.com/boots/chelsea/
  • https://www.example.com/boots/chelsea/?utm_source=newsletter
  • https://www.example.com/boots/chelsea/?colour=black
  • http://example.com/boots/chelsea/

Google wants one of them in its index. Ideally the first.

What Is a Canonical Tag?

A canonical tag is a <link rel="canonical"> element in the <head> of a page that names the URL you want treated as the main version. It's also called rel=canonical or a canonical link element.

It looks like this:

<link rel="canonical" href="https://www.example.com/boots/chelsea/" />

So the two terms describe the same topic from two sides. The canonical tag is your suggestion. The canonical URL is the version Google ends up choosing, which is usually the one you suggested, but not always.

Why Canonical URLs Matter

Google's guide to consolidating duplicate URLs gives four reasons to state a canonical:

  • Control the URL people see. You decide which address shows in search results, not a tracking variant.
  • Consolidate signals. Links pointing at duplicate versions get combined with links to the main one.
  • Simplify reporting. One URL per piece of content keeps your traffic data in one place.
  • Save crawling time. Googlebot's time is better spent on new or updated pages than on copies.

On a small brochure site, that last point barely matters. On a big store, it's a real crawl budget issue.

Where Duplicate URLs Come From

Duplicates are normal. Google states plainly that some duplicate content on a site is not a violation of its spam policies.

Most duplicates are created by your platform, not by you. Google names five sources, and I find all five in audits:

Source Example What creates it
Region variants /en-us/ and /en-gb/ with the same English copy International setups
Device variants m.example.com and www.example.com Separate mobile sites
Protocol variants http:// and https:// Missing or partial HTTPS redirects
Site functions ?sort=price or ?colour=black Sorting and filtering on category pages
Accidental variants staging.example.com left open to crawlers Demo or test sites

To that list I'd add trailing slash variants, www and non-www hosts, uppercase letters in paths and print versions of articles.

Stores get the worst of it, which is why canonical rules sit near the top of my technical SEO for e-commerce checks. Then my write-up on Shopify duplicate content shows how one theme setting can double every product URL.

How Google Chooses the Canonical URL

Google picks the canonical. You influence the choice.

The key line in Google's documentation: indicating a canonical preference is "a hint, not a rule." Google may choose a different page for various reasons.

That's why I never treat a canonical tag as a fix on its own. It's one signal among several.

The Signals Google Uses

Google lists the methods you control and rates their strength:

Method Strength, per Google Best used for
301 or other permanent redirect Strong signal Retiring a duplicate URL for good
rel=canonical link element or HTTP header Strong signal Duplicates that need to stay live
Sitemap inclusion Weak signal Large sites, as supporting evidence

Google adds that these methods stack. Use two or three together and your preferred URL is more likely to win.

The Signals You Don't Set Directly

Google also uses signals based on how your site is set up.

It prefers HTTPS pages over HTTP ones as canonical, unless something conflicts, such as an invalid certificate or an HTTPS page that redirects back to HTTP.

It also prefers URLs that belong to hreflang clusters when it chooses between regional versions.

And internal links count. Google says linking consistently to the URL you consider canonical helps it understand your preference. In practice, I find this is the signal most sites get wrong.

How to Set a Canonical URL

You have three ways to declare a canonical: the link element, an HTTP header or your sitemap.

Google recommends picking one method for the tag itself, because mixing the link element and the HTTP header is more error prone.

Whichever you choose, the tag only helps once Google can crawl the page. If new pages aren't being picked up at all, fix that first with the checks in crawled - currently not indexed.

Add the Canonical Tag to the Head

Place the link element in the <head> of every duplicate, pointing at the main URL.

Google only accepts it in the <head>, so make sure that section is valid HTML. A stray tag that breaks the head early can push your canonical out of it.

Use Self-Referencing Canonicals

A self-referencing canonical is a canonical tag on the main page that points to its own URL.

Google recommends adding one. I add it to every indexable page as standard, because it gives every parameter version of that page a clear answer for free.

If ?utm_source=newsletter is appended to your URL, the page still declares the clean address as canonical.

Use the HTTP Header for PDFs and Files

Files such as PDFs have no <head>. For those, Google supports a Link header with rel="canonical" in the server response.

This is useful when the same white paper exists as both a PDF and a Word file. Use absolute URLs here too.

Set Canonicals Through Your CMS

Most platforms write the tag for you:

  • WordPress: SEO plugins such as Yoast and Rank Math output a self-referencing canonical by default and let you override it per page.
  • Shopify: canonical tags are added automatically across products, collections and pages.
  • HubSpot: new pages and posts use their own URL as canonical by default, with a per-page override in the advanced settings.

My WordPress SEO checklist covers where those plugin settings live.

The risk with a CMS is two systems writing a canonical at once. A theme and a plugin both outputting one is a classic cause of the multiple-tag error below.

Keep Canonicals Stable on JavaScript Sites

On sites rendered with JavaScript, Google's advice is to put the canonical in the HTML source and make sure JavaScript doesn't change it.

If you can't set it in the source, leave it out of the source and set it only with JavaScript. Two different values, one before rendering and one after, is the worst outcome.

Common Canonical Tag Errors

These are the canonical problems I find most often, roughly in order of how much damage they do.

Multiple Canonical Tags

Two or more canonical tags on one page, usually pointing at different URLs.

Google's own write-up of common rel=canonical mistakes says that when more than one is specified, all of them will likely be ignored.

The cause is nearly always a theme and an SEO plugin both adding one. View the page source, search for rel="canonical" and remove the duplicate at the template level.

Missing Canonical Tag

No canonical tag at all.

Google says your site will likely do fine without one, because it will pick a version itself. But that leaves the choice entirely to Google, and parameter URLs become fair game.

When pages without a declared canonical get folded into another URL, Search Console reports them under a status I cover in duplicate without user-selected canonical.

Relative URLs

A canonical written as /boots/chelsea/ instead of the full address.

Google supports relative paths but doesn't recommend them. They can cause problems later, for example if a testing site gets crawled and every page declares itself canonical on the test host.

Worse is a URL written without the protocol, such as example.com/page. Browsers and crawlers read that as a path relative to the current page, so the canonical resolves to an address that doesn't exist.

Canonical Pointing to a Redirect, Noindex or 404 Page

The canonical target should be a live page that returns 200, carries no noindex tag and isn't redirected elsewhere.

Google's guidance is to check that the target exists and doesn't hold a noindex robots meta tag. A canonical that points at a redirect sends Google two conflicting messages about which URL is final.

This one appears constantly after a site migration, when templates still carry canonicals to old URLs.

Canonical Tag in the Body

A canonical placed in the <body> is disregarded. Google reads it only in the <head>.

This usually happens when a page builder injects code in the wrong place, or when invalid HTML closes the head early.

Paginated Pages Canonicalised to Page One

Pointing page 2, page 3 and so on at page 1 tells Google the later pages are duplicates. They aren't: they list different items.

Google's 2013 mistakes post calls this incorrect use, because content on the later pages may not get indexed at all. Give each paginated page its own self-referencing canonical.

Conflicting Signals

The canonical tag says one thing and the rest of the site says another.

Typical conflicts:

  • Sitemap: the XML sitemap lists the duplicate, not the canonical. Google says not to specify different canonicals for the same page using different methods.
  • Internal links: menus and product cards link to the duplicate, so most of your own signals point the other way.
  • Hreflang: a language version canonicalises to another language.

That last one deserves its own sentence. Google advises specifying a canonical in the same language, so a French page should usually point its canonical at itself, not at the English version. My guide to what hreflang is explains how the two tags work together.

Canonical Tag vs 301 Redirect vs Noindex

All three keep a URL out of results, but they do different jobs.

Tool What happens to the URL Use it when
Canonical tag Stays live for visitors; Google is asked to index another version The duplicate needs to exist, such as filtered or tracked URLs
301 redirect Visitors and Google are sent to the new URL The duplicate has no reason to exist any more
Noindex Stays live; removed from the index entirely The page should not be in search at all

Google specifically advises against using noindex to choose a canonical within one site, because it blocks the page from Search completely. It also says not to use robots.txt for canonicalisation.

For redirects, my comparison of 301 vs 302 redirects explains which to use. For keeping pages out of the index, see my guide to the noindex tag.

How to Check Which Canonical Google Chose

Your tag is the request. Search Console shows the answer.

  1. Open Search Console and paste the URL into the URL Inspection bar.
  2. Expand the Page indexing section.
  3. Compare User-declared canonical with Google-selected canonical.

If they match, Google accepted your choice. If they differ, Google overruled you, and the fix is usually in the signals above.

Google's URL Inspection help page notes two limits. The live test can't predict which version will be chosen, because the canonical is decided at indexing time. And the Google-selected value can be a few hours behind the index.

For a site-wide view, open the Page indexing report. Two statuses come up often there:

  • Alternate page with proper canonical tag means Google accepted your canonical, as I explain in alternate page with proper canonical tag.
  • Duplicate without user-selected canonical means Google found a duplicate with no canonical declared and chose for you.

If the report is full of reasons you don't recognise, start with my guide on how to get Google to index your website.

Get Every Canonical Signal Pointing the Same Way

The canonical tag is the easy part.

The hard part is making redirects, internal links, sitemaps and hreflang all agree with it. In my audits, when they do, Google accepts the declared canonical in nearly every case.

Start with one check today: inspect your five most important URLs and compare the declared and selected canonicals. Any mismatch is your first job.

Canonicals sit inside the indexing stage of my technical SEO checklist, alongside noindex, parameters and duplicates.

If you'd rather hand the whole job over, canonical clean-up is a standard part of my technical SEO service, and for a review that covers content and links too, an SEO audit is the better starting point.

Either way, get in touch about technical SEO help and I'll tell you honestly whether your canonicals need work.

Frequently asked questions

What is the difference between a canonical URL and a canonical tag?

The canonical URL is the outcome: the address Google treats as the main version of a page and shows in search results. The canonical tag is your input: a rel=canonical link element in the page head that suggests which URL that should be. You control the tag. Google controls the final canonical URL, using the tag as one of several signals.

Do I need a canonical tag on every page?

Google says a site will likely do fine without specifying canonicals, because it will pick a version on its own. In practice I still add a self-referencing canonical tag to every indexable page. It costs nothing, it protects you against parameter and tracking URLs, and Google's own documentation recommends a self-referential canonical on the canonical page.

Do canonical tags pass link signals to the canonical page?

Google lists consolidating signals, such as links pointing at duplicate URLs, as one of the reasons to specify a canonical. If Google accepts your canonical, links to the duplicate versions are consolidated with links to the main version. If Google rejects your canonical and picks a different page, the signals consolidate there instead.

Can Google ignore my canonical tag?

Yes. Google describes a canonical preference as a hint, not a rule, and may choose a different page for various reasons. The usual causes in my audits are internal links and sitemaps pointing at another version, a canonical target that redirects or returns an error, or two pages that are not similar enough to count as duplicates.

Should a canonical tag use an absolute or relative URL?

Use an absolute URL that includes the protocol and hostname, such as https://www.example.com/page/. Google supports relative paths but does not recommend them, because they can cause problems later, for example if a testing site gets crawled. A relative URL written without the protocol can also resolve to an address you never intended.

About the author

Kristijan Gjorgjioski

Independent SEO consultant · 6+ years in SEO · 60+ client websites worked on

I'm an independent SEO consultant with 6+ years in SEO. I run audits, migrations and content programmes for businesses in Europe, the UK and the USA, and I build the automation behind my own research.

Need help with technical seo?

Book a free 30-minute call. I look at your site first and tell you plainly what I would fix, and in what order.