Skip to content

Technical SEO · 9 min read

Canonical Tag: What It Does and How to Use It Right

A canonical tag is an HTML link element that names the preferred URL among duplicate or near-duplicate pages, a hint Google honors strongly, not a command.

By , Founder and SEO & Development Consultant, Banana MarketingPublished
Three duplicate URLs of a cakes page pointing to one canonical URL

A canonical tag is an HTML link element, written as <link rel="canonical" href="...">, that tells search engines which URL is the preferred version among duplicate or near-duplicate pages. Three major search engines, Google, Yahoo and Microsoft, introduced the tag together on 12 February 2009, stopping ranking signals from splitting across several URLs that show the same content. Google treats the tag as a hint it honors strongly, not a command it must obey, so a canonical tag works best alongside consistent internal links, sitemap entries and redirects that all point at the same preferred URL.

Key takeaways

  • Definition: a canonical tag names the single preferred URL among duplicate or near-duplicate pages, consolidating their ranking signals into that one URL.
  • History: Google, Yahoo and Microsoft jointly announced the canonical tag on 12 February 2009; Google added cross-domain support in December 2009 and HTTP-header support in June 2011.
  • Authority: Google's own FAQ calls the tag "a hint that we honor strongly," weighed alongside other signals, not a directive it must follow.
  • Comparison: a 301 redirect is a stronger canonicalization signal than a canonical tag, since a redirect removes the duplicate URL entirely instead of just naming a preference.
  • Verification: Search Console's URL Inspection tool shows when Google chose a different canonical URL than the one a site declared.

What Is a Canonical Tag?

A canonical tag is an HTML link element in a page's <head> that names the preferred URL among 2 or more pages showing duplicate or near-duplicate content. Google published the original announcement on 12 February 2009, with Yahoo and Microsoft posting matching notices the same day, explaining that a single declared URL would now inherit the combined ranking weight its duplicates had been dividing up.

The tag's syntax is <link rel="canonical" href="https://example.com/preferred-page" />, placed once per page. A site can also declare a canonical for a non-HTML file, such as a PDF, using an HTTP header instead of an HTML tag, a method Google added support for in June 2011.

How Does a Canonical Tag Work?

A canonical tag works by pointing a duplicate or near-duplicate page at the one URL a site owner wants search engines to index and rank, consolidating signals such as links and content relevance onto that single URL. Most SEO guidance recommends every indexable page carry a canonical tag pointing at itself, called a self-referencing canonical, even when no duplicate exists, as a stated baseline preference.

A product available at /shoes?color=red and /shoes?color=blue, for instance, can carry a canonical tag on both URLs pointing at a single clean /shoes page, telling search engines to treat the colour-filtered versions as the same underlying page rather than 2 separate ones competing against each other.

Is a Canonical Tag a Hint or a Directive?

A canonical tag is a hint, not a directive: Google's own FAQ, published alongside the tag's 2009 launch, describes it as "a hint that we honor strongly," meaning Google weighs the declared preference alongside other signals rather than obeying it automatically. A noindex meta tag, by contrast, is a directive Google must follow, removing the page from search results outright.

Google's guidance on consolidating duplicate content frames canonicalization as one signal among several, not an absolute instruction.

Google can choose a different URL as the canonical than the one a site declares, when other signals point elsewhere strongly enough. Search Console's URL Inspection tool flags this directly with a "Google chose a different canonical than user" warning, the clearest sign a site's declared preference and Google's actual choice have diverged.

How Does a Canonical Tag Differ From a 301 Redirect?

A canonical tag and a 301 redirect both consolidate duplicate URLs, but a redirect is the stronger of the 2 signals: it removes the duplicate URL from circulation entirely, sending visitors and crawlers straight to the preferred page, while a canonical tag leaves both URLs live and states only a preference.

A redirect fits a URL meant to stop existing altogether; a canonical tag fits 2 URLs that both stay reachable on purpose, such as a page available under 2 valid sort orders. Site structure for SEO decisions and website structure changes often raise this exact question, since a URL reorganization creates duplicate or near-duplicate pairs that need one of these 2 fixes, not both at once on the same pair.

ToolKeeps both URLs liveSignal strengthBest use
Canonical tagYesHint (strong, not absolute)2 URLs that both stay reachable on purpose
301 redirectNoStrongA duplicate URL meant to stop existing
Noindex tagYesDirective (absolute)A page meant to never appear in search results

What Common Canonical Tag Mistakes Hurt Rankings?

The most common canonical tag mistakes send Google conflicting or unusable signals: a relative URL instead of an absolute one, a canonical pointing at a page Google cannot actually index, or more than one canonical tag on the same page. Each mistake makes the hint harder for Google to honor, raising the odds Google chooses a different URL than the one intended.

Google's current guidance on consolidating duplicate URLs treats every one of these 5 patterns as a signal-consistency problem.

  • Relative URLs: a canonical written as /my-page instead of a full https://example.com/my-page address can confuse crawlers reading the tag.
  • Canonical plus noindex conflict: a self-referencing noindex tag combined with a canonical pointing elsewhere sends Google 2 contradictory instructions about the page's place in the index.
  • Pointing at a non-indexable target: a canonical that points at a URL returning noindex, a redirect, or a 4xx error gives Google an unresolvable signal, and Google will likely ignore the canonical tag entirely.
  • Canonical chains: page A pointing at page B, which itself points at page C, weakens the signal; every canonical tag points directly at the final preferred URL instead.
  • Multiple canonical tags: 2 or more rel=canonical tags in one page's head conflict with each other, and Google may disregard all of them.

