OnlineTextLab
Esc

Canonical URL Checker

Follows a URL to the page it claims as the main version, then checks that page really can be the main version.

Try the address with tracking parameters or http to see where it settles.

Runs on your device. Your files and text are not uploaded.

About Canonical URL Checker

The same page often lives at several addresses: with tracking parameters, with and without www, with a trailing slash. A canonical tag tells Google which one you regard as the main version. It is easy to get wrong in ways that look fine in the source, such as pointing at a page that now redirects.

This tool traces the path from the address you enter, through any redirects, to the page served and on to the canonical it declares. Then it visits that canonical to check it can do the job.

You get a lead finding, a small map of how the URLs relate, every canonical signal found, and fixes in order of seriousness.

How it works

Three places are read: link rel="canonical" in the head, the same element anywhere in the body, and rel="canonical" in the HTTP Link header. Google says it only accepts the element in the head, so one in the body is reported as ignored. A stray div in the head makes the browser close it early, and everything after it lands in the body, so this check catches that accident too.

All the head and header values are resolved to full URLs and compared. Two spellings of one address are not a conflict, while two different addresses are. The served address is then compared with the canonical, and the tool names the difference: protocol, www, trailing slash, letter case, query string, path or domain.

When the canonical is a different page, it is fetched once. The tool reports its status code, whether it redirects, whether it carries a noindex, and whether it names yet another canonical. Google describes rel="canonical" as a strong signal rather than a command, and weighs it alongside redirects and sitemaps, so even a clean result here is your request and not Google's decision.

How to use Canonical URL Checker

  1. Type the address into URL to trace, ideally the version with parameters or http that you are curious about, and press Trace canonical.
  2. Press Try a page with two canonicals to see a page with deliberate conflicts.
  3. For a draft, choose Paste HTML, paste the source, and fill in Page address (optional) if you want the canonical compared with that address.
  4. Read How the URLs relate, then work through What to fix.
  5. Check Every canonical signal found to see which tags and headers were read, and use Copy tag if the page is correct.

The built-in example, shortened, checked as /desks/walnut?ref=email

Input
<head>
  <link rel="canonical" href="/desks/walnut">
  <link rel="canonical" href="https://example.com/desks/walnut-desk">
</head>
<body>
  <h1>Walnut desk</h1>
  <link rel="canonical" href="https://example.com/old">
</body>
Output
A canonical link sits outside the head

Page checked   https://example.com/desks/walnut?ref=email
               Declares another URL as the main version
Canonical      https://example.com/desks/walnut

Fix first      This page declares different canonicals
Worth fixing   The canonical uses a relative URL
Optional       The canonical is a different URL from the page served

Three signals name three addresses. Google warns that conflicting tags can give unexpected results. The query string difference is only an optional note, since that is exactly what a canonical is for.

When it helps

  • Investigating a page that Search Console reports as a duplicate, with Google choosing a different canonical than you declared.
  • Checking that URLs with tracking or filter parameters point back to the clean address.
  • Testing a site after a migration, when canonicals often still name the old domain or an address that now redirects.

Tips for a better result

  • Give every indexable page a canonical that names itself, in case something adds parameters to its address later.
  • Write absolute URLs. Google supports relative ones but recommends absolute, and a relative tag copied to a staging site claims the staging address as the main version.
  • Do not use noindex to choose between duplicates. Google advises against it, because it blocks the page from Search completely.

Good to know

  • It cannot tell you which URL Google actually chose. Search Console's URL Inspection tool shows both your declared canonical and Google's choice.
  • It reads the HTML as served, so a canonical set or changed by JavaScript is not seen. Google says JavaScript should not change the canonical to something else.
  • It follows the canonical once. If the target names a further canonical it is flagged, but that chain is not traced to its end.
  • Pasted HTML has no address, so a relative canonical cannot be resolved and nothing can be compared until you enter the page address. No live checks run on pasted HTML.

Questions people ask

Does Google have to obey my canonical tag?

No. Google calls it a strong signal, and weighs it with redirects, sitemaps and other evidence. It may pick another URL, particularly when the two pages are not close to identical.

Can a canonical point to another domain?

Yes, for content you syndicate to or from another site. Elsewhere it usually means a leftover domain from a migration, so the tool raises it as a warning.

Why does it say my canonical is in the body when I put it in the head?

Something earlier ended the head. Browsers close it as soon as they meet an element that does not belong there, such as a div, img or iframe. Look for one above the tag, often added by a script or a tag manager snippet.

What to use next

Learn more

Last reviewed . Read our editorial policy.