Free Backlink CheckerFree Backlink Checker
Crawly
All articles
Technical SEOCanonical Tags

What is a Canonical Tag and How Does It Work?

Canonical tags tell search engines which version of a page to index. Here is how rel=canonical works, when to use it, and the mistakes that cause problems.

16 May 2026 · 7 min read

A canonical tag is an HTML element that tells search engines which version of a page is the definitive one. When multiple URLs return the same or very similar content, the canonical tag points to the version you want indexed and ranked.

It sits in the <head> of a page as a <link> element:

<link rel="canonical" href="https://www.example.com/the-original-page/" />

Why do canonical tags matter?

Duplicate content is one of the most common technical SEO problems. It arises more often than most people expect: URL parameters from tracking and filtering, HTTP versus HTTPS variations, trailing slash versus no trailing slash, www versus non-www, and printer-friendly page versions all create duplicate URLs that search engines see as separate pages with identical content.

When Google encounters multiple URLs with the same content, it has to decide which one to index. Left to its own judgement, it may pick the wrong one. The canonical tag gives you control over that decision.

Without proper canonicalisation, link equity from external backlinks can be split across duplicate URLs instead of consolidating on one. A page with three URL variations might receive backlinks across all three, dividing the ranking signal rather than concentrating it.

How does rel=canonical work?

When Google crawls a page with a canonical tag, it notes the canonical URL and uses that as the preferred version for indexing. The canonical URL is the one that appears in search results and receives the link equity from any backlinks pointing to any of the duplicates.

The canonical tag is a hint, not a directive. Google may choose to ignore it if it believes another URL is a better canonical. This is most common when the canonical URL and the page the tag is on have meaningfully different content, or when the canonical URL returns a redirect or error.

Self-referencing canonicals

A self-referencing canonical points to the page itself:

<!-- On https://www.example.com/page/ -->
<link rel="canonical" href="https://www.example.com/page/" />

This is best practice even when there are no known duplicate URLs. It prevents search engines from creating alternate canonical interpretations from parameters added by third-party tools (analytics, social sharing, ad tracking).

Common canonical tag use cases

URL parameters

Filtering, sorting, and session parameters create hundreds of near-duplicate URLs on ecommerce and large content sites:

/products/?color=blue
/products/?color=blue&sort=price
/products/?session=abc123

All three should have a canonical pointing to /products/ (or the relevant clean URL).

HTTP to HTTPS

If your site serves content on both HTTP and HTTPS, every HTTP page should have a canonical pointing to the HTTPS version, alongside the 301 redirect. Both signals together make the preference unambiguous.

WWW vs non-WWW

Similarly, http://example.com/page/ and https://www.example.com/page/ should not both be indexable. Use 301 redirects to enforce the preferred version and canonical tags to reinforce it.

Syndicated content

If your content is published on another site (a content syndication arrangement), the canonical on the external site should point back to the original URL on your site. This ensures the original version receives the ranking benefit.

Pagination

For paginated content (/blog/, /blog/page/2/, /blog/page/3/), each paginated URL is typically self-canonical. Do not point all paginated pages to page one: that suppresses the content on subsequent pages from indexing.

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

A 301 redirect sends users and bots from one URL to another. The original URL stops being accessible; browsers and crawlers land on the destination.

A canonical tag does not redirect anyone. Both URLs remain accessible. The canonical tag simply tells Google which one to treat as the primary version for indexing purposes.

Use a 301 redirect when the original URL should not be visited at all. Use a canonical tag when the content at both URLs should remain accessible but you want to consolidate their ranking signals.

Common canonical tag mistakes

Canonical pointing to a redirecting URL

If your canonical points to a URL that returns a 301 redirect, Google has to follow the chain. The tag should always point to the final destination URL, not an intermediary.

Canonical pointing to a noindex page

A canonical pointing to a page with a noindex tag creates a contradiction. You are saying "this is the preferred version" while also saying "do not index this page". Google will usually respect the noindex, meaning neither version gets indexed.

Canonical pointing to a 404 or non-existent page

If the canonical URL returns a 404, Google cannot index the preferred version. The page will likely not rank at all.

Missing canonical on paginated pages

Every paginated page should have a self-referencing canonical. Without it, Google may decide that all paginated URLs are duplicates of page one and suppress them.

Canonical tag in the body, not the head

Canonical tags must be in the <head> section. A canonical tag in the <body> is not recognised.

How to audit canonical tags across your site

Manually checking canonical tags works for a handful of pages. For a full site audit, you need a crawler.

Crawly's canonical tag checker lets you check individual URLs for their canonical tag instantly. For a complete audit across your entire site, Crawly's desktop app crawls every page and reports the canonical URL for each one, flagging pages where the canonical points to a different URL, a redirect, a 404, or is missing entirely.

See how to check canonical tags across your entire site for the full audit process.


Canonical tags are one of the most consequential technical SEO elements on any site with URL variations. Check yours with Crawly's free canonical tag checker.

Try it yourself with Crawly

Free to download. No page cap. Claude Code MCP built in.

Download free