Crawl and indexing
Canonical Tag Generator
Enter a page URL and get the canonical form of it, as a link tag and an HTTP header.
Runs in your browser; nothing is uploaded. · Free, no account · 2 min
Rules
Importing a saved run into your account is coming soon. Until then, your last runs stay in this browser only, and you can download your files.
How to use
- Paste the full URL of the page, as people reach it today.
- Choose your site's rules: https, www or not, trailing slash, parameters to drop.
- Read the list of changes the tool made.
- Copy the tag into the page's head, or the header into your server response.
What it checks and how it works
Google's guidance for rel="canonical" is to use an absolute URL, not a relative one; not to specify a URL fragment as canonical; to include a self-referential canonical on the canonical page itself; and to keep the canonical consistent with your sitemap. The tool builds that URL from the rules you choose and lists each change it made, so you can see why two URLs collapse to one.
A canonical is a strong hint, not a command: Google may choose a different canonical. The default parameter list holds common tracking parameters (utm_*, gclid, fbclid and others). Edit it, because a parameter that changes the content, such as a page number, should not be removed.
Sources
Related tools
hreflang Tag Generator
Turn a list of language and country versions into hreflang tags, with the codes checked against ISO 639-1 and ISO 3166-1.
Meta Robots and X-Robots-Tag Generator
Build a meta robots tag or X-Robots-Tag header from Google's documented rules, and see conflicts before you publish.
URL Parameter Stripper
Remove tracking parameters from a list of URLs, and see what was removed from each one.
sitemap.xml Generator
Turn a list of URLs into a valid sitemap.xml, with Arabic paths encoded and the protocol limits checked.
Questions
About this tool
Google recommends a self-referential canonical on the canonical page itself. It helps when the same page can be reached through different URLs, such as with tracking parameters.
No. Google states not to specify a URL fragment as canonical, and the tool removes fragments by default.
No. It is a signal that Google weighs with others, such as redirects and your sitemap. Keep those signals consistent with it.
Get started today
Find out where your brand stands in AI. Free.
Run a free AI visibility analysis on your domain. No credit card, results in minutes. See what AI engines say about your brand today.
Brands already measuring their AI visibility with Zaher.


