What this tool does
The Canonical Tag Generator turns any page URL into a correct <link rel="canonical"> tag. It normalises the URL the way search engines prefer — forcing HTTPS, lowercasing the domain, removing tracking query parameters, and fixing the trailing slash — then hands you a copy-paste tag plus the equivalent HTTP Link header.
Why canonicalisation matters
A single page can be reached through many URLs: with and without www, over http and https, with ?utm_source=… appended by a campaign, or with a trailing slash. To a crawler these look like separate pages competing for the same keywords. A canonical tag points them all back to one authoritative URL so your ranking signals stay consolidated.
How to use it
Paste the URL, toggle the normalisation options to match your site’s conventions, choose your trailing-slash rule, and copy the generated tag into the page’s <head>. The output updates instantly as you type.
Privacy
Everything runs locally via the pure generateCanonical function. Your URLs never leave the browser — you can confirm this in the Network tab.