Canonical URL Generator

Generate a clean rel=canonical link tag.

Canonical tag
<link rel="canonical" href="https://example.com/blog/my-post" />

Place this tag in the <head> of the page. It tells search engines which URL is the canonical (preferred) version, consolidating ranking signals and preventing duplicate-content issues from tracking parameters, http/https, or trailing-slash variants.

Free canonical URL generator. Enter a page URL to produce a rel=canonical link tag, with options to strip tracking parameters, force https and normalize trailing slashes. Runs in your browser.

What a canonical tag does

A canonical tag (<link rel="canonical" href="...">) tells search engines which URL is the preferred version of a page when the same or very similar content is reachable at multiple URLs. It consolidates ranking signals onto one URL instead of splitting them across duplicates.

Duplicates are common: ?utm_ tracking parameters, http vs https, trailing slashes, www vs non-www, print versions, and faceted-search combinations all create alternate URLs for the same content.

How to use it correctly

  • Place one canonical tag in the <head>, pointing to an absolute URL: https://example.com/page, not /page.
  • Use a self-referencing canonical on your primary pages — a page can (and should) point to itself.
  • Point all variants (parameters, sort orders) to the clean canonical version.
  • Keep the canonical URL consistent with your sitemap, internal links and redirects.

Common mistakes

  • Relative or protocol-relative hrefs — always use the full https:// URL.
  • Multiple canonical tags on one page (Google ignores all of them).
  • Canonicalizing to a noindex, redirected, or 404 URL.
  • Pointing every page to the homepage — this can deindex your content.
  • Treating canonical as a hard directive: it's a hint. If signals conflict, Google may choose a different canonical.

Example

The URLs example.com/shoes?color=red&utm_source=fb and example.com/shoes show the same product list. On both, set:

<link rel="canonical" href="https://example.com/shoes">

Ranking signals then consolidate onto the clean /shoes URL.

How to use the Canonical URL Generator

  1. 01Paste the page URL.
  2. 02Choose whether to strip query parameters and force https.
  3. 03Set trailing-slash handling if needed.
  4. 04Copy the generated canonical tag into your <head>.

Frequently asked questions

What is a canonical URL for?

It tells search engines which version of a page is the preferred one, consolidating ranking signals and preventing duplicate-content problems from parameters, http/https or slash variants.

Should a page canonicalize to itself?

Yes — a self-referencing canonical is normal and recommended. It removes ambiguity when the same page is reachable via multiple URLs.