Canonical Tag Generator

Enter a page URL and get the canonical form of it, as a link tag and an HTTP header.

How to use

What it checks and how it works

Google's guidance for rel="canonical" is to use an absolute URL, not a relative one; not to specify a URL fragment as canonical; to include a self-referential canonical on the canonical page itself; and to keep the canonical consistent with your sitemap. The tool builds that URL from the rules you choose and lists each change it made, so you can see why two URLs collapse to one. A canonical is a strong hint, not a command: Google may choose a different canonical. The default parameter list holds common tracking parameters (utm_*, gclid, fbclid and others). Edit it, because a parameter that changes the content, such as a page number, should not be removed.

Should every page have a canonical tag?

Google recommends a self-referential canonical on the canonical page itself. It helps when the same page can be reached through different URLs, such as with tracking parameters.

Can I point the canonical to a URL with #?

No. Google states not to specify a URL fragment as canonical, and the tool removes fragments by default.

Is the canonical a command?

No. It is a signal that Google weighs with others, such as redirects and your sitemap. Keep those signals consistent with it.

Sources

Related tools

Privacy

Runs in your browser; nothing is uploaded. The interactive tool needs JavaScript.