Can a Canonical Tag Point to a Different Domain?

Yes: the declared URL doesn't have to share a domain with the duplicate page, support Google added in December 2009, 10 months after the tag's original launch. Cross-domain canonicalization suits syndicated content, where a publisher wants search engines to credit the original source domain instead of each site that republishes the same article.

How Do You Check Which Canonical Google Chose?

Search Console's URL Inspection tool, the same free tool covering every one of a site's indexed URLs, shows which canonical Google selected for a given page against the one the site declared. A mismatch surfaces as a "Google chose a different canonical than user" result, the clearest sign internal links, sitemap entries and canonical tags disagree.

A website structure or redirects audit that finds this warning usually traces back to one of the 5 common mistakes above, most often a canonical pointing at a page with its own conflicting signal. A documented history of the tag's adoption shows this verification step has mattered since the earliest implementations.

Where Do Canonical Tags Fit in a Technical SEO Review?

Canonical tags are 1 of several crawling and indexing signals a technical SEO review checks together, since a conflicting signal anywhere in that set can override a correctly written canonical tag. A site's robots.txt still has to allow crawling of both the duplicate and the preferred URL, or Googlebot never reaches the canonical tag at all to read the preference it states.

Website security for SEO matters here too: an HTTP duplicate of an HTTPS page, left over from an incomplete migration, needs its own canonical tag pointing at the secure version, or the 2 protocol variants compete as unresolved duplicates. Mobile-first indexing adds its own canonicalization risk, since a mobile-friendly website serving different canonical tags on its mobile and desktop versions sends Google conflicting preferences from the same page pair.

JavaScript SEO raises a related problem: content that only appears after rendering JavaScript for search can hide the canonical tag itself from a crawler that gives up before the tag loads. Server log file analysis is the most direct way to confirm which version of a duplicate pair Googlebot actually requested after a canonical tag change, rather than guessing from crawl stats alone.

Structured data markup and hreflang tag entries both match across a canonicalized pair in a healthy setup: schema markup present on the duplicate but missing from the preferred URL, or an hreflang set listing the wrong URL as canonical, both undermine the consolidation a canonical tag is meant to achieve. An XML sitemap listing only canonical URLs reinforces the preference Google already read from the tag; listing the duplicate instead sends a contradicting signal.

Core Web Vitals scores are tracked per URL, so a slow duplicate page can drag down Search Console's aggregate view even after its canonical tag correctly points traffic credit elsewhere. A technical SEO checklist built without a canonicalization step leaves exactly this class of conflicting-signal problem for Google to resolve on its own, and crawlability itself is the precondition for every fix above: making a site crawlable comes first, before any canonical tag Googlebot has not yet reached can do its job.

NumberWhat it meansSource
12 Feb 2009Date Google, Yahoo and Microsoft jointly announced the canonical tagGoogle Webmaster Central (2009)
Dec 2009Month Google added cross-domain canonical tag supportGoogle Webmaster Central
Jun 2011Month Google extended canonical support to HTTP headersGoogle Webmaster Central

Canonical Tags FAQ

What is a canonical tag?

A canonical tag is an HTML link element in a page's head that names the preferred URL among 2 or more pages showing duplicate or near-duplicate content, consolidating their ranking signals onto that one URL.

Is a canonical tag a hint or a command?

A hint. Google's own FAQ describes it as "a hint that we honor strongly," weighed alongside other signals, not obeyed automatically the way a noindex directive is.

What's the difference between a canonical tag and a 301 redirect?

A 301 redirect removes a duplicate URL from circulation entirely and is a stronger signal; a canonical tag leaves both URLs live and only states a preference, suiting cases where both URLs stay reachable on purpose.

Can a canonical tag point to a page on a different domain?

Yes. Google added cross-domain canonical tag support in December 2009, letting a canonical point at a URL on a completely different domain, useful for syndicated content.

What happens if a page has two canonical tags?

Two or more rel=canonical tags in the same page's head conflict with each other, and Google may disregard all of them rather than guessing which one to honor.

How do you check which canonical URL Google chose?

Search Console's URL Inspection tool compares Google's chosen canonical against the one a site declared, flagging a mismatch as "Google chose a different canonical than user."

The Bottom Line

A canonical tag consolidates duplicate and near-duplicate URLs into one preferred page, but it is a hint Google honors strongly, not a command, so it only works reliably alongside consistent internal links, sitemap entries and redirects pointing at the same URL. A technical SEO review that skips canonical tags risks leaving duplicate pages splitting the ranking signals a single page would otherwise carry alone. Request Banana Marketing's technical SEO audit services to find and fix canonicalization conflicts before they cost a site its rankings, or explore SEO services for ongoing technical and content work together.

A manager banana leads an annoyed, reluctant junior back to work while checking a client call.

Not sure what's holding your site back? We'll audit it.

Our technical SEO audit checks crawling, indexing, speed and structure, then ranks every fix by impact so your developers know where to start.