AIO Copilot

Canonical Tag Checker

Paste a page's HTML to check its canonical tag. To see the canonical Google chose, use URL Inspection in Search Console.

How to use the canonical tag checker

  1. Copy the page source

    View source on the page and copy it. The head alone is enough.

  2. Run the check

    Paste it and select Check Canonical. It runs in your browser.

  3. Read each result

    Fail, warning or info, each with the reason.

  4. Confirm with Google

    URL Inspection on the live URL shows the canonical Google chose.

What does a canonical tag do?

It tells search engines which URL to index when the same page is reachable at several addresses. Google treats it as "a hint, not a rule" and weighs it against redirects and sitemaps. More in our glossary entry on canonical URLs.

<link rel="canonical" href="https://example.com/page">

The rules most canonical bugs break

  • In the head only. One in the body is disregarded.
  • An absolute URL. Google warns relative paths "can cause problems".
  • One per page. Two or more and Google ignores them all.
  • The same URL in the tag, the sitemap and your internal links.
  • Set in the HTML, not changed by JavaScript after load.
  • Pointing at a final URL, not one that redirects.

What this checker cannot see

  • A canonical sent as an HTTP header
  • A canonical rewritten by JavaScript
  • Whether the target URL redirects, errors or is noindex

For those, run URL Inspection on the live URL, and work through the indexing section of our technical SEO checklist.

Canonical tag questions.

Does every page need a canonical tag?

No. Search Console's URL Inspection help says a declared canonical of "None" is fine when a page is not a duplicate. A self-referencing canonical, one that names the page's own URL, is still a cheap guard against copies created later by tracking or sorting parameters.

What happens if a page has two canonical tags?

Google said in its 2013 post on rel=canonical mistakes that when more than one is specified, "all rel=canonical links will be ignored". RFC 6596, the standard behind the tag, also says to specify one. Duplicates usually come from two systems each printing a tag, such as a theme and an SEO plugin, so remove one at the source.

Why does one page end up at several URLs?

Because servers answer to many spellings of one address: with and without www, HTTP and HTTPS, tracking or sorting parameters, letter case and a trailing slash. Google treats URLs as case sensitive and /page and /page/ as different URLs. None of it is a penalty: Google says some duplicate content "is normal and it's not a violation" of its spam policies. The cost is that Google, not you, picks the version that ranks.

How do I set a canonical URL correctly?

Google's guide to consolidating duplicate URLs gives three methods. A redirect is a strong signal, for a URL that should go away. A rel="canonical" tag is also strong and keeps both URLs working, for parameters and filtered views. Listing only the preferred URL in your sitemap is a weak signal. For PDFs and other files with no head, the canonical can be sent as an HTTP Link header.

Is a canonical tag the same as a 301 redirect?

No. Google rates both as strong signals, but a 301 sends visitors and crawlers to the new URL, while a canonical leaves both URLs working and only asks search engines to index one. Use a redirect when the old URL should stop being used, and a canonical when both must keep working.

Why does Google ignore some canonical tags?

Because the tag is "a hint, not a rule". Google overrides it when other signals disagree: a canonical that points at a URL which redirects, a target whose own canonical names a third URL, or page 2 of a series pointed at page 1, which Google calls "not correct" because the pages are not duplicates. Its troubleshooting guide lists what to check.

How long does Google take to accept a canonical change?

There is no fixed time. Google's troubleshooting guide says it might hold pages in a duplicate cluster for up to two weeks before re-evaluating them. URL Inspection shows the Google-selected canonical as it changes.

Does the canonical URL have to match og:url?

Not for Google: its canonicalization documentation does not list og:url as a signal. The Open Graph protocol defines og:url as the canonical URL for social platforms, so a mismatch means shared links point at a different address from search results, not that Google is confused.

Why does Search Console say Google chose a different canonical than mine?

The Page indexing report uses "Duplicate, Google chose different canonical than user" when your page declares itself canonical but Google prefers another URL. It happens when a redirect, a sitemap entry, internal links or an HTTPS version point elsewhere. Make every signal name the same URL, then wait for a recrawl.

Consolidated duplicate URLs? Check whether it helped.

Compare the pages you changed with pages you did not touch, from two Search Console exports.

Check if it worked

What to do next.