technical seo 7 min read

Canonical Tags Explained: How to Use Them for SEO

Canonical tags tell Google which version of a page to index when duplicate or similar content appears at multiple URLs. Learn how to implement them correctly and avoid common mistakes.

By SearchRankTool · 03 April 2026

The canonical tag is one of the most important yet misunderstood tools in technical SEO. It solves the duplicate content problem by telling Google which URL is the preferred version of a page — consolidating ranking signals to the right URL and preventing multiple versions from competing against each other in search results. This guide explains exactly what canonical tags are, when to use them and the common mistakes to avoid.

What Is a Canonical Tag?

A canonical tag (formally, the rel="canonical" link element) is an HTML tag placed in the <head> section of a page that tells search engines which URL is the primary, preferred version of that page. It was introduced in 2009 by Google, Bing and Yahoo as a standard way to address duplicate content.

The canonical tag looks like this:

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

When Google sees this tag, it treats the specified URL as the authoritative version and consolidates all ranking signals — links, content quality scores, engagement data — to that URL. The duplicate page may still be accessible but will not appear in search results in place of the canonical version.

According to Google's canonical URL documentation, the canonical tag is a strong hint rather than a directive — Google reserves the right to override your canonical signal if it believes another URL is more appropriate. However, in the vast majority of cases, Google respects correctly implemented canonical tags.

Why You Should Use Canonical Tags

Canonical tags are necessary whenever the same or very similar content is accessible at more than one URL. Without them, Google must guess which version to index — and it does not always guess correctly.

The consequences of missing canonical tags include:

  • Split ranking signals — links from other sites that point to different URL versions of the same page split the page's link equity, weakening its overall ranking power
  • Wrong URL in search results — Google may index and display the parameter-based or session ID version of a URL instead of the clean version
  • Wasted crawl budget — Googlebot spends time crawling multiple versions of the same page instead of discovering new content
  • Cannibalisation — multiple versions of the same page competing against each other for the same keyword

Even if you believe your site has no duplicate content, using self-referencing canonical tags on every page is considered best practice by most SEO professionals.

How to Implement a Canonical Tag

Canonical tags must be placed within the <head> section of your HTML page, not in the body. They should point to the full, absolute URL of the preferred version — including the protocol (https://) and domain.

Example of a correctly implemented canonical tag:

<head>
  <link rel="canonical" href="https://example.com/seo-guide/" />
</head>

If you use a CMS like WordPress, plugins such as Yoast SEO or Rank Math add canonical tags automatically. You can also set canonical tags via HTTP headers (useful for non-HTML files like PDFs):

Link: <https://example.com/preferred-url/>; rel="canonical"

Always use absolute URLs in canonical tags. Relative URLs (like href="/page/") can work in some implementations but absolute URLs are more reliable across all crawlers and avoid any ambiguity about the intended domain.

Self-Referencing Canonical Tags

A self-referencing canonical tag is a canonical tag on a page that points to itself. For example, the canonical tag on https://example.com/seo-guide/ points to https://example.com/seo-guide/.

Why is this useful? It reinforces to Google that this page's URL is exactly as shown — there is no preferred alternative version. It also protects the page from being canonicalised away to a different version if someone links to it with a URL parameter appended (like https://example.com/seo-guide/?ref=newsletter).

Adding self-referencing canonical tags to every page on your site is considered best practice. It takes minimal effort in a CMS (most SEO plugins do it automatically) and provides a consistent, clear signal to Google about every page's canonical URL.

Cross-Domain Canonical Tags

Canonical tags can also be used across domains — this is called a cross-domain canonical. It is most commonly used when you syndicate your content to a partner site but want your original version to be the one Google indexes.

For example, if you publish an article on your site and a media partner republishes it, the partner adds a canonical tag to their version pointing back to your original URL. This tells Google that your version is the authoritative source and consolidates all ranking signals to your domain.

Cross-domain canonicals require the recipient site to implement the tag correctly. If you cannot get your syndication partners to add canonical tags, the next best option is to request they add a noindex tag to the syndicated copy. Alternatively, ensure your original is published and indexed by Google before the syndicated version goes live — Google typically gives priority to whichever version it indexes first.

When to Use Canonical vs 301 Redirect

Both canonical tags and 301 redirects solve duplicate content problems, but they are suited to different situations:

SituationBest Solution
Duplicate URL caused by URL parametersCanonical tag
Completely replaced old URL with new URL301 redirect
Content syndicated to partner siteCross-domain canonical on partner site
WWW vs non-WWW301 redirect
HTTP vs HTTPS301 redirect
Trailing slash variations (/page vs /page/)301 redirect

The general rule: use a 301 redirect when the old URL should never be directly accessible. Use a canonical tag when you need the duplicate URL to remain accessible but want Google to index only one version.

Common Canonical Tag Mistakes

Canonical tags are easy to implement but also easy to implement incorrectly. Common mistakes include:

  • Canonical pointing to a page that is noindexed — if your canonical URL has a noindex tag, you are telling Google to consolidate signals to a page you do not want indexed. Google will likely ignore the canonical in this case.
  • Canonical pointing to a redirect — the canonical URL should always be the final destination URL, not a URL that redirects elsewhere
  • Multiple canonical tags on the same page — if a page has more than one canonical tag (common when plugins and themes both add them), Google may ignore both
  • Relative instead of absolute URLs — can cause unexpected behaviour across different server configurations
  • Canonical pointing to a 404 page — if the canonical URL returns a 404 error, Google will not consolidate signals there
  • Forgetting to add canonicals to paginated pages — pages 2, 3, 4+ of a paginated series should each have their own self-referencing canonical (not a canonical pointing to page 1)

How to Verify Canonical Tags Are Working

After implementing canonical tags, verify they are working correctly using these methods:

  1. Google Search Console URL Inspection tool — enter the URL and check the "Google-selected canonical" field. It should match the URL you specified in the canonical tag.
  2. View page source — right-click any page and select "View Page Source." Search for "canonical" in the source code to confirm the tag is present and pointing to the correct URL.
  3. Screaming Frog — crawl your site and export the canonical tags report to verify every page has the correct canonical URL and there are no conflicting or broken canonicals.

If Google Search Console shows a different canonical than the one you specified, Google has overridden your signal. This usually happens when the page you canonicalised to has issues (noindex, redirect, 404) or when Google detects very different content at the canonical URL.

Frequently Asked Questions

Does a canonical tag pass link equity (PageRank)?

Yes. When you add a canonical tag pointing to a preferred URL, Google consolidates the link equity from all duplicate versions to the canonical URL. This is why canonical tags are useful for consolidating ranking signals — they effectively merge the link equity of duplicate pages into a single stronger page.

Will Google always follow my canonical tag?

Google treats canonical tags as strong hints rather than directives. In most cases, Google follows them. However, if your canonical tag contains errors (pointing to a noindex page, a redirect or a 404), or if Google has other strong signals that a different URL is more authoritative, it may override your canonical. Always verify using the URL Inspection tool in Google Search Console.

Should every page on my site have a canonical tag?

Yes. Adding self-referencing canonical tags to every page is considered best practice. It reinforces your preferred URL structure to Google and protects individual pages from being accidentally canonicalised to parameter variations or other duplicates created by external sharing.

Can I use a canonical tag and a noindex tag on the same page?

In most cases, you should use one or the other, not both. If you want Google to index the canonical URL, do not noindex the page containing the canonical tag. If you want to prevent a page from being indexed entirely, use a noindex tag — you do not need a canonical tag on a noindexed page.

Put This Into Practice

Use our free SEO tools to apply what you just read. No signup required.

Back to Blog