Canonical Tag Generator

Generate a rel=canonical link tag to prevent duplicate-content issues.

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

Place this in the <head>to tell search engines which URL is the canonical (preferred) version of a page β€” preventing duplicate-content issues from tracking parameters, www/non-www or trailing-slash variants. Use the page's own absolute URL for a self-referencing canonical. Runs in your browser.

Enter a page's absolute URL to get a ready-to-paste rel=canonical link tag. The canonical tag tells search engines which URL is the preferred version of a page, consolidating signals and avoiding duplicate-content problems caused by tracking parameters, www/non-www or trailing-slash variants. Runs in your browser.

How to use the Canonical Tag Generator

  1. Enter the page's full absolute URL.
  2. Copy the generated canonical tag.
  3. Paste it into that page's <head>.

Frequently asked questions

What is a canonical tag for?

It marks the preferred (canonical) URL of a page so search engines consolidate ranking signals there instead of splitting them across duplicate or near-duplicate URLs.

Should a page point its canonical at itself?

Usually yes. Most pages should have a self-referencing canonical with their own absolute URL; only point elsewhere when the page is genuinely a duplicate of another.