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.
How it works
-
Enter a page URL
Use any regional or language version of a page.
-
Review the alternates
We list what the page declares and validate every code and URL.
-
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 AuditThree 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?
Should I use en or en-US?
Does this tool check hreflang in my XML sitemap?
Will fixing hreflang make my page rank higher?
Why does a return tag show as missing when the other page has hreflang?
Do I need x-default?
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