Skip to content
Page URL → rel=canonical tagSEO tools

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.

About this tool

About Canonical Tag Generator

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.

Canonical Tag Generator tool

When you need a canonical tag

One page, one address

Product variants

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.

Campaign links

Emails and ads add tracking parameters.

ExampleMake /offer?utm_source=newsletter canonical to /offer.

Syndicated articles

Republished posts should credit the original.

ExampleA guest copy of your article on another site points its canonical at your original URL.

Site migrations

http to https or www changes leave duplicate versions.

ExampleSet every page’s canonical to its https, non-www address after moving.

Canonical tag best practice

What search engines expect

Add a self-referencing canonical

Every indexable page should point to itself. It stops parameter copies from competing.

Always use absolute URLs

Include https:// and the domain; relative canonicals are easy to get wrong.

Only one per page

Two different canonical tags on a page make search engines ignore both.

Keep the sitemap consistent

List only canonical URLs in your sitemap.

XML Sitemap Generator
Built & tested by

HemantInsights

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

Answers and guidanceFrequently Asked Questions
What does a canonical tag do?
It tells search engines which URL is the main version of a page when the same content is available at several addresses, so ranking signals are combined on that one URL.
Where do I put the canonical tag?
Inside the head section of the page’s HTML. For PDFs and other files without HTML, send it as an HTTP Link header instead.
Should every page have a canonical tag?
Yes. A self-referencing canonical on every indexable page is recommended, because it protects against copies created by tracking parameters and other variations.
Should I keep the trailing slash?
Either style is fine; what matters is consistency. Use the same style in your canonical tags, internal links and sitemap.
Is a canonical tag the same as a redirect?
No. A redirect sends visitors to another URL; a canonical tag leaves the page reachable and only tells search engines which version to index. Use a redirect when the old URL should not be used at all.
Does Google always follow the canonical tag?
It is a strong hint, not a command. Google may choose a different URL if your links, sitemap or redirects point elsewhere, so keep them all consistent.
More tools for your workflowRelated Tools

Robots.txt Generator & Tester

Create a robots.txt file from presets (WordPress, online shop, block AI crawlers), add rules per bot and sitemaps, and test whether any URL is allowed or blocked.

HTML SEO Meta Tag Generator

Generate title, meta description, canonical, Open Graph and X (Twitter) tags with live Google and social previews. Properly escaped HTML, ready to paste.

XML Sitemap Generator

Create an XML sitemap from a list of URLs, a spreadsheet column or a page’s HTML. Duplicates removed, addresses escaped, large sites split automatically.

Hreflang Tag Generator

Create hreflang link tags for multilingual and multi-country sites, with x-default, and catch invalid language and country codes such as en-UK.

1 / 3
Browse all seo tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.