Free Canonical Tag Generator
Create a clean rel="canonical" link tag for any page. Canonical tags tell search engines which URL is the preferred version of a page, consolidating ranking signals and preventing duplicate-content issues.
This tag belongs with the Meta Tag Generator output and the sitemap from the Sitemap Generator. For multilingual sites, the Hreflang Tag Generator provides the complementary annotations.
How to use the Canonical Tag
- 1 Enter the URL of the page.
- 2 Choose whether the canonical should be self-referencing or point at a preferred variant.
- 3 Check whether trailing slashes and the protocol match your preferred form exactly.
- 4 Copy the tag into the page head.
The duplicate URL problem
The same content is reachable by more than one URL on almost every site, and the reasons are unglamorous: a trailing slash, a capital letter, a session parameter, a link that goes through a redirect, a print view. Each is a separate URL to a crawler, and without guidance the signals a page earns are split across all of them. The canonical tag is how you tell the engine they are one page.
The alternative — making every URL resolve to exactly one form and redirecting the rest — is worth doing as well, but it cannot catch everything. Parameters added by third parties, in particular, are outside your control. The canonical tag works on cases a redirect cannot reach, which is why the two are complementary rather than alternatives.
Getting it right
- Use absolute URLs, including the protocol and host; relative paths are resolved inconsistently.
- Match your preferred form exactly, including whether the trailing slash is present.
- Point at the version returned with a 200, never at a redirect or a page that returns an error.
- Keep it consistent with what the sitemap lists and what the internal links use.
When to use a canonical tag
Use a canonical tag when the same content is reachable at multiple URLs — for example with tracking parameters, www vs non-www, or paginated archives. Every page should normally have exactly one canonical URL, and it should point to itself if there is no duplicate.
Frequently asked questions
What does a canonical tag do?
It tells a search engine which URL among several similar ones is the one to index and rank. Duplicates arise constantly — with and without a trailing slash, with and without the www prefix, with tracking parameters, with different capitalisation. Rather than eliminating the variants, which is often impossible, the tag declares which one represents the content.
Should every page have a self-referencing canonical?
Yes, and it is the safer default. It states explicitly which URL is authoritative, which resolves ambiguity that would otherwise be left to the search engine's judgement. Pages that omit it are not penalised, but they give up control over a decision that affects how their signals are accumulated.
Can a canonical point at a different domain?
It can, and it is used legitimately when the same content is published on several sites and one is designated the original. It is also used across protocols to consolidate encrypted and unencrypted versions. What matters is that the target is genuinely the same content, since pointing at an unrelated page is treated as a mistake at best.
Related SEO & Webmaster Tools
You might also need
Tools from other categories that people pair with the Canonical Tag: