🔗 Canonical URL Generator
A canonical URL generator that strips tracking parameters, normalizes protocol/www/trailing-slash, and outputs a ready-to-paste rel="canonical" tag.
Canonical Tag
<link rel="canonical" href="https://example.com/blog/post?id=42" />What Canonical URL Generator Does
Google's own canonicalization documentation is explicit that a rel="canonical" tag is a strong signal, not a directive it is required to follow — Google can and does choose a different canonical URL when it has strong reasons to, such as when the tagged URL redirects, 404s, or conflicts with other signals like a sitemap entry. Getting the basics right (an absolute URL, a working page, no conflicting signals) is what makes the tag actually effective rather than ignored.
The most common way a canonical tag ends up wrong in practice is not a wrong URL — it is an inconsistent one. A page reachable at four URLs (with and without www, with and without a trailing slash, with and without tracking parameters) needs to consistently point at exactly one of them from every version, or Google is left choosing on its own.
How to Use Canonical URL Generator
- Paste the page URL, including any query parameters
- Choose which normalizations to apply — strip tracking params, force https, strip www, trailing slash handling
- Copy the generated <link rel="canonical"> tag into your page's <head>
How to Read Your Result
Use absolute URLs, always
Google's documentation specifically warns that while relative canonical paths are technically supported, they can cause real problems — for example if a staging or testing subdomain gets crawled and its relative canonicals resolve against the wrong host.
Add a self-referencing canonical to the canonical page itself
Google explicitly recommends the canonical page also carry a canonical tag pointing at itself — this removes any ambiguity about which URL is the intended target, even for the page that is already correct.
Only strip parameters that do not change the content
Tracking parameters (utm_*, gclid, fbclid) are safe to strip because they do not change what is shown. A parameter that changes the actual content — a filter, a product variant, a page number — should stay in the canonical, since stripping it would point the canonical at a different page than the one being tagged.
Limitations & Accuracy Notes
- A canonical tag is a signal, not a guarantee — Google can select a different canonical if the tagged URL is broken, redirects, or conflicts with other signals like your sitemap.
- Canonical tags only work when they appear in valid HTML in the <head>, or via the equivalent HTTP header for non-HTML files.
- This tool strips a fixed list of common tracking parameters; a site using a custom or unusual tracking parameter should double-check the output.
Frequently Asked Questions
What is a canonical tag for?
Should I strip every query parameter?
Trailing slash or no trailing slash — does it matter?
Does a canonical tag guarantee that URL gets indexed?
Is my URL sent anywhere?
References & Further Reading
- Google Search Central — "How to Specify a Canonical URL with rel="canonical" and Other Methods" — Source for the "strong signal, not a directive" characterization, the absolute-URL and self-referencing-canonical recommendations, and the HTTPS-preferred-by-default behavior