SERP Preview Tool
Preview the title, URL and description as a search result, on desktop and mobile.
Point search engines at the version of a page that counts.
Must be absolute, including the protocol and domain.
Optional. Each language version needs these same annotations pointing at every other version, or search engines ignore them.
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.
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:
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.
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.
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.
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.
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.
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.
Preview the title, URL and description as a search result, on desktop and mobile.
Generate redirect rules for Apache, nginx, Netlify, Vercel and Cloudflare from a mapping.
Generate robots.txt with per-crawler rules, sitemap lines and common presets.
Build sitemap.xml from your URL list, with lastmod, changefreq and priority.
Generate Open Graph meta tags with a live preview of the shared link card.