Nomor AI Marketing

Technical SEO

Canonical Tags Explained: When to Use Them, Common Mistakes

TL;DR: A canonical tag (rel="canonical") is a line in a page’s HTML head that tells search engines which URL is the main version of duplicate or near-duplicate content. Google treats it as a strong hint, not a command, and weighs it alongside redirects, sitemaps and internal links. Use it for duplicates visitors still need, use a 301 redirect when a duplicate should disappear, and make every signal point to the same URL.

Last reviewed: 29 October 2026

A canonical tag is one line of HTML, yet it decides which version of a page Google shows in search. Duplicates are easy to create by accident: the same product under two category paths, the same article with tracking parameters, the same page on HTTP and HTTPS. When you do not say which version is the main one, Google picks for you, and it may not pick the URL you want.

This guide is written by Janak Pokharel, an SEO practitioner and co-founder of Limi Creatives, and it sticks to what Google and the original specification actually say. You will learn what a canonical tag does, when it is the right tool and when a redirect or noindex is better, how Google chooses a canonical URL, how to add the tag correctly, and the mistakes that cause Google to ignore it. The last section shows how to check whether Google agrees with your choice, using free reports in Search Console.

What is a canonical tag?

A canonical tag is an HTML link element, <link rel="canonical" href="...">, placed in the <head> of a page to name the preferred URL for that content. It tells search engines which of several duplicate or very similar URLs should be indexed and shown in results. Google treats the tag as a hint, not a rule.

Here is what one looks like on a product page that can also be reached with a tracking parameter:

<link rel="canonical" href="https://example.com/shoes/trail-runner" />

The canonical link relation was published in 2012 as RFC 6596, which describes it as “the author’s preferred version of a resource.” The RFC also sets a useful boundary: the target must be content that is either a duplicate or a superset of the page that points to it.

Google uses two related terms. Canonicalisation is “the process of selecting the representative” URL of a piece of content, and the canonical URL is the one Google “chose as the most representative from a set of duplicate pages,” according to Google’s explanation of canonicalisation. That page is explicit that “indicating a canonical preference is a hint, not a rule.”

When should you use a canonical tag instead of a redirect or noindex?

Use a canonical tag when duplicate URLs need to stay available to visitors, such as filtered, sorted or tracked versions of a page. Use a 301 redirect when the duplicate should disappear entirely, and use noindex when a page should stay out of search with no preferred alternative. Each tool solves a different problem.

SituationBest toolWhy
Tracking, sort or filter parameters on a URLCanonical tag to the clean URLVisitors still need the parameter version to work
Same product reachable from two category pathsCanonical tag to one product URLBoth paths can stay live for navigation
HTTP vs HTTPS, or www vs non-www301 redirectNobody needs the duplicate version
Old page replaced by a new URL301 redirectThe old URL should send users and signals onward
Page that should not appear in search at allnoindexThere is no preferred version to point to
Page 2, 3 and onwards of a paginated listSelf-referencing canonical on each pageEach page lists different items
Same document as a PDF and a Word filerel="canonical" HTTP header on the non-preferred fileNon-HTML files have no HTML head
Your article republished on a partner sitePartner blocks indexingGoogle advises against relying on the canonical tag here

The pagination row is easy to get wrong. Google’s ecommerce pagination guidance says: “Don’t use the first page of a paginated sequence as the canonical page.” Give each page its own canonical URL instead.

The syndication row comes from Google’s canonicalisation troubleshooting guide, which says the canonical element is not the recommended approach for syndicated content and that “the most effective solution is for partners to block indexing of your content.”

How does Google choose the canonical URL?

Google chooses the canonical URL by weighing several signals: redirects, rel="canonical" annotations, whether a page uses HTTPS, whether the URL appears in a sitemap, and how the site links internally. Redirects and canonical tags are strong signals, sitemap inclusion is a weak one, and the signals work best when they agree.

