Canonical URL Generator

Clean up URLs into their canonical form and generate the rel="canonical" tag for each one.

FreeNo sign-upRuns in your browserMobile-friendly

Loading tool…

Need help with this tool or found a problem? WhatsApp support Email

What does the Canonical URL Generator do?

The same page can often be reached at many addresses: with and without www, http vs https, with tracking parameters, or with index.html on the end. A canonical tag tells search engines which version is the main one, consolidating ranking signals.

This tool applies the normalisation rules you choose — force https, lowercase host, add or remove www, strip utm_*, fbclid and gclid parameters, sort remaining parameters, remove index.html, add trailing slashes and drop #fragments — and outputs clean URLs, link tags or HTTP Link headers.

How to use the Canonical URL Generator

  1. Paste one or more URLs.
  2. Tick the normalisation rules that match your site’s preferred format.
  3. Choose output: link tags, clean URLs or HTTP header.
  4. Copy the result into your pages or server configuration.

Examples

Tracking clean-up

HTTP://WWW.Example.com/blog/index.html?utm_source=x&b=2&a=1 → https://www.example.com/blog/?a=1&b=2

Common use cases

  • Fixing duplicate content from tracking links
  • Choosing a consistent www/non-www and trailing-slash format
  • Adding canonical headers to PDFs (HTTP Link header)

Features and benefits

  • Private by design — your data is processed on your device and never uploaded.
  • Free with no account, no watermark and no usage limits.
  • Works on phones, tablets and desktops in any modern browser.

Limitations to know

  • A canonical tag is a strong hint, not a command — Google may choose a different canonical if signals conflict.
  • Pick rules that match how your server actually serves pages.

Frequently asked questions

Should every page have a canonical tag?

It is good practice to add a self-referencing canonical on every indexable page.

Canonical vs 301 redirect?

Use a 301 when the old URL should never be used. Use a canonical when both URLs must keep working (for example with tracking parameters).

Can I use canonical for PDFs?

Yes, with an HTTP Link header, which this tool can generate.

Embed this tool on your website

Add the free Canonical URL Generator to your blog or website. Paste the code into your page’s HTML; the tool runs in your visitors’ browsers and stays up to date automatically. Please keep the credit line below the tool.

Free to use on any website. The tool runs inside an iframe served from viptools.pk; nothing your visitors type is sent to your site or ours. Preview the embedded version.

All seo tools