Zero Signup ToolsFree browser tools

SEO Tools

Canonical Tag Generator

Generate a clean rel=canonical link tag and HTTP Link header from any URL. Strip tracking parameters, force https, normalize host, slash, and case.

empty

Paste any URL. If you omit the scheme, https is assumed.

Normalization options

Each option is applied in a fixed order so the same input always produces the same canonical URL.

Scheme

Host

The hostname is always lowercased per RFC 3986.

Query string

Drop tracking removes utm_*, gclid, fbclid, msclkid, and 27 similar parameters.

Trailing slash

Canonical URL

--

HTML link tag

Place inside the <head> of the page.

Enter a URL above to generate the link tag.

HTTP Link header

Best for non-HTML files such as PDFs and images. Send as a response header.

Enter a URL above to generate the Link header.

What gets stripped on Drop tracking

These parameters are removed when Drop tracking is selected. Custom marketing parameters not in this list are kept; switch to Drop all to remove every query parameter.

  • utm_source
  • utm_medium
  • utm_campaign
  • utm_term
  • utm_content
  • utm_id
  • utm_name
  • utm_creative_format
  • utm_marketing_tactic
  • gclid
  • gbraid
  • wbraid
  • fbclid
  • msclkid
  • yclid
  • twclid
  • dclid
  • _ga
  • _gl
  • mc_cid
  • mc_eid
  • igshid
  • ref
  • ref_src
  • ref_url
  • _hsenc
  • _hsmi
  • hsCtaTracking
  • trk
  • trk_contact
  • vero_id
  • vero_conv

How to use

  1. Paste the page URL into the input. If you omit the scheme, https is assumed.
  2. Pick the scheme (force https), host (preserve, strip www, or force www), query (drop tracking, drop all, or preserve), and trailing slash behavior that matches your site convention.
  3. Toggle Lowercase the path and Strip the URL fragment if your URLs contain uppercase characters or anchor fragments.
  4. Read the Notices panel for warnings such as tracking parameters left in the URL, http instead of https, or mixed-case paths.
  5. Copy the rel=canonical link tag and paste it into the head of the page, or copy the HTTP Link header for non-HTML files. For cross-domain canonicalization, enable the custom canonical option and paste the target URL.

About this tool

Canonical Tag Generator builds a properly-formed rel=canonical link tag for any URL, with the URL normalization steps that prevent the most common duplicate-content mistakes. Paste the page URL into the input and the tool emits the HTML tag (link rel="canonical" href="..." /) ready to drop into the head of the page, plus an HTTP Link response header form that works for non-HTML files such as PDFs and images. URL parsing uses the browser's native URL constructor, so scheme, host, port, percent-encoding, and IDN/punycode all behave the same way Googlebot expects. Normalization is opt-in and applied in a fixed order: force https or http, strip the www subdomain (or force it), always lowercase the hostname per RFC 3986, force or remove a trailing slash, lowercase the pathname (because most servers treat /Page and /page as different URLs), strip the URL fragment (#anchors are never sent to servers and never belong in a canonical), and either drop common tracking parameters (utm_*, gclid, fbclid, msclkid, mc_cid, mc_eid, _ga, igshid, yclid, twclid, ref, ref_src, _hsenc, _hsmi, hsCtaTracking, and more) or drop every query parameter or preserve the query untouched. A custom-canonical mode lets you point the canonical at a different URL than the input for cross-domain or cross-path consolidation, with a clear warning callout because that pattern transfers signals to another property and should be deliberate. Live notices flag the issues that bite real sites: tracking parameters left in the canonical, http URLs that should be https, mixed-case paths, missing or stray trailing slashes, and cross-domain canonicals. Useful for SEO teams setting up self-referencing canonicals across a site, marketers cleaning up campaign landing pages full of utm parameters, ecommerce stores that need every product variant URL to canonicalize to the master product page, agencies auditing client implementations, and developers wiring rel=canonical into a CMS template. Self-referencing canonicals (where the canonical equals the page URL) are the right default for the vast majority of pages and are exactly what the tool produces when no custom canonical is set. All URL parsing and normalization runs locally in your browser, so the URLs you paste, including private staging and pre-launch URLs, never leave your device.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsSEO Tools