← Blog · By Mars LLC editorial team · October 4, 2026 · Editorial standards

Canonical tags explained (with examples)

What a canonical tag does, when to self-reference, and how to handle pagination and filters.

Duplicate content is unavoidable on most sites — print views, filters, tracking parameters. Canonical tags tell search engines which URL is the one to index.

What a canonical looks like

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

Each indexable page should have exactly one canonical pointing to itself (self-referencing) or to a better version.

Self-referencing matters

A page should include a canonical pointing to its own URL. It sounds redundant, but it consolidates signals and prevents accidental duplicates from variants.

Common uses

  • Paginated series: each page self-canonicals (do not point page 2 at page 1)
  • Filtered/sorted URLs: canonical to the base category
  • Tracking parameters: canonical to the clean URL
  • Syndicated content: canonical to the original
  • Product variants: canonical to a parent product, or self-canonical if variants rank separately

Absolute vs relative

Use absolute URLs (https://…). Relative canonicals are error-prone, especially across subfolders, and can resolve to the wrong host (e.g. http or www).

Canonical is a hint

Google may ignore it if other signals disagree. Pair canonicals with:

  • consistent internal links (link to the canonical URL, not the variant)
  • correct rel=alternate/hreflang for language versions
  • noindex for thin variants you cannot canonicalise
  • 301 redirects for permanently moved content

Canonical vs 301 vs noindex

| Tool | Use when |

|---|---|

| 301 | The page permanently moved; no need to keep both |

| canonical | Both URLs exist and you want to consolidate signals |

| noindex | The page should not appear in search at all |

| robots.txt disallow | You want to stop crawling, not indexing |

Do not combine noindex with a canonical to a different page — the signals conflict.

How to check yours

1. Paste the page HTML into the canonical checker.

2. Confirm exactly one canonical, absolute, correct host.

3. In Search Console, use URL Inspection → "User-declared canonical" vs "Google-selected canonical". A mismatch means Google disagrees with you.

Worked example

A shop has https://example.com/shoes?color=red&sort=price. You want the indexable page to be https://example.com/shoes.

  • The filtered URL returns rel=canonical → https://example.com/shoes
  • Internal links point to /shoes, not the parameterised URL
  • Deep filter combinations you cannot canonicalise cleanly get noindex
  • The base category page self-canonicals

That pattern keeps one indexable URL while letting users filter freely.

Check a page

Paste a page's HTML into the free canonical URL checker to confirm the canonical, title and description are correct — no signup needed.

Try the free tool

Paste a page's HTML and instantly see its canonical tag, title, meta description, H1 and Open Graph tags.

Open Canonical Tag Checker