Canonical Tags Explained

The same page on your site is often reachable at more than one URL without anyone intending it. A product page loads with and without a tracking parameter. An article is reachable with and without a trailing slash. A blog post gets syndicated on a partner site word for word. To a visitor, none of this matters. To a search engine, it looks like several separate pages competing for the same ranking.

A canonical tag is the fix. It's a single line in a page's code that tells search engines which URL out of a group of duplicates should get the credit. Nothing about the page's appearance or behavior changes, only how it's counted.

Quick Answer

A canonical tag (rel="canonical") tells search engines which version of a page is the master copy when duplicate or near-duplicate content exists at multiple URLs. It's added as a <link> element in a page's <head>, pointing to the preferred URL, so ranking signals consolidate onto that one address instead of splitting across duplicates.

What is a canonical tag?

A canonical tag is an HTML element, <link rel="canonical" href="...">, placed inside a page's <head>. It doesn't redirect anyone and doesn't change what a visitor sees. It's purely a signal read by crawlers.

The underlying idea is simple: give search engines one clear answer to "which URL is this, really?" instead of letting them guess.

Why canonical tags matter

Duplicate URLs are more common than most site owners realize, and left unmanaged they quietly work against a site's own rankings:

📊 Quick stat A large share of "why did my page drop out of search" cases trace back to a missing or incorrect canonical tag, not a content or backlink problem, because the search engine simply indexed a different URL as the authoritative one.

Step-by-step: adding a canonical tag

  1. Identify your duplicate or near-duplicate URLs. Look for the same content reachable with parameters, trailing slashes, http vs https, or www vs non-www variants.
  2. Decide on the preferred URL. Choose the clean, primary version of the URL that you want indexed and ranked, without tracking parameters or session data.
  3. Add the canonical tag to the page's head. Insert <link rel="canonical" href="https://example.com/preferred-page"/> inside the <head> of every URL variant, including the preferred one itself.
  4. Use your CMS's built-in field where available. WordPress SEO plugins, Shopify, and Webflow all expose a canonical URL field per page, so the tag can often be set without editing template code directly.
  5. Keep internal links pointing to the canonical URL. Link to the preferred version from navigation, sitemaps, and other pages, rather than linking to the duplicate variants.
  6. Publish and verify. View the page source or use Google Search Console's URL Inspection tool to confirm the declared canonical matches what you intended, and check which URL Google actually selected.
  7. Recheck after major URL changes. A site migration, a new URL structure, or a CMS switch can silently break existing canonical tags, so it's worth re-auditing after any of those changes.
Try the Rebrixe Canonical Tag Generator — free Enter your preferred URL, get a ready-to-paste canonical tag. No coding required.
Generate Canonical Tag →

Common mistakes

1. Pointing the canonical tag at the wrong page

A canonical tag that mistakenly points to an unrelated or outdated URL can pull ranking signals away from the page you actually wanted indexed, sometimes removing it from search results entirely.

2. Mixing canonical tags with conflicting redirects

If a URL redirects to one page but its canonical tag names a different page, the mixed signal makes it harder for search engines to trust either one, and they may fall back to their own judgment.

3. Canonicalizing paginated content to page one

Pointing every page of a paginated series back to page one can cause the content unique to later pages to be dropped from indexing, since search engines take the canonical tag as a signal that the pages are duplicates.

4. Forgetting canonical tags after a site migration

Old canonical tags left pointing at pre-migration URLs, or a new URL structure rolled out without updating them, can quietly redirect ranking credit to pages that no longer exist in the same form.

💡 Pro tip Every canonical tag should point to a URL that returns a 200 status and is itself indexable — a canonical tag pointing to a redirected, blocked, or noindexed URL sends a contradictory signal that search engines may simply ignore.

Real-world examples

How canonical tags are commonly used to resolve duplicate content across different kinds of sites:

Ecommerce store
Filtered product URLs
One canonical target
A product reachable through color, size, and sort filters all canonicalize back to the single clean product URL.
Publisher network
Syndicated article
Cross-domain tag
A partner site republishing an article sets its canonical tag to the original publisher's URL, not its own.
Marketing team
Campaign landing pages
Parameters stripped
A landing page shared with different UTM tracking parameters canonicalizes to the plain, parameter-free URL.
Blog with pagination
Category archive pages
Self-referencing
Each paginated archive page canonicalizes to itself, keeping its own unique post listing indexable.

In each case, the canonical tag is doing the same job: pointing a group of similar or parameter-varied URLs back to the single address that deserves the ranking credit.

Canonical methods compared

A look at the different ways to declare a canonical URL, and where each one is the right fit.

Method Setup effort Best for Limitation
HTML <link> tag Low, one line per page Standard web pages of any kind Only readable by crawlers that render or parse HTML
HTTP header canonical Moderate, server config Non-HTML files like PDFs or images Requires server-level configuration access
Sitemap inclusion Low, list preferred URLs Reinforcing which URLs are the primary set Treated as a weak signal, not a canonical declaration on its own
301 redirect High, removes the duplicate URL URLs that should stop existing entirely Not appropriate when both URLs need to stay live

Generate your canonical tag right now — free

The Rebrixe Canonical Tag Generator builds a clean, correctly formatted rel="canonical" tag from any URL you enter. No account, no watermark, and nothing to code — just paste your preferred URL and copy the result.

Free Canonical Tag Generator Enter your URL, copy the ready-made canonical tag.
Open Canonical Generator →

Frequently asked questions

A canonical tag tells search engines which URL is the preferred, master version of a page when the same or very similar content is reachable at more than one address. Search engines then consolidate ranking signals, like links and relevance, onto that one URL instead of splitting them across duplicates.
Every indexable page benefits from a self-referencing canonical tag, one that simply points to itself, as a safeguard against accidental duplicate URLs like tracking parameters. Pages with genuine duplicates elsewhere need a canonical tag pointing to the preferred version instead.
No. A redirect sends visitors and crawlers to a different URL and the original stops resolving on its own. A canonical tag leaves both URLs live and accessible, and simply signals to search engines which one should be treated as authoritative for ranking purposes.
Yes, cross-domain canonical tags are valid and commonly used when the same article is syndicated across multiple sites, pointing back to the original publisher's URL so ranking credit consolidates there.
Search engines may stop indexing the page you actually wanted ranked and instead treat the mistaken target as authoritative, which can remove your intended page from search results entirely, so the canonical target should always be checked carefully.
No, a canonical tag is a strong hint, not a directive. Google treats it as one signal among several and can choose a different URL as canonical if other signals, like internal linking or redirects, point elsewhere.
View the page's source code and look for the link rel canonical tag in the head section, or use Google Search Console's URL Inspection tool, which reports both the declared canonical and the one Google actually selected.

Generate your canonical tag in seconds

The Rebrixe Canonical Tag Generator builds a clean, correctly formatted rel="canonical" tag from any URL — no account, no watermark, and nothing to code, just a ready-to-paste snippet.

Launch the Canonical Generator →
← Back to blogs