hreflang Checker

Test hreflang on a page or across an XML sitemap. The checker validates every language and region code, fetches the alternates, and confirms each one links back. It is free and one of my free SEO tools.

Fetches the page, reads hreflang from the HTML and the Link header, then fetches up to 25 alternates to check return links, status codes, canonicals and noindex.

How Do You Use the hreflang Checker?

  1. Step 1: Choose Page to test hreflang in the HTML and the HTTP Link header, or XML sitemap to test sitemap annotations.
  2. Step 2: Enter the URL of the page or the sitemap. Sitemap indexes work too.
  3. Step 3: Pick a user agent if the site treats crawlers differently. Googlebot Smartphone is the default.
  4. Step 4: Hit Test. Errors come first, then warnings, then the full annotation table and a corrected tag set you can copy.

What Does the hreflang Checker Validate?

  • Codes. The language must be ISO 639-1 and the optional region ISO 3166-1 Alpha 2. It catches en-UK, en_GB, gb-en, region-only codes and es-419, which Google does not support.
  • Return links. Every alternate must link back to the page. Google ignores annotations that are not confirmed in both directions.
  • Self-references. Each page must list itself in its own set.
  • x-default. Flags a missing fallback for users you do not target.
  • Alternate health. Status codes, redirects, noindex and canonicals that point somewhere else, because each of those breaks the set.
  • Consistency. Duplicate codes pointing to different URLs, relative URLs and mismatched language labels.

What Are the Most Common hreflang Mistakes?

In my experience, it is rarely the syntax. It is the URLs. Hreflang pointing at redirects, at non-canonical versions, or at pages that are noindexed in one market. The tags look perfect and do nothing.

The next biggest is missing return links. One team launches a new market and adds hreflang to its own pages but never updates the existing ones. Every link to the new market goes unconfirmed.

Then there is en-UK. The country code for the United Kingdom is GB, so en-UK is invalid and Google ignores it. I still find it on large sites.

HTML, HTTP Headers or XML Sitemap?

All three work and Google treats them equally. Pick one per page type and stick with it.

  • HTML link tags are the easiest to inspect but add weight to every page when you run many markets.
  • HTTP Link headers are the only option for PDFs and other non-HTML files.
  • XML sitemaps scale best for large international sites and keep the HTML clean, but they are easier to let drift out of date.

What Are the Limits?

  • Page mode fetches up to 25 alternates. Larger sets are listed but not all fetched.
  • Sitemap mode reads up to 1,000 URLs. For a sitemap index, it reads the first three child sitemaps. Return links are checked within that sample.
  • Requests come from my server. Sites that block bots or redirect by IP location may respond differently to Googlebot.
  • Raw HTML only. hreflang injected by JavaScript is not read. Google can pick it up after rendering, but server-side is safer.

Frequently Asked Questions

What is hreflang?

An annotation that tells search engines which language and region each version of a page targets. It helps Google show the right version to the right user, for example en-ie in Ireland and en-gb in the UK.

Why is en-UK invalid?

Region codes follow ISO 3166-1 Alpha 2, and the code for the United Kingdom is GB. Use en-gb. Google ignores en-uk.

Do hreflang tags need return links?

Yes. If page A lists page B as an alternate, page B must list page A. Without the return link, Google ignores the annotation.

Do I need x-default?

It is recommended rather than required. Use it for a language selector or a global page that serves users outside your targeted markets.

Does hreflang help rankings?

Not directly. It helps Google show the right version in each market, which prevents the wrong country page ranking and improves the experience for users.

Is the hreflang Checker free?

Yes. There is no sign-up. Fair use limits apply so the tool stays fast for everyone.

Who Built This?

I’m Dan Smullen, Senior Director of Group SEO at Grandstand and former Head of SEO at Independent.ie. I built this checker for the hreflang problems I find most often in international SEO audits, where one broken URL can quietly undo a whole market launch.

Need this level of rigour across an international portfolio? Let’s talk.