Google’s guide to specifying a canonical URL lists the methods “in order of how strongly they can influence canonicalization” and notes that they “can stack and thus become more effective when combined.” It also asks you to link internally to the canonical URL rather than a duplicate, because consistent linking “helps Google understand your preference.”

SignalHow Google describes itPractical meaning
Redirect to the preferred URLStrong signalThe target usually becomes canonical
rel="canonical" link element or HTTP headerStrong signalUsually respected when other signals agree
Inclusion in an XML sitemapWeak signalHelps, but rarely decides on its own
Consistent internal links to one versionHelps Google understand your preferenceShows Google which URL you treat as main

This is why your sitemap should list only canonical URLs. Our guide on how to create an XML sitemap and submit it to Google covers what belongs in it.

Two details explain most surprises. First, Google decides which pages are duplicates “based on similarity of content”, so pages with genuinely different content cannot be merged by a tag alone. Second, Google’s troubleshooting guide says it “might hold pages in a duplicate cluster for up to two weeks” after you change them, so expect a delay before reports update.

How do you add a canonical tag correctly?

Add one canonical tag per page inside the HTML <head>, using an absolute URL that returns a 200 status code, is indexable and is not itself redirected or canonicalised elsewhere. Make sure the raw HTML and the JavaScript-rendered page show the same canonical, and give important pages a self-referencing canonical by default.

The rules, with their sources:

  1. Place it in the head. Google says the element is “only accepted if it appears in the <head> section of the HTML.”
  2. Use absolute URLs. Google recommends absolute paths rather than relative ones, so https://example.com/page, not /page.
  3. Use one canonical per page. Google’s JavaScript SEO basics warns that “conflicting or multiple rel="canonical" link tags may lead to unexpected results.”
  4. Keep JavaScript consistent. The same page says the best way to set the canonical is in HTML, and if JavaScript sets it, the value should match the original HTML.
  5. Point to a working page. RFC 6596 advises against targets that return an error code such as a 4xx response.
  6. Use the HTTP header for non-HTML files. Google’s own example has a Word version of a white paper name the PDF as canonical with Link: <https://example.com/white-paper.pdf>; rel="canonical" in the response header.

If your CMS or an SEO plugin adds canonical tags for you, check the output anyway. Google’s troubleshooting guide notes that a CMS or plugin can point canonicals at unintended URLs, so inspect the page source in your browser rather than trusting the setting.

What are the most common canonical tag mistakes?

The most common canonical tag mistakes are pointing paginated pages to page one, pointing to URLs that redirect, return errors or are noindexed, adding more than one canonical, letting JavaScript change the canonical, blocking duplicates in robots.txt, and sending mixed signals through internal links and sitemaps. Each one can make Google ignore the tag.

MistakeWhat happensFix
Page 2 and later canonicalised to page 1Later pages may be treated as duplicates of page 1Self-referencing canonical on each page
Canonical points to a redirect, 404 or noindexed URLGoogle receives conflicting instructionsPoint to the final, indexable 200 URL
Two canonical tags, or one in the bodyUnexpected results, or the tag is not acceptedOne tag, in the head
JavaScript rewrites the canonicalRaw and rendered HTML disagreeSet it once, in the server HTML
noindex used with or instead of a canonicalGoogle advises against noindex for choosing a canonical within one siteUse the canonical tag alone
Duplicates blocked in robots.txtGoogle cannot crawl the page to see its canonicalAllow crawling and let the canonical work
Canonical points to a page with different contentGoogle may decide the pages are not duplicatesCanonicalise only true duplicates
Translated page canonicalised to another languageThe translation may drop out of resultsCanonical in the same language, plus hreflang

The robots.txt row deserves a closer look. Google says not to use robots.txt for canonicalisation, and our post on what to block and allow in robots.txt explains why blocking a URL hides its tags from Google.

The translation row comes from the same Google guide, which asks for a canonical “in the same language, or the best possible substitute language” when pages carry hreflang annotations.

