Developer tools

Canonical URL Tag Generator

Paste a URL, clean it up with a few one-click options, and copy a correct canonical link tag for your page's head.

How to use the canonical URL tag generator

  1. Paste your page URLInclude the full address, query parameters and all.
  2. Choose your cleanup optionsStrip tracking parameters, force https, or force a trailing slash.
  3. Copy the tagPaste the canonical link tag into your page's head.

Why canonical tags matter

When the same content is reachable through multiple URLs, like with or without tracking parameters, a canonical tag tells search engines which single version should be indexed and ranked.

Query parameters

Tracking codes and sort options often don't change the actual content, so stripping them avoids duplicate-content signals.

HTTPS consistency

Forcing https keeps your canonical signal pointing at the secure version of your site.

Trailing slash

Treating /page and /page/ as the same page requires picking one and canonicalizing consistently.

Self-referencing

Every page, including the canonical one itself, should include a canonical tag pointing to its own preferred URL.

Canonical URL Tag Generator FAQ

What does a canonical tag do?

It tells search engines which URL is the preferred, authoritative version of a page when the same or similar content is reachable at more than one address.

When should I strip query parameters?

Strip them when parameters like tracking codes or sort options don't change the core content, so all variants point to one clean canonical URL.

Should the canonical URL use https?

Yes, almost always. Forcing https keeps your canonical signal consistent even if the page is also reachable over an insecure connection.

Does the trailing slash matter?

Yes, /page and /page/ are technically different URLs to a crawler, so pick one style consistently and canonicalize to it.

Where does the canonical tag go?

Inside the head section of every page, including on the canonical page itself, pointing back to its own preferred URL.

Try other free tools

More handy tools from My Panda Toolbox.