Canonical Tag Generator

Point search engines at the version of a page that counts.

SEO Tools Free, no sign-up Runs in your browser

Canonical Tag Generator tool

Must be absolute, including the protocol and domain.

Language alternates (hreflang)

Optional. Each language version needs these same annotations pointing at every other version, or search engines ignore them.

About the Canonical Tag Generator

A canonical tag tells search engines which URL is the real address of a page when several addresses show the same content. That happens constantly without anyone intending it: tracking parameters, print versions, a page reachable with and without a trailing slash, the same product listed under two categories.

The tool builds the link tag and checks it against the mistakes that quietly stop it working. A canonical must be an absolute URL, so a relative path is a problem. It should point at a page that returns 200, not a redirect. Every page should carry one canonical, and only one; two conflicting tags are ignored entirely. And the most common error of all is a template that writes the same canonical onto every page, which tells search engines your whole site is one page.

An optional hreflang section generates the alternate links for multi-language sites, including the x-default entry, with a reminder that hreflang annotations have to be reciprocal to be trusted.

How to use the Canonical Tag Generator

  1. Enter the canonical URLThe absolute address of the version you want indexed.
  2. Check the warningsRelative URLs, missing protocols and tracking parameters are flagged.
  3. Add hreflang alternates if neededOne row per language and region, plus x-default.
  4. Copy the tagsPaste them into the head of the page.

Features

  • Generates the canonical link tag
  • Warns about relative URLs and missing protocols
  • Flags tracking parameters left in the canonical
  • Self-referencing canonical helper
  • Optional hreflang alternates with x-default
  • Explains the reciprocity requirement for hreflang
  • Copy the complete tag block

Who uses this tool

The canonical tag generator is used by writers, developers, students, marketers and anyone else who needs the job done once without installing software. Common cases include:

  • Consolidating duplicate URLs onto one address
  • Pointing parameterised URLs at the clean version
  • Setting self-referencing canonicals across a site
  • Adding language alternates for an international site
  • Checking that a canonical is written correctly

Frequently asked questions

Should every page have a canonical tag?

A self-referencing canonical on every page is a common and sensible default. It costs nothing and protects you when a parameterised version of a URL appears, which happens whether or not you planned for it.

Must the canonical URL be absolute?

Yes. Relative canonicals are resolved inconsistently and are a frequent cause of tags that appear present but do nothing. Always write the full address including the protocol and domain.

Is a canonical tag an instruction or a hint?

A hint. Search engines usually follow it, but they can choose a different canonical if the signals disagree, for example if your canonical points at a page with completely different content.

What is the most common canonical mistake?

A template that writes the same canonical, usually the home page, onto every page of the site. It is easy to do by accident and it tells search engines that the entire site is one page.

Can a canonical point to another domain?

Yes, which is how syndicated content points back to the original publisher. Both parties need to want this, since the canonical passes the indexing signal to the other site.

Does hreflang replace the canonical?

No, they work together. Each language version has its own self-referencing canonical, and the hreflang annotations tell search engines the versions are alternates of one another. Those annotations must be reciprocal on every page or they are ignored.

If the canonical tag generator is not quite what you need, these other free tools solve closely related problems.

SERP Preview Tool

Preview the title, URL and description as a search result, on desktop and mobile.

SEO Tools Use tool

301 Redirect Generator

Generate redirect rules for Apache, nginx, Netlify, Vercel and Cloudflare from a mapping.

SEO Tools Use tool

Robots.txt Generator

Generate robots.txt with per-crawler rules, sitemap lines and common presets.

SEO Tools Use tool

XML Sitemap Generator

Build sitemap.xml from your URL list, with lastmod, changefreq and priority.

SEO Tools Use tool

Open Graph Generator

Generate Open Graph meta tags with a live preview of the shared link card.

SEO Tools Use tool