Canonical Tag Generator

Prevent duplicate-content problems in seconds. This free canonical tag generator creates the rel=canonical link tag that tells search engines which version of a page is the original, consolidating ranking signals to the URL you choose.

How to use the canonical tag generator

Enter the preferred (canonical) URL for the page and copy the generated tag into the <head>. When the same or very similar content is reachable at multiple URLs — for example with tracking parameters or print versions — a canonical tag points search engines to the one you want ranked.

When a canonical tag helps, and when it does not

A canonical tag is a consolidation signal, not an access control. Use it when the same or near-identical content is reachable at more than one address: tracking parameters, session IDs, print views, sort and filter variants, or a page syndicated to a partner site. In those cases the tag tells search engines and AI crawlers which address to treat as the one worth indexing, and link signals pointing at the duplicates are credited to it.

It is the wrong tool when the pages are genuinely different, when you want a duplicate removed from the index entirely, or when a URL has permanently moved. Pages that serve different intent should each stay indexable. To remove a page from the index, use a noindex directive. To move one, use a 301 redirect, which passes signals far more decisively than a canonical ever will.

Preview of the Canonical Tag Generator with Page URL and Preferred URL fields and a Tag result

Common canonical mistakes

Most canonical problems that turn up in technical audits fall into a short list:

  • Relative addresses. Always output the full absolute URL, including protocol and host, or crawlers may resolve it against the wrong base.
  • Canonicalising to a different page. Pointing a product at a category, or a blog post at the homepage, tells search engines the original is not worth indexing at all.
  • Paginated pages pointing at page one. Each page in a series holds different items, so each should canonicalise to itself.
  • Combining a canonical with noindex. The two give conflicting instructions and the outcome is unpredictable. Pick one.
  • Canonical chains. If A points to B and B points to C, the signal weakens at every hop. Point every duplicate straight at the final destination.
  • Placing the tag in the body. The link element is only honoured inside the head, or in the HTTP header for non-HTML files.
Illustration: a scan beam auditing a web page, with a checklist of passes, warnings and a ready-made fix

Frequently asked questions

What is a canonical tag?

A canonical tag (rel=canonical) is an HTML link element that names the preferred URL for a piece of content. It helps search engines consolidate duplicate or near-duplicate pages into a single ranking URL.

Should a page canonicalize to itself?

Yes. Self-referencing canonicals are a best practice. Each page should include a canonical tag pointing to its own clean, preferred URL.

Does a canonical tag guarantee which URL ranks?

No. Canonical tags are a strong hint, not a directive. Google usually respects them but may choose a different canonical if other signals disagree.

Is a canonical tag the same as a redirect?

No. A redirect sends both users and crawlers to a different address, and the original page stops being served. A canonical tag leaves every version reachable and simply states a preference about which one should be indexed. Use a 301 redirect when a page has permanently moved, and a canonical tag when duplicates need to stay available but only one should rank.

See your site’s full SEO score — free.Instant audit, 10 checks, no signup to see it.
Run free audit →
Free tools →My toolkit →Locations →Comparisons →
Verified Agent-Ready by DigiJaws
See who AI recommends instead of you — free AEO audit, 90-day plan you keepGet my free audit