linkutm Logo
Glossary Term

Canonical URL

glossary canonical url featured

A canonical URL is the version of a web page that search engines treat as the master copy when several URLs serve the same or similar content. It is declared with a canonical tag, the rel="canonical link element placed in a page’s HTML head. The tag tells Google which URL to index and rank, consolidating duplicate signals onto one address.

Google, Bing, and Yahoo introduced the canonical tag jointly in February 2009 to give site owners a way to point search engines at a preferred URL.


Why Canonical URLs Matter

Canonical URLs solve duplicate content. The same page can be reached through many addresses: HTTP and HTTPS versions, www and non-www, trailing slashes, tracking parameters, and print pages. Without a canonical signal, search engines see each variation as a separate page.

That split causes three problems. Ranking signals scatter across duplicates instead of pooling on one URL. Crawl budget gets wasted on near-identical pages. Google may index a version you did not intend to rank. A canonical tag points all of that value at a single preferred URL.

E-commerce sites rely on this. One product can appear under several category paths, each a different URL. A canonical tag on every variant pointing to the main product page keeps the rankings consolidated.

How a Canonical Tag Works

The tag goes in the of every page in a duplicate set, pointing to the preferred URL.


 

A page that points to itself uses a self-referencing canonical, which Google recommends as a default. Use absolute URLs, not relative paths, and include only one canonical tag per page.

Google treats the canonical tag as a hint, not a directive. Google’s John Mueller has stated that the search engine considers your declared canonical as one signal among several, including internal links, sitemaps, and redirects, then picks its own canonical. If those signals conflict, Google may ignore your tag.

For non-HTML files like PDFs, the canonical is set through an HTTP header instead:

Link: ; rel="canonical"

Canonical URL vs Redirect

A canonical tag and a 301 redirect both consolidate duplicate URLs, but they behave differently.

  • A canonical tag keeps every version live. Users can still visit any URL in the set. Only search engines are told which one to index. Use it when both versions must stay accessible, such as a product in two categories or URLs with tracking parameters.
  • A 301 redirect removes the duplicate. Everyone, users and bots, lands on the target URL. The original becomes inaccessible. Use it when the old URL should no longer exist, such as a renamed page or a domain migration.

In short: redirect when one URL should disappear, canonicalize when both should remain but only one should rank.

Common Canonical Tag Mistakes

These errors break canonicalization and confuse search engines.

  • Canonicalizing to a redirected or broken URL. The target should return a 200 status code, not a redirect or 404.
  • Using relative URLs. Always specify the full absolute URL with protocol and domain.
  • Multiple conflicting canonical tags. Two tags on one page cause Google to ignore both.
  • Pointing a canonical at a noindexed page. This sends mixed signals about whether the URL should be indexed.
  • Ignoring parameter duplicates. UTM and tracking parameters create duplicate URLs that need a canonical pointing to the clean version. To see exactly what a tagged link contains, linkutm’s UTM stripper removes the tracking parameters and returns the clean URL.

Frequently Asked Questions

What is a canonical URL?

A canonical URL is the page version search engines treat as the master copy when duplicate or similar URLs exist. It is declared with a rel="canonical tag in the HTML head. Search engines index and rank the canonical URL and consolidate signals from its duplicates onto it.

What does the canonical tag mean?

The canonical tag, written as , names the preferred URL for a set of duplicate pages. It tells search engines which version to index. Google reads it as a strong hint but reserves the right to choose a different canonical based on other signals.

What is the difference between canonical and redirect?

A canonical tag keeps all URL versions accessible and only tells search engines which to index. A 301 redirect sends every visitor to a single URL and removes the original. Canonicalize when both pages must stay live, redirect when one should disappear.

Does a canonical URL fix duplicate content?

Yes, a canonical URL is the standard fix for duplicate content that must stay live. It consolidates ranking signals onto one preferred URL without deleting the duplicates. It does not block crawling, so search engines still visit the variants but rank the canonical.

To strip tracking parameters that create duplicate URLs, use the free UTM stripper at linkutm.