GrowthPedia

Canonical

Canonical SEO is the practice of telling search engines which URL should be treated as the preferred version when multiple pages have the same or very similar content.

Level: IntermediateRead: 4 minUpdated: 27 Jul 2026By Vera Lindqvist

Key facts

  • Google defines canonicalization as selecting the representative canonical URL from a set of duplicate pages.
  • A canonical URL is the best representative page from a group of duplicate or near-duplicate pages according to Google.
  • Canonicalization can apply even when duplicate URLs are on different domains.
  • The canonical signal can be implemented with a rel="canonical" link element in HTML or an HTTP header.
  • Google treats rel="canonical" as a strong signal, while sitemap inclusion is only a weak signal.
  • Only the canonical URL from a duplicate set can be indexed by Google.

Also called

canonicalization, canonical URL, rel canonical

Use it for

Consolidating duplicate URLs into one representative page

Applies to

Google / Bing / all search engines

How Canonical Tags Work in Practice

A canonical tag is a piece of HTML code that tells search engines which URL is the master copy. You place it in the <head> section of a page. The tag looks like this: <link rel="canonical" href="https://example.com/preferred-page/" />.

When Google crawls a page with a canonical tag, it treats the declared canonical url as the primary version. Google may still index a different URL if it finds stronger signals elsewhere. The tag is a strong hint, not a command.

You can also send a canonical signal via an HTTP header. This is useful for non-HTML files like PDFs. The header looks like Link: <https://example.com/preferred.pdf>; rel="canonical".

For example, if you have a blog post accessible at both /blog/post and /blog/post?print=1, the print version should carry a canonical tag pointing to the main post. This prevents the print version from being indexed as a separate page. Another example: a product page with a session ID in the URL like /product?id=123&session=abc should canonicalise to /product?id=123.

  • A canonical tag is placed in the HTML <head> section
  • An HTTP header can be used for PDFs or other non-HTML files
  • Google treats the tag as a strong hint, not a command

Common Scenarios That Need Canonicalization

Many websites create duplicate content without meaning to. Here are the most common situations where canonical tags help:

Parameterized URLs: Pages with tracking parameters like ?utm_source=facebook or session IDs create duplicates. The canonical tag points to the clean version.

Filtered and sorted listings: E-commerce sites often have URLs like /shoes?color=red&size=10. Each combination is a duplicate of the main category page. A canonical tag consolidates them.

HTTP vs HTTPS and www vs non-www: If both versions of your site are accessible, canonical tags help Google pick the right one. A Sitemap can also reinforce this choice.

Another scenario is printer-friendly pages. Many content management systems generate a separate printer-friendly version of each article. That version should carry a canonical tag pointing to the original article. Similarly, AMP pages often use a canonical tag to point to the standard HTML version, ensuring Google knows which is the primary page.

  • Parameterized URLs from tracking or session IDs
  • Filtered or sorted product listings
  • HTTP and HTTPS versions of the same page
  • www and non-www versions of the same page
  • Printer-friendly versions of pages

Canonical Tags vs Other Duplicate Signals

Google considers multiple signals when choosing a canonical URL. The rel="canonical" tag is the strongest signal you can send. But Google also looks at internal links, redirects, and sitemap entries.

A canonical tag in the HTML is more reliable than listing a URL in a sitemap. Google treats sitemap entries as a weak hint. If you want to be clear, use the HTML tag or an HTTP header.

Redirects are stronger than canonical tags. If you redirect URL A to URL B, Google treats URL B as canonical. You should not use both a redirect and a canonical tag pointing to different places.

Another signal is internal linking. If most internal links point to one URL, Google may treat that as the canonical even if a different URL has a canonical tag. This is why consistent internal linking matters. Also, a meta refresh seo redirect is a weaker signal than a server-side 301 redirect and can confuse Google's canonical selection.

How to Check Your Canonical URLs

You can check which URL Google considers canonical using Google Search Console. Open the URL Inspection tool and enter a page URL. The report shows the declared canonical and the Google-selected canonical.

