Canonical Tag Generator
Generate a correct rel=canonical link tag and learn how to normalize URLs so search engines index the one version you want.
HTML snippet
Checklist
- Always use an absolute URL — relative paths are invalid in canonical tags.
- Pick one site-wide form (https, host with or without www, trailing slash) and apply it everywhere.
- Every indexable page should carry a self-referencing canonical.
- Canonical is a hint, not a redirect: use 301s when a duplicate should disappear for users too.
- Parameterized, sorted and UTM-tagged URLs should canonical to the clean version.
This tool runs entirely in your browser. Your data never leaves your device — it is not uploaded to any server.
How to use
- 1Choose one canonical URL format for your whole site: https, host with or without www, trailing slash or not.
- 2Paste the absolute URL of the page's preferred version.
- 3Copy the link tag into the page <head> and verify it with the URL Inspection tool.
Canonical Tag Generator
A canonical tag tells search engines which URL to index when the same content is reachable at several addresses — with and without trailing slash, with query strings, UTM parameters, http/https or www variants. Done right, it consolidates duplicate URLs into one ranking signal instead of splitting it.
Enter the absolute URL of the preferred version and copy the tag into that page's <head>. The checklist covers the normalization details most implementations get wrong.
Frequently asked questions
What does a canonical tag actually do?
It consolidates duplicates: signals from alternative URLs — UTM copies, parameterized sorts, print views — are merged into the canonical URL, so it ranks instead of the equity being split across duplicates.
Should every page have a self-referencing canonical?
Yes, that is the recommended default. Even unique pages should declare their own URL as canonical to guard against parameter, trailing-slash and case variants you have not noticed yet.
Canonical vs. noindex vs. redirect — which one?
Use a 301 redirect when the duplicate should send users elsewhere, noindex when it must stay accessible but out of results, and canonical when both versions must remain live and crawlable.
Related tools
Meta Tag Generator
Generate title, description, keywords, robots and viewport meta tags with live HTML output you can paste straight into your <head>.
All tools →
hreflang Generator
Build a complete hreflang link cluster — one link per language plus x-default — from your translated URLs, consistent and bidirectional.
All tools →
XML Sitemap Generator
Paste a URL list and get a valid sitemap.xml with lastmod, per-section changefreq and priority — deduplicated and ready to submit.
All tools →
UTM Link Builder
Add utm_source, medium, campaign, term and content to any URL and get a correctly encoded tracking link you can copy or share.
All tools →
Embed this tool
Put this tool on your own site with one line — it runs entirely in the visitor's browser.
<iframe src="https://zoyku.com/en/tools/canonical-tag-generator?embed=1" width="100%" height="640" style="border:0;border-radius:16px" title="Zoyku — canonical-tag-generator" loading="lazy"></iframe>