How do you check whether Google respects your canonical tag?

Check a canonical tag with the URL Inspection tool in Google Search Console. It shows the user-declared canonical, which is the URL your tag names, next to the Google-selected canonical, which is the URL Google actually chose. If the two differ, Google is overriding your tag and one of your other signals is probably pointing elsewhere.

The URL Inspection tool help page describes the Google-selected canonical as the URL Google picked “when it found similar pages on your site.” For a site-wide view, the Page indexing report groups URLs under canonical-related reasons:

Page indexing reasonWhat it meansWhat to do
Alternate page with proper canonical tagThe page points to an indexed canonicalNothing; this is working
Duplicate without user-selected canonicalThe page has no canonical tag and Google picked oneAdd a canonical if Google’s choice is wrong
Duplicate, Google chose different canonical than userGoogle prefers a different URL from the one you namedAlign redirects, internal links and sitemap with your choice

When a duplicate also shows as crawled but not indexed, our guide to crawled, currently not indexed helps you tell a canonical problem from a content problem. For the wider picture of where canonicals sit among other checks, see the technical SEO checklist, which places them in the indexing tier.

Conclusion

A canonical tag tells Google which URL you prefer, but Google decides. It follows your choice when every other signal agrees: redirects, internal links, the sitemap and the tag itself all pointing to one indexable URL. Use canonicals for duplicates visitors still need, redirects for duplicates nobody needs, and noindex for pages that should not be in search at all.

The quickest way to find conflicts is to check many pages at once. The free SEO audit from Nomor AI Marketing crawls a sample of your pages and checks technical SEO, on-page SEO, structured data, AI search readiness, security and speed, then gives a score and a downloadable PDF report with no signup. Run it, then confirm any canonical issue it surfaces in URL Inspection.

Frequently asked questions

Should every page have a self-referencing canonical tag?

Google does not require it and says most sites will likely do fine without specifying a canonical preference. A self-referencing canonical is still a sensible default for important pages, because it gives Google a clear answer when tracking or session parameters create extra URLs. Check that your CMS outputs it in the head of every template.

Is a canonical tag the same as a 301 redirect?

No. A 301 redirect sends both visitors and search engines to a new URL, so the old URL stops being usable. A canonical tag leaves both URLs working for visitors and only tells search engines which one to index. Google treats both as strong signals. Use a redirect when the duplicate has no reason to exist.

Can a canonical tag point to a different domain?

The canonical link specification, RFC 6596, allows the target to be on a different domain, provided the content is a duplicate or superset of the original. For syndicated articles, however, Google says the canonical element is not the recommended solution and that the most effective approach is for partner sites to block indexing of your content.

Does a canonical tag pass ranking signals to the canonical URL?

Google lists consolidating signals for similar or duplicate pages as one of the reasons to specify a canonical. When Google accepts your canonical, signals such as links to the duplicate URLs are consolidated on the canonical version. When Google rejects the tag, that consolidation goes to whichever URL Google chose instead.

How long does it take Google to respect a canonical change?

There is no fixed time. Google must recrawl the affected pages, and its troubleshooting guide says it might hold pages in a duplicate cluster for up to two weeks after changes. Track progress in the URL Inspection tool by watching whether the Google-selected canonical moves to the URL you declared.

Who is behind this tool

Nomor AI Marketing is a free tool made by two companies that work side by side. One builds the software and the other does the marketing, so a finding in your report can go to the people who fix it.

Nomor

nomor.tech

Our software development company. Nomor designs and builds the software and websites behind this tool, including the audit engine, the PDF report and the pages you are reading. It is the right place to start for custom development, performance work and technical fixes.

Limi Creatives

limicreatives.com

Our marketing company. Limi Creatives is a creative agency that runs SEO, paid ads, content, social media and video for brands. It is the right place to start when you want help turning audit findings into traffic and enquiries.

Tell us what you need