PageRipple
Free tool · Indexing

Canonical tag checker for HTML tags and HTTP headers

Enter a URL to see which address it declares as canonical, whether that comes from the HTML or the Link header, and whether the target URL actually loads, redirects or blocks indexing.

  • Live check, no cache
  • No sign-up
  • Verdict plus the fix
Canonical Tag Checker
Try:

What this tool checks

  • rel=canonical in HTML and in the HTTP Link header
  • Self-referencing, relative and cross-domain canonical detection
  • Multiple and conflicting canonical warnings
  • Canonical target status, redirect and noindex check
  • og:url consistency check

Both places a canonical can live, and the page it points to

A canonical can be declared in two places: a <link rel="canonical"> element in the HTML, or a Link header in the HTTP response. The checker collects every declaration from both and lists them in a table with the value as written and the absolute URL it resolves to.

Each declaration is marked when it:

  • uses a relative path such as /pricing instead of a full URL;
  • sits inside <body>, where Google does not read it;
  • has an empty href.

Then the checker compares the canonical with the page you entered. If they match, the page is self-referencing and the check stops there. If they differ, it requests the canonical URL too and reports its HTTP status, any redirects on the way, and whether that page carries a noindex tag or header.

If the URL you entered redirects, the canonical is read from the final page. The result says so, because a canonical on a redirected URL is never seen.

Four outcomes and what to do with each

Self-referencing canonical

The page names itself. This is what you want on any page you expect to rank. Nothing to change, unless the URL in the tag uses http while the site runs on https, which the checker flags separately.

Points to a different URL

Correct for parameter URLs (?sort=price, ?utm_source=newsletter), print versions and syndicated copies. A problem when a unique page points at the home page or a category, which often happens when a template hardcodes one canonical for every page. The fix is to output the page's own URL in the template.

No canonical found

Google will choose one for you, using signals such as internal links, redirects and sitemap entries. Pages that are only reachable at one clean URL survive this fine. Online shops and sites with filters usually do not, since every filter combination becomes another URL.

Conflict or broken target

Two tags with different URLs, a header that disagrees with the HTML, or a canonical that returns 404, redirects or is noindex. Google tends to drop the hint in these cases and decide on its own. Fix these first.

Correct markup for the common setups

Standard page

One tag in the head, absolute URL, same protocol and host the site uses:

<link rel="canonical" href="https://www.example.com/shoes/trail-runner-2" />

PDF or other file

Files have no head, so send the canonical as a response header. In nginx:

location = /files/size-guide.pdf {
  add_header Link '<https://www.example.com/size-guide>; rel="canonical"';
}

Two canonicals after installing an SEO plugin

The theme prints one tag and the plugin prints another. Keep the plugin's and remove the theme's, so the canonical is controlled from one place. Run the check again to confirm only one row is left in the table.

Canonical points at a redirect

Typical after an http to https or www migration where the template still builds URLs the old way. Update the base URL setting in your CMS so canonicals use the final address directly. Our redirect chain checker shows what that final address is.

Canonical on a noindex page

A page that says "index that URL instead" while the target says "do not index me" sends opposite instructions. Decide which URL should rank, remove noindex from it, and check it with the noindex checker.

Rules that keep canonicals working

  • One canonical per page, declared in one place. If you use the Link header, leave the HTML tag out or make them identical.
  • Absolute URLs with protocol and host. Relative paths work for Google, but they break when a staging copy or a mirror serves the same HTML.
  • The target returns 200, without redirects, and is indexable.
  • Canonical URLs match the URLs in your XML sitemap and your internal links. Mixed signals make Google more likely to pick its own canonical.
  • Keep og:url equal to the canonical, so shares and search point to the same address. The checker notes when they differ.

How the checker decides two URLs are the same

Protocol, host, path and query string are compared. Letter case in the host is ignored, since Example.com and example.com are one host. Everything else counts: /guide and /guide/ are two URLs, and so are the http:// and https:// versions of one path. If the verdict says "Points elsewhere" for a URL that looks identical, compare the two addresses character by character in the table. A trailing slash or a leftover parameter is the usual cause.

To compare what you declare with what Google picked, open URL Inspection in Search Console and look at "User-declared canonical" and "Google-selected canonical". When those differ on an important page, this checker usually shows the reason.

Frequently asked questions

Something else? Ask us directly.

It is a line in the page's <head>, <link rel="canonical" href="...">, that names the preferred URL when the same content is reachable at several addresses. Search engines use it to decide which address to index and where to credit links.

Catch the deploy that points every canonical at staging.

PageRipple reads the canonical of your key pages every morning and sends you the old and new URL when it changes.