Canonical Tag Generator
Build a clean rel="canonical" link tag for any URL. Strip tracking parameters and normalize trailing slashes.
How to use Canonical Tag
- Paste the full URL of the page — including any tracking or session parameters.
- Toggle the cleanup rules you want: force HTTPS, lowercase the host, strip UTM and other tracking parameters.
- Review the normalised URL the tool produces and confirm it is the version you actually want indexed.
- Copy the full <link rel="canonical" href="..."> tag.
- Paste it into the <head> of the page, before the closing </head>, and deploy.
Canonical tags: how to stop duplicate-content dilution
A canonical tag is a single line of HTML that tells search engines which URL is the master copy of a page. Most websites unintentionally serve the same content at several addresses, and without a canonical the ranking signals for that content get split across all of them. This tool normalises a URL and wraps it in a valid rel="canonical" link tag you can drop straight into your page head.
What the tag looks like
<link rel="canonical" href="https://example.com/blog/post" />It belongs inside the <head> element. You can also send the equivalent signal in an HTTP response header (Link: <...>; rel="canonical"), which is the only option for non-HTML files such as PDFs.
Why duplicate URLs happen
The same page is commonly reachable at more than one URL because of:
- www vs non-www, and http vs https variants of the host
- Trailing-slash and no-trailing-slash versions of the same path
- Tracking parameters like
?utm_source=...appended by campaigns - Faceted navigation and sort orders that add query strings
- Session IDs, print views, and pagination of a single article
To a crawler each of these is a distinct URL. The canonical tag consolidates them so link equity and indexing focus on one version.
Canonical vs 301 redirect vs noindex
These three tools solve overlapping problems and are easy to confuse. A 301 redirect permanently sends both users and crawlers to another URL — use it when the duplicate should not exist at all. A canonical keeps both URLs live and accessible to users while telling search engines which to index — use it for tracking-parameter and faceted variants you still need to serve. A noindex tag keeps a page out of the index entirely — use it for thin pages that should never rank, not for consolidating duplicates.
Common canonical mistakes
- Pointing every page on the site at the homepage (a frequent template bug)
- Canonicalising to a URL that redirects or returns a 404
- Mixing relative and absolute forms, or letting the host casing differ
- Emitting two canonical tags, which makes Google ignore both
- Letting the sitemap list one URL while the canonical names another
Verifying it worked
After deploying, use Google Search Console's URL Inspection tool. It reports both the user-declared canonical (the one in your tag) and the Google-selected canonical (the one Google actually chose). When these differ, your other signals — internal links, sitemap, hreflang — are outvoting your tag and need to be brought into line.
Related SEO tools
- Meta Tag Generator — build the full head block, including the canonical, in one pass.
- XML Sitemap Generator — keep sitemap URLs consistent with your canonicals.
- robots.txt Generator — control crawling without accidentally blocking canonical targets.
- Slugify — produce clean, lowercase URL slugs that are easy to canonicalise.
Frequently asked questions
What does the canonical tag do?
Should the canonical URL be absolute?
Can a page be its own canonical?
What about cross-domain canonicals?
Is rel=canonical a directive or a hint?
Can I have more than one canonical tag on a page?
Should the canonical point to a noindex or redirected URL?
Does the canonical have to exactly match the live URL?
Related tools
More tools you might find useful in the same flow.
Meta Tag Generator
Meta tag generator — build complete SEO title, description, robots, and canonical tags for any page, ready to copy and paste. Free, with no signup needed.
Open Graph Preview
Open Graph preview tool — see exactly how a URL will look when shared on Facebook, LinkedIn, and other social platforms before you publish. Free and instant.
robots.txt Generator
robots.txt generator — build a clean robots.txt file with user-agent rules, allow and disallow paths, and sitemap entries in seconds. Free, no signup needed.
Keyword Density
Keyword density checker — analyze pasted text or page copy for word density, keyword frequency, top phrases, and word counts. Free, runs in your browser.
Built by Muhammad Tahir · About