Paste any URL and get the correct <link rel="canonical"> tag ready to paste into your HTML. Normalize HTTPS, www, trailing slashes, and query strings in one click.
A canonical tag is an HTML element that tells search engines which version of a page is the definitive one. It goes inside the <head> section as <link rel="canonical" href="...">. Search engines like Google use it to consolidate ranking signals when the same — or very similar — content appears at multiple URLs. Without a canonical tag, search engines have to guess which URL to index, which can split your link equity across duplicates and reduce rankings for all of them.
The most common situation requiring a canonical tag is a page accessible at multiple URLs: http:// and https:// versions, with and without www, with and without a trailing slash, or with UTM and session query parameters appended. Even when only one version is intended to be crawled, search engines may still discover and index multiple variants. A self-referencing canonical tag — where the canonical URL matches the page's own URL — signals your preferred version clearly and is recommended by Google for every page on your site.
Canonical tags also apply across domains. If you republish content from your own site on a third-party platform, you can add a canonical tag on the republished version pointing back to your original URL. This prevents the syndicated version from outranking the original and tells Google where the content first appeared. The canonical tag is advisory, not a directive — Google may choose to ignore it if it believes a different URL better represents the content — but correctly implemented canonicals are respected in the vast majority of cases.
<head> section of your page, before the closing </head> tag. In WordPress, this is typically handled via a plugin like Yoast SEO or Rank Math — use the canonical URL field there instead.