Back to Glossary
SEO

Canonical Tag

A canonical tag is a <link> element with the rel="canonical" attribute placed in the HTML <head> to designate the preferred (canonical) URL among duplicate or near-duplicate pages. It tells search engines to consolidate indexing and link signals onto that single representative URL.

  • A canonical tag is implemented by adding <link rel="canonical" href="..."> to the <head> to name the preferred URL for duplicate or near-duplicate pages.
  • Google treats it as a hint, not a rule, so when it conflicts with other signals Google may ignore the specified URL and pick a different page as canonical.
  • The tag must appear inside the <head> with exactly one per page; tags placed in the body or duplicated multiple times are all ignored.
  • Pairing it with a redirect compounds the signals, making it more likely the intended canonical URL surfaces in search results.
  • A self-referencing canonical (a tag pointing to its own page) is not mandatory, but it reduces ambiguity when parameters or alternate paths exist.

Overview

A canonical tag is an HTML tag that tells search engines which URL is the preferred (canonical) version among duplicate or highly similar pages. It is implemented by placing a <link> element with the rel="canonical" attribute in the page's <head>, which consolidates both the indexed target and link signals (such as backlink value) onto the single URL you specify. Google defines canonicalization as "the process of selecting the representative URL for a piece of content" and describes rel="canonical" as a strong signal that guides that selection.

When the same content is reachable through several URLs (for example, addresses with tracking parameters, sort and filter variants, http vs. https, or www vs. non-www), a canonical tag makes it clear which URL should appear in search results and serve as the basis for evaluation.

Implementation

Add a <link> element pointing to the representative page in the <head> of each duplicate page. The basic form shown in Google's official documentation is as follows.

<html>
<head>
  <title>Explore the world of dresses</title>
  <link rel="canonical" href="https://example.com/dresses/green-dresses" />
</head>
</html>

A self-referencing canonical is a tag in which a page designates itself as the canonical URL. It is not required, but when parameters or alternate paths exist it reinforces your preferred URL format and reduces ambiguity.

<!-- self-referencing canonical placed on https://example.com/page -->
<link rel="canonical" href="https://example.com/page" />

Common Mistakes

  • Placement in the body: A rel="canonical" tag in the <body> is ignored. It must sit inside the <head>, ideally as early as possible.
  • Multiple tags on one page: If more than one canonical tag is declared, all of them are ignored. Keep exactly one per page.
  • Misusing pagination: Canonicalizing pages 2 and beyond of a paginated series to page 1 is incorrect. These pages are not duplicates, so the content on later pages may end up not indexed at all.
  • Pointing to a non-indexable URL: Naming a redirected, removed, or noindexed URL as canonical creates conflicting signals.
  • Using relative paths: Relative paths are technically supported but risky over the long term. A staging environment could be crawled unintentionally, so always use absolute URLs.
  • Mixing inconsistent methods: If a redirect, a sitemap, and a rel="canonical" tag designate different representative URLs for the same page, the signal is weakened. Keep the same canonical URL across every method.

Comparison With Other Consolidation Methods

Google offers several methods for consolidating duplicates, and they carry different signal strengths. A canonical is also meant for index consolidation, not for excluding or blocking a page.

MethodRoleSignal strength
301 redirectPermanently moves a duplicate URL to the representative URLStrong signal
rel="canonical" tagKeeps access intact while consolidating indexing and link signals onto the representative URLStrong signal (hint)
Sitemap inclusionLists candidate representative URLs in the sitemapWeak signal
noindexExcludes the page from the index (not consolidation)Index control — not for canonicalization

These methods can compound, so using two or more of them together and consistently improves the odds that the intended representative URL appears in search results.

Evidence

Google Search Central's documentation ("How to Specify a Canonical with rel="canonical"") defines rel="canonical" as a strong signal that the specified URL should be canonical, and advises against using robots.txt or the URL removal tool for canonicalization while recommending that you always use absolute URLs.

The canonicalization overview documentation likewise states that designating a canonical is a hint, not a rule. Because Google combines the signals it collects to choose the most complete and useful page as canonical, it may select a different page than the one you specified.

The Google Search Central blog ("5 common mistakes with rel=canonical," 2013) explains that a canonical placed in the body is ignored, that all canonical tags are ignored when several are declared on one page, and that canonicalizing a paginated series to page 1 is incorrect usage.

Implementation Checklist

  • Confirm the canonical tag is placed inside the <head>, as early as possible.
  • Check that each page has exactly one rel="canonical" tag.
  • Use an absolute URL that includes the protocol and domain in the href.
  • Verify the representative URL returns a 200 response and is indexable (not a redirect, noindex, or 404).
  • Align redirects, sitemaps, and canonical tags so they all point to the same representative URL.
  • Apply a self-referencing canonical to each paginated page rather than pointing them at page 1.
  • Validate in Google Search Console's indexing report that "Google-selected canonical" matches the URL you specified.

References and Sources

Related terms