The same product page often lives at several addresses at once. A shop shows a kettle at one clean URL, and again at the same URL with a colour parameter added by its own filters. A blog post is reachable with and without tracking codes. Each version works fine for visitors, but to a search engine the site now seems to hold the same content in several places, and the signals those pages earn, links included, are split between addresses that should have been one.

A canonical tag is the standard way to clear that up: one line in the page head that names the preferred version. This guide explains what the tag is, when to use one, and how to generate a correct tag with the free Canonical Tag Generator on Ovatly, which runs in your browser. It also covers the two honest limits that matter most: the tag is a strong hint, not a command, and it is not a redirect.

Contents

  • Quick answer
  • What the canonical tag actually is
  • When a page needs one
  • Canonical or redirect: the deciding question
  • How to generate and place the tag, step by step
  • Worked example: canonicalising a filtered product page
  • Limitations: hints, not commands
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

A canonical tag is a link element, <link rel="canonical" href="...">, placed in a page's head. Its href names the absolute URL of the preferred version of that content. When similar content exists at several addresses, the tag tells search engines to credit the named URL, and signals from the duplicate versions generally consolidate onto it. Use the Canonical Tag Generator to build the tag: enter the full absolute URL, choose whether the tag is self-referencing, and paste the result into the head of the page and of every duplicate version. Give every page exactly one canonical tag, and remember it is a strong hint that search engines can overrule, not an order they must obey.

What the canonical tag actually is

The tag is a single link element with rel="canonical". It produces nothing visible on the page; it is an instruction read from the head by search engines. Its whole content is one decision: of all the addresses where this content can be reached, this URL is the one that should count as the original.

That decision matters because of consolidation. When duplicate versions earn links and other signals separately, each address looks weaker than the content deserves. Pointing every version's canonical at one preferred URL tells search engines to consolidate those signals onto it, which is the main reason to set the tag correctly.

A special case deserves its own name: the self-referencing canonical, where a page points at its own URL. It is good practice even on pages with no known duplicates, because it confirms the preferred address even when parameters or tracking codes get added to links pointing at the page. The clean version stays the canonical one, whatever extra codes the shared links carry.

When a page needs one

The pattern to look for is one piece of content, several working addresses. Filter and sorting versions of shop pages are the classic case: the product does not change when the URL gains a colour or size parameter, but the address does. Print versions of articles are another: same text, a second URL built for the printer.

Syndication is the cross-domain case. Cross-domain canonicals are supported and are commonly used when the same content is published on two sites, for example a main site and a syndication partner: the partner's copy canonicalises to the main site's URL, so the original collects the credit.

And the quiet default case: every ordinary page, carrying a self-referencing canonical so its preferred address is on record before parameters and tracking codes start accumulating on its links.

Canonical or redirect: the deciding question

The two tools solve different problems, and the deciding question is whether the extra URL should still be visited. Redirect when the old URL should never be visited: moved pages, and http to https, are the entry's own examples. The visitor and the search engine both end up at the new address, and the old one leaves circulation.

Use a canonical when several URLs must keep working, such as filter and print versions of one page. Shoppers still need the filtered address; printers still need the print address. The canonical lets every version stay reachable while naming one of them as the version that counts. Choosing a canonical where a redirect belongs leaves a dead address live forever; choosing a redirect where a canonical belongs breaks URLs that real features depend on.

How to generate and place the tag, step by step

  1. Open the Canonical Tag Generator.
  2. Enter the full, absolute URL of the preferred version of the page, protocol included. The URL must be absolute; relative canonicals are unreliable and the tool rejects them.
  3. Choose whether the tag is self-referencing, that is, whether the URL you entered is this page's own address.
  4. Copy the generated tag into the head of the page, and of every duplicate version, so all of them name the same preferred URL.

Worked example: canonicalising a filtered product page

The tool's own example is the shop pattern. A shop shows the same kettle at "/kettle" and at "/kettle?color=black". Both addresses work, both show the same product, and either could collect links.

Enter the canonical URL "https://example.com/kettle" and the tool produces:

<link rel="canonical" href="https://example.com/kettle">

Placed on both versions, in each page's head, it tells search engines to credit the clean URL. The filtered address keeps working for shoppers who arrive through the colour filter; the clean address collects the consolidated signals. Note the shape of the href: absolute, with the protocol, naming a page rather than a parameter string. That shape is the whole craft of the tag.

Limitations: hints, not commands

Two limits frame everything above, and both come from the tool's own notes. First, canonical tags are strong hints, not commands. Search engines can choose a different canonical if signals conflict, for example when a page's internal links point elsewhere than its canonical tag does. A site whose navigation links to the parameter version while its tags name the clean version is arguing with itself, and the search engine settles the argument its own way. Keep the signals consistent: link internally to the canonical URL.

Second, one tag per page. Every page should have exactly one canonical tag; multiple conflicting tags are usually ignored, which silently discards the instruction entirely. Templates that inject a canonical automatically, plus a plugin or a hand-added line that injects another, are the usual cause. Check the rendered head, not just the template you remember writing.

Common mistakes

  • A relative canonical. The URL must be absolute and include the protocol. Relative canonicals are unreliable, and the generator rejects them for that reason.
  • Two canonical tags on one page. Conflicting tags are usually ignored, so the page ends up with no effective instruction at all.
  • Canonicalising what should be redirected. A moved page or an http version should be redirected, not canonicalised; the old address should never be visited.
  • Redirecting what should be canonicalised. Filter and print versions must keep working. A redirect breaks the feature; a canonical preserves it.
  • Signals that contradict the tag. Internal links pointing at the non-canonical version give the search engine a reason to choose a different canonical. Link to the URL you named.

FAQs

What does self-referencing mean? A self-referencing canonical points a page at its own URL. It is good practice: it confirms the preferred address even when parameters or tracking codes get added to links.

Canonical or redirect: which should I use? Redirect when the old URL should never be visited (moved pages, http to https). Use a canonical when several URLs must keep working, such as filter and print versions of one page.

Can the canonical point to another domain? Yes, cross-domain canonicals are supported and are commonly used when the same content is published on two sites, for example a main site and a syndication partner.

Does a canonical pass link value? Generally yes: signals from duplicate versions consolidate onto the canonical URL, which is the main reason to set it correctly.

Can I put two canonical tags on one page, just to be safe? No. Every page should have exactly one canonical tag. Multiple conflicting tags are usually ignored, which leaves the choice you were trying to make to the search engine.

Conclusion

A canonical tag is one line that makes one decision: which address counts as the original when content lives at several. Make the URL absolute, keep exactly one tag per page, keep your internal links consistent with it, and reach for a redirect instead when the extra address should stop being visited. The Canonical Tag Generator builds the tag in seconds; the judgement about which URL deserves to be canonical stays, properly, with you. For checking how the finished page is likely to appear in results before it goes live, see the sibling guide: How to Preview Your Page in Google Search Results Before Publishing. The rest of the cluster lives in the SEO Tools guides.

Related guide: How to Write Better Meta Titles and Descriptions.