Canonical Tag Generator
Paste a page URL and get a ready-to-paste rel=canonical link tag. The tool normalizes the URL for you: it can drop tracking parameters, lowercase the host, and force HTTPS so every duplicate of a page points at one clean address.
How to generate a canonical tag
- Paste the full URL of the page you want to set as canonical.
- Toggle strip tracking, force HTTPS, and lowercase host to match how your site serves URLs.
- Copy the generated link tag and paste it inside the <head> of that page.
Examples
Strip tracking params and lowercase the host
https://Example.com/Page?utm_source=newsletter&id=5
<link rel="canonical" href="https://example.com/Page?id=5" />
Add a scheme and force HTTPS
example.com/blog (force HTTPS on)
<link rel="canonical" href="https://example.com/blog" />
Frequently asked questions
What does a canonical tag do?
A canonical tag tells search engines which URL is the preferred, primary version of a page. When several URLs show the same or very similar content, the rel=canonical link points crawlers to the one you want indexed, so ranking signals consolidate on that address instead of being split.
How does this help with duplicate content?
The same page is often reachable through many URLs: with and without a trailing slash, over HTTP and HTTPS, or carrying campaign parameters. Pointing every variant at one canonical URL stops search engines from treating them as separate competing pages and prevents your own pages from diluting each other.
Should a page have a self-referencing canonical?
Yes, in most cases. Putting a canonical tag on a page that points to its own clean URL is a recommended practice. It removes ambiguity, defends against scraped copies, and keeps parameter-laden versions of the same page from being indexed in place of the original.
Why does the tool remove tracking parameters?
Parameters like utm_source, gclid, fbclid, msclkid and ref are for analytics and ads, not for identifying a page. Including them in a canonical URL creates needless duplicates. Stripping them produces one stable canonical address while your tracking links keep working for visitors.
Where do I put the canonical tag?
Place the link tag inside the <head> element of the page, before the closing </head>. Use an absolute URL, list only one canonical per page, and make sure the canonical URL itself returns a 200 status rather than redirecting.
Is my URL sent to a server?
No. The URL is parsed and normalized entirely in your browser with JavaScript, so nothing you paste is uploaded or stored.
Related tools
Hreflang Tag Generator
Generate hreflang link tags for multilingual sites. Add each language and URL, set an optional x-default, then copy the head block. Runs in your browser.
Meta Tag Generator
Generate clean HTML meta tags for any page. Set title, description, keywords, author and robots, then copy the head block. Runs in your browser.
Article Schema Generator
Generate Article, NewsArticle or BlogPosting JSON-LD schema. Add headline, author, publisher and dates, then copy the script into your page.
Breadcrumb Schema Generator
Build BreadcrumbList JSON-LD structured data. Add your breadcrumb trail, reorder the steps, then copy or download the script for your page.
Bulk Hreflang Generator
Generate hreflang annotations for many languages at once. Add language and URL rows, pick HTML, XML sitemap, or HTTP header output. Runs in your browser.
Canonical Tag Checker
Paste page HTML to find every rel=canonical link and catch issues: missing, duplicate, relative or wrong-target canonicals. Runs in your browser.