Canonical Tag
Also known as: rel=canonical, Canonical URL
A canonical tag (rel=canonical) is an HTML link element that tells search engines which URL is the preferred version among duplicate or near-duplicate pages. Engines treat it as a strong hint, not a directive, consolidating ranking signals to the chosen canonical URL.
Key Takeaways
- A canonical tag is an HTML link element that tells search engines which URL is the preferred version among duplicates.
- It uses the rel=canonical attribute placed in the page head or served via HTTP header.
- Search engines treat the canonical as a strong hint, not a strict directive, and may sometimes choose a different URL.
- Correct canonicals consolidate ranking signals to one URL, preventing near-duplicate pages from competing with each other.
- Common errors include pointing canonicals at redirected, noindexed, or homepage URLs instead of the true preferred page.
How It Works
A canonical tag identifies the master version of a page when several URLs show the same or very similar content. For example, a product reachable through different filter or tracking parameters can carry a canonical pointing to one clean URL, so engines know which one to index and rank.
Engines then attempt to consolidate signals like links and relevance onto the canonical URL. Because it is a hint rather than a command, engines can override it if other clues disagree, which is why the canonical should agree with your internal links, sitemap entries, and Index Coverage reporting in Search Console.
Canonicals also interact with other technical signals. They should point to live, indexable pages rather than links caught in a Redirect Chain, and on international sites your canonical choices must stay consistent with your Hreflang annotations so each language version canonicalizes to itself. Clean canonicals also reduce wasted Crawl Budget on duplicate URLs.
Why It Matters
Duplicate content splits link equity and can leave engines guessing which version to rank. A correct canonical consolidates signals to one URL, preventing self-competition and helping the right page earn rankings for its target queries.
Example
An ecommerce store lists the same jacket under several URLs because of color filters and session parameters. Each variant includes a canonical tag pointing to the clean product URL. Search engines then consolidate ranking signals onto that single page instead of splitting them across near-identical versions, and the main product URL is the one that appears in results.
Common Mistake
Pointing canonicals at the wrong page, at redirected or noindexed URLs, or at the homepage for every page. Also self-canonicalizing paginated or filtered pages incorrectly, which tells engines to drop pages you actually want indexed.
Frequently Asked Questions
What does a canonical tag do?
It tells search engines which URL is the preferred version among duplicate or near-duplicate pages. Engines use it to consolidate ranking signals onto that one URL, which prevents similar pages from competing and helps the right page rank for its queries.
Is a canonical tag a directive or a hint?
It is a strong hint, not a directive. Search engines usually respect a correct canonical but can choose a different URL if other signals, like internal links or sitemaps, contradict it. Keeping all signals consistent makes engines more likely to honor your choice.
Should every page have a canonical tag?
It is good practice for each page to include a self-referencing canonical pointing to its own preferred URL. This clarifies the correct version even when parameters or duplicates appear, as long as you avoid pointing canonicals at the wrong page.
What is the difference between canonical and noindex?
A canonical consolidates duplicate pages onto one preferred URL that you still want indexed. Noindex tells engines to keep a page out of the index entirely. Do not point a canonical at a noindexed page, since the signals conflict.