Skip to main content
Free tool

Check a page’s canonical URL.

Enter a URL to read its canonical declaration and check the address it points to.

  • Free
  • No account required

Our server fetches the URL, so it appears in our logs. Private and local hosts are rejected.

How canonicals work

What is a canonical URL?

A canonical URL represents a group of duplicate or very similar pages. A rel="canonical" link lets you suggest the version you prefer; Google can still choose another.

It groups duplicate URLs

Campaign parameters, filters or URL variants can lead to the same or very similar content. A canonical names the version you prefer.

It does not redirect visitors

Unlike a 301 redirect, a canonical does not change the URL in the browser. It is a search-engine signal, not a user-facing action.

Search engines make the final choice

A canonical is one signal. Align redirects, internal links, your sitemap and the similarity of the content with it.

Choose the right signal

Canonical, 301 redirect or noindex?

rel="canonical"

When to use it

Keep the content available at multiple URLs, but signal which version you prefer.

What it does

A strong signal for the preferred URL. It does not redirect visitors.

301 redirect

When to use it

An old URL has been permanently replaced and should no longer serve as a separate page.

What it does

Moves visitors and crawlers to the new URL; a stronger signal than a canonical link.

noindex

When to use it

A page should not appear in search results.

What it does

Asks search engines to keep that page out of the index; it does not name a canonical URL for a duplicate.

Implementation

How to add a canonical tag to an HTML page

Put one absolute URL in the page’s <head>. For non-HTML files such as PDFs, you can send the canonical in an HTTP Link response header.

HTML page, in <head>
<link rel="canonical" href="https://example.com/guides/">
PDF, HTTP response header
Link: <https://example.com/guides/>; rel="canonical"

Check which URL Google selected too. This tool reads the HTML sent by the server and does not run JavaScript. It cannot tell you which URL Google actually selected. Check that in URL Inspection in Search Console.

Step by step

How to check the canonical tag on a page

You check the canonical tag on a URL that has duplicates and on the URL the tag points to. Five steps show whether search engines get a consistent signal.

  1. Pick the URLs that have duplicates

    Start with pages that exist in several variants: with campaign parameters, with filters, with and without a trailing slash, on http and https. Each variant is a separate URL to check.

  2. Paste the URL and read the declaration

    The tool above fetches the page, reads rel="canonical" from the <head> and from the HTTP Link header, then checks the canonical URL itself. You see whether the canonical points to the same page or to another one.

  3. Check how the canonical URL responds

    The canonical URL should return 200, with no redirect, no noindex and no different canonical of its own. If the result shows a redirect, put the final URL in the tag.

  4. Align the other signals

    Use the same preferred URL in internal links, in the sitemap and in redirects. Google treats redirects and rel="canonical" as strong signals and the sitemap as a weak one, so a mismatch between them weakens your declaration.

  5. Confirm the choice in Search Console

    URL Inspection in Search Console shows which URL Google finally chose as canonical. Check it a few days after you ship the change.

Examples

Canonical tag fixes with examples

Three errors the tool reports most often, with the corrected markup.

Canonical pointing to a redirect
Before
<!-- http://example.com/pricing redirects to https -->
<link rel="canonical" href="http://example.com/pricing">
After
<link rel="canonical" href="https://example.com/pricing/">

Use the final URL, the one that returns 200. For equivalent pages Google prefers the https version.

Relative path
Before
<link rel="canonical" href="/pricing/">
After
<link rel="canonical" href="https://example.com/pricing/">

Google recommends absolute URLs. A relative path on a staging copy points to the staging host.

Campaign parameters copied into the tag
Before
<link rel="canonical" href="https://example.com/pricing/?utm_source=newsletter">
After
<link rel="canonical" href="https://example.com/pricing/">

A template that inserts the current URL with its query string creates a separate canonical for every campaign.

Common mistakes

Common canonical tag mistakes

  • Two different declarations on one page

    An SEO plugin and the theme each add a tag, or the HTTP Link header points somewhere other than the HTML. Google asks you to give one page one canonical URL across all methods.

  • Tag outside the head

    Google accepts rel="canonical" only from the <head>. A head that closes too early, or a script that injects the element into the body, makes the tag stop working.

  • Noindex instead of a canonical on duplicates

    Google advises against noindex as a way to choose the canonical URL within one site. Noindex drops the page from the index, but it says nothing about which version you prefer.

  • Blocking duplicates in robots.txt

    A crawler cannot fetch a blocked page, so it never sees its canonical either. Google lists robots.txt among the methods to avoid for canonicalization.

  • Old URLs in the canonical after a migration

    After a URL structure change, templates often keep the old URL in the tag. Google recommends that once redirects are live, canonicals on the new site use the new URLs.

Numbers and sources

Canonical in Google documentation and in data on real sites

ValueWhat it meansSource
<head>Google accepts a rel="canonical" link element only from this section of the HTML.Google Search Central, duplicate URLs
2 strong signalsGoogle describes redirects and rel="canonical" as strong canonicalization signals. A sitemap is a weak one.Google Search Central, duplicate URLs
httpsFor equivalent pages, Google prefers the https version over http as canonical.Google Search Central, duplicate URLs
Same languageOn pages with hreflang, the canonical should point to a page in the same language.Google Search Central, duplicate URLs
68%Share of desktop pages with a canonical tag in the Web Almanac 2025. On mobile it was 67%.HTTP Archive, Web Almanac 2025, SEO

Sources checked: