Canonical Tag Generator and Checker
Turn any URL into its clean canonical form, generate tags and headers for one page or thousands, and find pages whose canonical tags contradict each other.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Set the rules
Choose https, host, trailing slash and the parameters to remove or keep.
- 2Build one tag
Paste a URL on the Build one tag tab and copy the tag or header.
- 3Process a list
Paste many URLs on the Bulk tab and download the CSV map.
- 4Paste pages
Paste page sources, each after a line with three equals signs and the URL.
- 5Read the results
Open each page to see its status and findings.
- 6Fix
Use the fix button for a self canonical and copy the corrected source.
About this tool
The same page is often reachable through many URLs: with and without www, with tracking parameters, with a trailing slash, through index.html or with a sort order in the query. A canonical tag names the one URL that should collect the ranking signals. When it is missing, search engines pick one for you; when it is wrong, they may drop the page you wanted. The tool has three parts. Build one tag turns a URL into its canonical form under rules you set and outputs both the link element for the head and the HTTP Link header used for PDFs. Bulk URLs applies the same rules to a whole list, groups the URLs that collapse into one canonical and exports a CSV map and the tags. Check HTML reads the source of one or many pages and explains what is wrong with their canonical setup.
Normalisation rules
Force https, add or remove www, add or remove the trailing slash, lower-case the path, drop index.html and default pages, and remove parameters by name with wildcards, for example utm_* or gclid. Parameters you always need, such as page for pagination, can be kept. Remaining parameters are sorted so the same filter in a different order gives one URL.
What the checker flags
More than one canonical with different targets, which makes Google ignore them all; the same canonical repeated; empty or relative hrefs; a canonical inside the body; fragments and tracking parameters in the target; an http canonical on an https page; noindex combined with a canonical to another page; og:url that disagrees with the canonical; and hreflang pages that canonicalise away from themselves. Each page gets a status: self, other, missing or conflict.
One-click fix
For a page with a URL, Fix replaces every canonical in the pasted source with one self-referencing tag built from your rules, placed just before the closing head tag.
Limits
This is a text tool. It does not fetch pages, follow redirects or render JavaScript, so a canonical added by a script is not seen unless you paste the rendered HTML. A canonical is a strong hint, not a command; Google can still choose another URL if internal links, sitemaps and redirects point elsewhere.
Worked example
A shop pastes two product category pages. The running shoes page has a relative canonical /shoes/running and a second canonical with ?sort=price, plus a noindex. The checker marks it conflict with two errors. The trail page has one self canonical but its og:url ends in a slash, so it gets a note. In bulk mode with Remove www and Remove trailing slash, three variants of the running page (one on http with utm_source, one with a #reviews fragment, one on www through index.html with gclid) collapse into https://shop.example.com/shoes/running?color=red, group 1, while the trail URL keeps page=2 and loses sessionid.
Quick facts
- Category: Developer & Data
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Google Search Central: how to specify a canonical URL with rel=canonical and other methods
Frequently asked questions
Should every page have a canonical?
Yes, a self-referencing canonical on every indexable page is a cheap safeguard against parameter and tracking duplicates.
Relative or absolute href?
Absolute. Relative URLs work in theory but break easily when pages are served on several hosts or protocols.
Can I canonicalise to another domain?
Yes, for syndicated or duplicated content. The checker reports it as a note so you can confirm it is intended.
Can noindex and canonical be used together?
Avoid it. noindex says drop this page; a canonical to another page says merge it. Pick one signal.
What about paginated pages?
Give each page in a series its own self canonical. Pointing page 2 to page 1 hides the items on later pages.
Is my HTML uploaded?
No. Parsing and fixing happen in your browser, and the last input is saved on this device.
