Canonical Tag Generator
Generate a correct rel=canonical link tag from any URL, with optional trailing-slash and lowercase normalization. Fix duplicate content the easy way.
Generated canonical tag
Place this tag in the <head> of every duplicate variant of the page — parameterised URLs, www/non-www, HTTP/HTTPS — so search engines consolidate ranking signals onto the URL above. Keep it consistent with your sitemap and internal links.
What is the Canonical Tag Generator?
The Canonical Tag Generator turns any page URL into a properly formatted <link rel="canonical"> tag.
- Instant, valid rel=canonical markup
- Optional lowercase host and path normalization
- Optional trailing-slash normalization
- URL validation with clear error messages
- Explains when and why canonicals matter
- Private — nothing leaves your browser
How to use the Canonical Tag Generator
- 1
Paste the preferred (canonical) URL of your page.
- 2
Optionally enable lowercase normalization and trailing-slash handling.
- 3
Check the generated <link rel="canonical"> tag, which updates live.
- 4
Copy the tag and place it in the <head> of every duplicate variant of the page.
About the Canonical Tag Generator
The Canonical Tag Generator turns any page URL into a properly formatted <link rel="canonical"> tag. Optional normalization checkboxes lowercase the host and path and enforce a consistent trailing slash, helping you standardise URLs across a whole site.
Canonical tags tell search engines which version of a page is the 'master' copy when the same content is reachable at multiple URLs — with and without www, with tracking parameters, over HTTP and HTTPS, or via faceted navigation.
The tool validates your URL as you type and runs entirely in your browser. It's useful for SEO specialists cleaning up duplicate content and developers adding canonical support to templates.
Frequently asked questions
When do I need a canonical tag?
Whenever the same or very similar content is reachable at more than one URL: URL parameters (?utm_source=…), www vs non-www, HTTP vs HTTPS, print versions, paginated or filtered category pages, and syndicated content. The canonical tells Google which URL should collect the ranking signals.
Should a page have a self-referencing canonical?
Yes, it's a recommended best practice. A self-referencing canonical (the page pointing to its own clean URL) protects you when others link to your page with tracking parameters or when your CMS exposes alternate URLs you didn't anticipate.
Is the canonical tag a directive or a hint?
A hint. Google treats rel=canonical as a strong signal but can ignore it if other signals disagree — for example if internal links and sitemaps consistently point at a different URL. Keep your canonicals, sitemap and internal links consistent for best results.
Should canonical URLs be absolute or relative?
Always absolute, including the https:// scheme and full hostname. Relative canonicals are technically allowed but frequently cause errors when pages are served from multiple hosts or protocols, so Google recommends absolute URLs.
Does a canonical tag pass link equity like a redirect?
Roughly, yes — when Google honours the canonical it consolidates ranking signals onto the chosen URL, similar to a 301. The difference is that users still see the duplicate URL; a redirect physically moves them. Use redirects when the duplicate shouldn't exist at all.
Guides for Canonical Tag Generator
Related tools
Meta Tag Generator
Generate SEO-ready HTML meta tags with live character counters for title and description. Free meta tag generator with robots, viewport and charset options.
Hreflang Tag Generator
Generate hreflang link tags for multilingual and multi-regional sites. Add URL and language rows, include x-default, and catch duplicate locales.
Robots.txt Generator
Build a robots.txt file with user-agent rules, allow/disallow paths, crawl-delay and sitemap URL. One-click presets to allow all, block all, or block AI bots.
XML Sitemap Generator
Paste a list of URLs and generate a valid XML sitemap with lastmod, changefreq and priority. Validates URLs and downloads sitemap.xml instantly.
URL Encoder
Percent-encode text for URLs instantly. Switch between encodeURIComponent and encodeURI modes, see live output and copy the result. Free URL encoder.