language Technical SEO

Hreflang Checker and Validator

International sites rely on hreflang to tell search engines which language or regional version of a page fits a given searcher. Small mistakes, such as a missing return link or a made-up region code, can cause the whole cluster to be ignored. This validator reads hreflang from the HTML link rel="alternate" elements and from HTTP Link headers on the URL you enter, then follows each alternate to confirm it points back. It flags invalid codes, missing self-references, absent x-default values, non-200 targets, and canonical tags that contradict the cluster. Sitemap-based hreflang is a third method worth checking separately, since the tool focuses on page-level signals.

build_circle Try the free tool

How it works

  1. Enter a page URL

    Use any regional or language version of a page.

  2. Review the alternates

    We list what the page declares and validate every code and URL.

  3. Fix return links

    Make every version list all the others, so search engines trust the set.

What you get

  • Hreflang tags found

  • Valid language-region codes

    Tests each code against the language, optional script, optional region pattern, plus x-default.

  • Absolute URLs

    Flags any hreflang href that is relative, meaning it does not begin with http:// or https://.

  • Self-reference and x-default

    Checks that the page lists its own URL among its alternates, and separately whether an x-default entry exists.

Who it's for

  • International SEOs auditing multi-country and multi-language sites.
  • Developers implementing regional templates and needing fast validation.
  • Agency teams QAing hreflang before handing over client work.
  • Ecommerce managers with US, UK, Australian, and Singaporean storefronts.

Good to know

Return links are what make hreflang work, and one missing link can cause search engines to ignore a pair.

Get a Free Audit

Three ways to declare hreflang

You can place link rel="alternate" hreflang elements in the HTML head, send them in an HTTP Link header, which is common for PDFs and other non-HTML files, or list them in an XML sitemap. This checker inspects the first two. If your site uses the sitemap method as well, compare it against the page-level tags by hand, because conflicting declarations across methods need a human decision about which one is correct.

Return tags, self-reference, and x-default

Every page in a cluster should list itself and each of its alternates. If the US page points to the German page, the German page must point back to the US page, or the pair may be disregarded. The x-default value names the fallback URL for users whose language or region is not covered, often a selector or global page. The report marks each alternate as confirmed or missing a return link, so one page audit does not hide a broken partner.

Valid language and region codes

Language codes follow ISO 639-1, such as en, es, or de. An optional region follows ISO 3166-1 alpha-2, such as US, MX, or GB. The value en targets English speakers anywhere, while en-US targets English speakers in the United States. A common error is en-UK, which is not a valid code. British English is en-GB. The checker flags unrecognized codes and region-only values, since a region cannot be used without a language.

Canonical conflicts and why hreflang is a hint

In a healthy cluster, each URL has a self-referencing canonical and lists its alternates. If a regional page canonicalizes to a different URL, search engines may drop its hreflang signal entirely. Alternates that redirect, return errors, or carry noindex cause similar problems. Even when everything validates, hreflang is a hint rather than a directive, so it helps search engines pick a version but does not force which URL appears.

Questions

Questions we get asked

Is en-UK a valid hreflang value?

No. UK is not the ISO 3166-1 code for the United Kingdom. Use en-GB for English in the United Kingdom.

Should I use en or en-US?

Use en when one English page serves everyone. Use en-US, en-GB, en-AU, and similar values when you have separate pages tailored to each English-speaking country. You can combine both, with en as a general fallback.

Does this tool check hreflang in my XML sitemap?

It reads HTML link elements and HTTP Link headers on the URLs it fetches. Sitemap hreflang should be reviewed separately and compared with on-page tags for conflicts.

Will fixing hreflang make my page rank higher?

Hreflang helps search engines show the right language or regional version. It is not a ranking boost, and search engines may still choose a different URL.

Why does a return tag show as missing when the other page has hreflang?

The alternate may list a slightly different URL, such as a version with or without a trailing slash, a different protocol, or a redirecting address. Hreflang URLs must match the final, indexable URL exactly.

Do I need x-default?

It is optional but recommended. It tells search engines which page to show users who do not match any listed language or region.

Free audit

Running a multi-country or multilingual site?

Share your domains and target markets and we will review hreflang, canonicals, and indexing across your international setup.

Get a Free Audit