If the two differ, you have a canonicalization issue. Common causes include conflicting signals from internal links, redirects, or multiple canonical tags on the same page.

A canonical error occurs when Google cannot determine a canonical URL or picks one you did not intend. Fixing these errors often improves indexing and ranking.

You can also use browser extensions or SEO tools to inspect the canonical tag on any page. For example, the MozBar extension shows the declared canonical URL. Another method is to view the page source and search for 'rel="canonical"' to confirm the tag is present and correct. If you manage many pages, tools like yoast seo alternatives can help audit canonicals across your site.

Cross-Domain Canonicalization

Canonical tags can point to URLs on a different domain. This is useful when you syndicate content to other sites. You place a canonical tag on the syndicated copy that points back to the original on your domain.

Google recognises cross-domain canonicals and consolidates signals to the original. This prevents the syndicated version from outranking your original content. It is a common practice for news publishers and guest bloggers.

Cross-domain canonicals work the same way as same-domain ones. The tag goes in the <head> of the syndicated page. The destination URL must be accessible to Googlebot.

For example, if you publish an article on Medium and want the original on your own site to rank, you add a canonical tag on the Medium post pointing to your site. This tells Google that your site is the authoritative source. Another example: a retailer syndicates product descriptions to a marketplace like Amazon; a cross-domain canonical helps the retailer retain ranking credit.

Canonicalization and Crawl Budget

Google has a limited crawl budget for each site. Duplicate URLs waste that budget. By consolidating duplicates with canonical tags, you help Google discover and index your important pages faster.

If you have thousands of parameterised URLs pointing to the same content, Google may spend time crawling them all. A canonical tag tells Google to focus on the preferred URL. This improves crawlability issues.

Tools like moz sitemap can help you manage canonical tags at scale. But always verify the output manually to avoid mistakes.

For instance, an e-commerce site with 10,000 product pages might have 50,000 parameterised URLs from sorting and filtering. Without canonical tags, Google could waste crawl budget on those duplicates, delaying discovery of new products. By canonicalising all filter variations to the main category page, you free up crawl budget for fresh content.

Comparison of Canonical Signals by Strength
SignalStrengthImplementation
301 redirectStrongestServer-level redirect
rel="canonical" HTML tagStrongIn <head> of page
rel="canonical" HTTP headerStrongIn server response
Sitemap entryWeakIn XML sitemap
Internal linksModerateLinks from other pages

Common mistakes

  • Using multiple canonical tags on the same page Google may ignore all canonical signals and choose its own URL
  • Pointing canonicals to a redirected, broken, or non-preferred URL Google follows the redirect or cannot index the target, wasting the signal
  • Using the wrong protocol or host version, such as canonicalising to HTTP instead of HTTPS Google may treat the HTTP version as canonical, causing security warnings
  • Assuming a canonical tag is a directive rather than a signal Google may override Google may index a different URL if other signals conflict, leading to unexpected rankings

Questions

what is a canonical

A canonical is the preferred URL among a set of duplicate or similar pages. You tell search engines which version to index and rank using a canonical tag or other signals.

what is canonical url in seo

A canonical URL in SEO is the URL you designate as the master copy for a group of duplicate pages. It helps search engines consolidate ranking signals and avoid duplicate content issues.

how to add canonical tag in html

Add <link rel="canonical" href="https://example.com/preferred-page/" /> inside the <head> section of your HTML. Replace the href value with your preferred URL.

how to add canonical tag in wordpress

Many SEO plugins like Yoast or Rank Math add canonical tags automatically. You can also edit your theme's header.php file or use a plugin to set custom canonicals per page.

See also

Sources

  1. Google Search Central: Canonicalization developers.google.com
  2. Google Search Console Help: Canonical URL support.google.com
  3. Google Search Central: Consolidate duplicate URLs developers.google.com

Outbound links are unpaid and nofollow. If one has gone stale, tell me.