Canonical Tag Generator

Generate <link rel="canonical"> tags to tell search engines your preferred page URL.

Enter the preferred (master) URL for this page — use the full HTTPS address.

📐 How to Use

  1. Enter the canonical URL (the preferred version of your page).
  2. Click Generate to produce the <link> tag.
  3. Copy it and paste it into the <head> of every duplicate version of the page.

🎯 When to Use This

  • Pointing a syndicated copy of an article back at the original, so the version you published first is the one treated as the source.
  • Consolidating a product page reachable under two category paths into one preferred address before the duplicates are indexed separately.
  • Writing self-referencing canonicals for a static site that has no plugin to generate them, one page at a time.
  • Giving a marketing team the exact tag for campaign pages that collect UTM parameters, so the clean URL stays the indexed one.

❓ Frequently Asked Questions

QWhat is a canonical tag?
A canonical tag tells search engines which version of a URL is the "master" copy when the same content exists at multiple URLs. It consolidates link equity and prevents duplicate content penalties.
QShould the canonical URL include https?
Yes — always use the full HTTPS URL including the protocol, domain, and path exactly as you want it indexed.
QCan a page be canonical to itself?
Yes — self-referencing canonicals are best practice even when there's no duplicate, as they explicitly signal the preferred URL to search engines.

ℹ️ About This Tool

A canonical link element names the URL you would prefer search engines to treat as the address of a piece of content when several addresses serve it: with and without a trailing slash, with tracking parameters attached, or reachable through more than one category path. Google describes rel=canonical as a strong signal rather than a directive. It is weighed alongside internal links, redirects and the sitemap when a canonical is chosen, and it can be overruled.

This tool takes one URL and writes the matching link tag as you type, with no generate step in between. The output is shown as text and copied with one click. Nothing is validated and nothing is fetched: the URL you type is the URL that appears between the quotation marks.

⚠️ Notes & Limits

  • The URL is not validated or normalized. A relative path, a typo in the domain or a trailing space is written into the tag exactly as entered.
  • One tag is produced at a time. For a site-wide rollout, take the pattern from here and have your template build the rest from each page's own address.
  • A canonical that points at a page which 404s, redirects elsewhere or declares a different canonical of its own will be ignored, and the tool cannot see that.
  • Canonicals and hreflang interact, since each language version should be canonical to itself. Use the Hreflang Generator for the alternate links, not this tool.