Skip to content

Canonical tag

An HTML link element (rel="canonical") that declares the preferred URL of a page when duplicate versions exist, consolidating ranking signals into a single canonical URL.

Definition

What it is

The element lives in the <head> of the page:

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

When Google encounters this element, it treats the declared URL as the preferred version. If a page is reachable as /product?id=42, /product/42/ and /product/42?ref=newsletter, a canonical to /product/42/ consolidates the three under one indexable URL.

It is a hint, not a directive. Google can ignore it when the declared URL returns 404, is blocked by robots.txt, or contains content materially different from the page that declares it.

Why it matters

Without a canonical, Google chooses by itself which of the duplicates to index — often the wrong one — or indexes several of them, competing internally for the same keyword cluster. The consequences compound: diluted link equity, wasted crawl budget, lower click-through rate, and unstable rankings across near-duplicate URLs.

A properly implemented canonical is the cheapest way to say this is the original, not the clone. It solves the problem that 301 redirects cannot solve, because 301s force the old URL to disappear while canonicals let both exist.

How it works

graph LR
  A[/product?id=42] -->|rel=canonical| C[/product/42/]
  B[/product/42?ref=tw] -->|rel=canonical| C
  D[/product/42/?lang=es] -->|rel=canonical| C
  C --> E[Google consolidates]
  E --> F[Single indexed URL]
  style C fill:#E8F5E9
  style F fill:#E8F5E9

The process runs in three stages. Discovery: Google finds the URL through sitemaps, links or crawl. Crawl: the bot downloads the page. Verification: Google reads the canonical, then fetches the declared URL to confirm it exists, is reachable, and has content equivalent to the source. If any check fails, the hint is dropped.

Common failures

Origin

Before 2009, handling duplicates depended on 301 redirects or on stripping URL parameters via Webmaster Tools. The solution was expensive: it forced publishers to choose between duplicating content and losing traffic. The canonical resolved the dilemma by allowing both URLs to exist with a declared preference.

  1. 2009 — Google, Yahoo, Microsoft announce rel=canonical jointly

  2. 2012 — IETF publishes RFC 6596: The Canonical Link Relation

  3. 2017 — Google integrates canonical hints with sitemaps and AMP

  4. 2021 — Google confirms canonical + sitemap reinforce the hint

  5. 2024 — Canonical remains a hint, never a directive

The canonical link element gives webmasters a way to tell search engines which URL is the preferred version of a page with similar content.

— Google Webmaster Central Blog, 12 February 2009
2009 · canonical announced jointly (Google, Yahoo, Microsoft)
2012 · RFC 6596 standard published
~5% · ranking lost typically by duplicates without canonical
3+ · duplicate URLs per faceted page on average

Evidence

FAQ

Canonical or 301 redirect?

If the old URL must stop existing, use 301 (permanent). If both URLs must remain (facets, regions, tracking parameters), use canonical.

Can I have canonical and hreflang together?

Yes. Hreflang declares language alternatives of the same content; canonical declares the preferred URL of the current language.

Does cross-domain canonical work?

Yes, but as a weak hint. Google may ignore it if content is not clearly equivalent. For migrations, 301 is preferred.

What if the canonical points to the current URL?

That is a self-referencing canonical. Google expects one on every page; absence is not an error, but presence reinforces the signal.

Connections

Etymology

Origin: borrowed

  • canonical (adjective): from Latin canonicus, "according to rule"; from Greek kanōn, "rule, standard"

Semantic network

Canonical tatechnical-301 redireNoindex taSitemapIndexationhreflang

● broader ● narrower ● related

Broader

  • technical-seo

Related

Used in the garden

Sources