Canonical URL Generator

Generate a clean canonical link tag and strip tracking parameters from URLs.

Canonical URL
HTML tag

        
HTTP header (for PDFs and non-HTML files)

        

How to use the Canonical URL Generator

  1. Paste the URL of the page, including any parameters you are seeing in analytics.
  2. Choose your preferences for HTTPS, www and trailing slash, and which parameters to keep.
  3. Copy the canonical tag into the <head> of the page (every duplicate variant should point to the same URL).

About this tool

The same page is often reachable at several URLs – with and without www, with tracking parameters like ?utm_source=newsletter, or with and without a trailing slash. A canonical tag – which this canonical URL generator builds for you – tells search engines which version is the main one, so ranking signals are consolidated instead of split between duplicates.

Paste any URL and this tool normalizes it: lowercases the host, removes default ports, fragments and common tracking parameters (utm_*, gclid, fbclid and more), and applies your HTTPS, www and trailing-slash preferences. It then outputs the tag and the equivalent HTTP header.

Frequently asked questions

Yes, a self-referencing canonical on every indexable page is a good default. It protects you from duplicates created by parameters you do not control, such as tracking links.

No. A 301 redirect sends users and bots to another URL. A canonical is a hint: both URLs still work, but search engines are asked to index only the canonical one.

Google accepts relative URLs, but absolute URLs including https:// and the domain are recommended to avoid mistakes.

It strips UTM tags and other click-tracking parameters before building the tag, because tracking parameters create duplicate content. You can also force HTTPS, add or remove www and add a trailing slash, so the canonical tag matches the URL format the rest of your site uses.