Boneyard Tools

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

  1. Paste the full URL of the page you want to set as canonical.
  2. Toggle strip tracking, force HTTPS, and lowercase host to match how your site serves URLs.
  3. 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