Canonical Tag Generator
Create a clean rel=canonical tag for any page: removes tracking parameters, fixes http and fragments, and gives the HTML tag, HTTP header and Next.js code.
Create a clean rel=canonical tag for any page: removes tracking parameters, fixes http and fragments, and gives the HTML tag, HTTP header and Next.js code.
About this tool
Canonical Tag Generator builds the rel="canonical" tag that tells Google and other search engines which URL is the main version of a page. The same content is often reachable at several addresses: with and without www, over http and https, with a trailing slash or without, and with tracking parameters like ?utm_source=newsletter or ?gclid=… added by ads and emails. Without a canonical tag, search engines may split ranking signals between these copies or pick a version you did not intend. Paste the address you want to rank, and the tool cleans it as you type. It adds https:// if you left it out, switches http to https (you can turn this off), lowercases the domain, removes the #fragment, which search engines ignore, and strips tracking parameters such as utm_source, utm_medium, gclid, fbclid and msclkid, or every parameter if you prefer. You can choose to keep, add or remove the trailing slash and the www, to match the style your site already uses. A checklist explains each change and warns about things worth a second look, such as a relative URL, capital letters in the path, spaces, or parameters left in the address. You then get three ready-to-copy versions: the HTML rel="canonical" link tag for the head section of the page, the HTTP Link header for PDFs and other files that have no HTML head, and the metadata code for a Next.js App Router page. A canonical tag is a strong hint rather than a command, so keep your internal links, sitemap and redirects pointing at the same URL.

Enter the version of the address you want search engines to show.
https, tracking parameters, trailing slash and www.
See what was cleaned and anything to double-check.
HTML tag, HTTP Link header or Next.js metadata.
https, lowercase domain, no fragment, no tracking parameters.
A checklist of fixes and warnings.
HTML, HTTP header and Next.js metadata.
Choose trailing slash and www behaviour.
Updates as you type, with copy buttons.
Runs in your browser; nothing is sent anywhere.
One page, one address
Colour and size options often create many URLs for one product.
ExamplePoint /shoes?color=blue and /shoes?color=red at /shoes if they share the same content.
Emails and ads add tracking parameters.
ExampleMake /offer?utm_source=newsletter canonical to /offer.
Republished posts should credit the original.
ExampleA guest copy of your article on another site points its canonical at your original URL.
http to https or www changes leave duplicate versions.
ExampleSet every page’s canonical to its https, non-www address after moving.
What search engines expect
Every indexable page should point to itself. It stops parameter copies from competing.
Include https:// and the domain; relative canonicals are easy to get wrong.
Two different canonical tags on a page make search engines ignore both.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed Canonical Tag Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 24 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.