Skip to content
SeoWiki

The SEO encyclopedia

Technical SEO

Canonical Tags

A canonical tag (rel="canonical") is an HTML element that tells search engines which URL is the preferred version of a page when similar or duplicate content exists across multiple URLs.

Beginner5 min readUpdated 2026-07-26Reviewed by Lucía Marín

Key takeaways

  • Canonical tags consolidate duplicate content signals onto one preferred URL, improving crawl efficiency and ranking focus.
  • Always use absolute URLs and place the tag in the <head> section.
  • Only one canonical tag per page; avoid conflicting signals with other SEO elements.
  • Canonicalization is a strong signal but not a directive; Google may override if evidence suggests otherwise.
  • Regularly audit canonical tags to ensure they point to the correct, indexable URLs.

Canonical tags are a fundamental tool for managing duplicate content and consolidating SEO value across similar pages.

Example

An e‑commerce store sells a blue t‑shirt accessible via multiple URLs:

  • /product?id=123
  • /product/blue-t-shirt
  • /product/123?color=blue

Each variant includes a canonical tag pointing to https://example.com/product/blue-t-shirt. This tells search engines to index that URL and consolidate ranking signals, preventing dilution across duplicates.

When Should I Use a Canonical Tag?

Use canonical tags when:

  • Faceted navigation creates multiple URLs for the same content (e.g., sorting, filtering).
  • Tracking parameters (e.g., ?utm_source=...) generate duplicate pages.
  • Product variants (e.g., color, size) have near‑identical descriptions.
  • Syndicated content appears on multiple domains.
  • Printer‑friendly versions exist alongside standard pages.
  • Session IDs or other dynamic parameters create duplicate URLs.

For broader context, see technical SEO.

What It Is Not

  • Not a redirect: Users stay on the original URL; only search engines see the canonical signal.
  • Not a guarantee: Google may ignore the canonical if other signals (internal links, sitemaps, redirects) conflict.
  • Not a replacement for 301 redirects: Use 301s for permanent moves; canonical tags are for consolidating duplicates without redirecting users.
  • Not for language versions: Use hreflang tags for multilingual pages, not canonical tags.

Learn more about sitemaps and robots.txt for additional crawl management.

Quick Start

  1. Identify the preferred URL for a set of duplicate or near‑duplicate pages.
  2. Add <link rel="canonical" href="https://example.com/preferred-url/" /> inside the <head> of each duplicate page.
  3. Use absolute, fully qualified URLs (include https:// and trailing slash if appropriate).
  4. Ensure only one canonical tag per page.
  5. Verify implementation using Google Search Console URL Inspection tool or browser developer tools.

Common Mistakes

  • Pointing to the wrong URL: Canonicalizing to a non‑preferred or irrelevant page can harm rankings.
  • Using relative URLs: Relative paths may be misinterpreted; always use absolute URLs.
  • Conflicting signals: Canonical tag points to URL A, but internal links, sitemaps, and redirects all point to URL B.
  • Multiple canonical tags: Using more than one per page confuses search engines.
  • Canonicalizing across domains incorrectly: Only use cross‑domain canonical when you control both domains and content is identical.
  • Using canonical for language versions: Use hreflang instead.

Proper schema markup can also help clarify page relationships.

Next step

FAQ

What is a canonical tag?

A canonical tag is an HTML element (<link rel="canonical" href="...">) that tells search engines which URL is the preferred version of a page when duplicate or similar content exists.

How do I add a canonical tag in HTML?

Add <link rel="canonical" href="https://example.com/preferred-url/" /> inside the <head> section of the page.

What is the difference between a canonical tag and a 301 redirect?

A 301 redirect permanently sends users and search engines to a different URL, while a canonical tag only signals the preferred URL for indexing without redirecting users.

Related topics

Sources

Reviewed by Lucía Marín, Founding editor.