Home/Free SEO tools/Hreflang Checker
Free tool · step 03 of 04 · Connected

Hreflang CheckerThe right language for the right reader.

Validate reciprocal hreflang, self-references, language and region codes and x-default across every version of an international page.

Last reviewed · 1 Oct 20264 primary sources →Kalenux engineering
https://
Return linksSelf-referenceCodesx-defaultTarget statushtml lang
hreflang checker · example.com
75/ 100
1 to fix · 1 to review
4 passed · 1 warning · 1 failed
Self-referencepresentPASS
en ↔ dereciprocalPASS
fr → demissing return linkFAIL
Language codesall valid ISO 639-1PASS
x-defaultnot setWARN
Targetsall return 200PASS
illustrative result
fetched as crawler · 0.4s
4checks on the clustercodes, return tags, targets
12tags for 3 languagesevery page lists every page
4primary sourcesGoogle documentation
0signups neededpaste a URL and run it
every alternate must link back

Hreflang is a two-way handshake.

Each language version has to list every other version, and itself. If one return link is missing, search engines may ignore the whole set. Below is an illustrative set with one missing.

PAGE ↓ LISTS →endefrx-default
/en/self ✓✓✓✓
/de/✓self ✓✓✓
/fr/✓✕self ✓✓
/✓✓✓self ✓
FAIL · MISSING RETURN LINK/fr/ doesn't list /de/German users may be shown the French page. Add the missing alternate to /fr/ so every row is complete.
ISO 639-1 language, optional ISO 3166-1 region

Codes that work, and lookalikes that don’t.

An invalid code is not reported as an error. It is skipped, silently, and the page it named is never offered to that audience — so a set that looks complete in your template can be serving nobody. Nothing in Search Console flags it, because as far as Google is concerned you simply never made the annotation. Almost every case comes down to the same thing: a value that reads like a country or a language to a person, but matches neither registry.

SkippedWhat it should be
en-UKUK is not in ISO 3166en-GBGB is the code for the United Kingdom
en_GBunderscore is a locale conventionen-GBa language tag is separated by a hyphen
engthree-letter ISO 639-2enhreflang takes the two-letter 639-1 form
englisha language name, not a codeennames are never valid, in either half
GBa region with no languageen-GBthe language comes first and is required
ukUkrainian — and it parsesen-GBthe expensive one: Britain is served a Ukrainian page
pick one method and stick to it

Three places to say it.

Each method is equally valid. Mixing them is how sets end up disagreeing with each other.

HTML head01
<link rel="alternate" hreflang="de" href="https://site.com/de/">
Best for: Most pages
HTTP header02
Link: <https://site.com/de/doc.pdf>; rel="alternate"; hreflang="de"
Best for: PDFs and other non-HTML files
XML sitemap03
<xhtml:link rel="alternate" hreflang="de" href="https://site.com/de/"/>
Best for: Large sites, keeps the HTML light
the version for everyone else

x-default catches the visitors you didn't plan for.

A Japanese visitor arrives at a site that only has en, de and fr pages. x-default tells search engines which page to show them, usually a language picker or your main version.

Browser: ja-JPno ja page→ x-default
Browser: de-ATde page exists→ /de/
Browser: en-USen page exists→ /en/
one cluster, written out

Three pages, twelve tags.

Every page in a cluster lists every page in the cluster, including itself. That is the rule people miss, and it is why three translations need twelve annotations rather than three.

the cluster
  • /productenEnglish, the default
  • /de/produktdeGerman
  • /fr/produitfrFrench

Three URLs, three languages. Nothing here is unusual; the work is in what each one has to declare.

what goes in every one
<!-- the same four lines go on ALL three -->
<link rel="alternate" hreflang="en"
href="https://site.com/product">
<link rel="alternate" hreflang="de"
href="https://site.com/de/produkt">
<link rel="alternate" hreflang="fr"
href="https://site.com/fr/produit">
<link rel="alternate" hreflang="x-default"
href="https://site.com/product">

The identical block on all three pages, self-reference included [1]. Four lines × three pages = twelve annotations.

Leave the self-reference off and Google may ignore the whole set [1]. Add a fourth language later and all four pages change, which is why hreflang is generated rather than typed on any site that keeps it correct.

in depth · 4 primary sources

What Google documents about hreflang.

What the search engines document about each check this tool runs, with every claim linked to its source.

01Three ways to declare it

WHAT IT MEANS“an annotation”One declaration that this URL has an equivalent in another language. Where you put it is a delivery choice; the content of the claim is the same either way.

Google accepts hreflang in HTML <link rel="alternate"> tags, in HTTP headers, or in the XML sitemap [1]. Use one method per cluster; mixing them is how two sources end up disagreeing.

THE FIXPick one method and generate it from the same data that builds the pages. A cluster declared in both the head and the sitemap will eventually disagree, and then neither is trusted.
IN THE HTML HEAD
<link rel="alternate" hreflang="de"
href="https://site.com/de/produkt">
The usual choice, and the only one visible in view-source.
IN THE SITEMAP, FOR LARGE SITES
<url>
<loc>https://site.com/product</loc>
<xhtml:link rel="alternate"
hreflang="de" href="…/de/produkt"/>
</url>
Keeps the head small when a cluster has twenty languages [1].

02Codes must be valid

WHAT IT MEANS“a language code”ISO 639-1 for the language, optionally ISO 3166-1 Alpha-2 for the region. Not a country name, not a locale invented by a CMS.

Google requires valid codes and ignores annotations it cannot parse [1]. The region half is optional and the language half is not, which is the opposite of what most people assume.

THE FIXValidate against the ISO lists rather than intuition, and remember uk is Ukrainian while the United Kingdom is gb. Region-only codes are not valid at all. Which standard applies where →
VALID
hreflang="en" → English, anywhere
hreflang="en-gb" → English, UK
hreflang="pt-br" → Portuguese, Brazil
hreflang="x-default"
Language first, region second, both from the standard lists [1].
INVALID, AND SILENTLY IGNORED
hreflang="uk" → Ukrainian, not UK
hreflang="en-UK" → the code is GB
hreflang="gb" → not a language
hreflang="de-DE-formal" → a CMS locale
Each looks plausible and does nothing. The first is the expensive one: it sends UK traffic a Ukrainian page.

03Hreflang is a hint about audience

WHAT IT MEANS“a signal, not a redirect”It tells Google which version suits which searcher. It does not force a language, block a page, or send anyone anywhere.

Hreflang helps Google serve the right version to the right user; it is not a guarantee and it does not override relevance [1]. All versions stay indexed and any of them can rank for any query.

THE FIXTreat hreflang as targeting, not control. If you need a visitor sent somewhere, that is a redirect decision, and auto-redirecting by IP usually traps crawlers in one country.
WHAT IT DOES
German searcher → /de/produkt preferred
French searcher → /fr/produit preferred
A preference applied when Google already decided to show your page.
WHAT IT DOES NOT DO
• rank the pages higher
• stop /de ranking in France
• redirect anybody
• consolidate duplicates
The last one is the common confusion: that is what canonicals are for [3].

04Keep canonicals consistent

WHAT IT MEANS“consistent signals”Hreflang and canonical answering the same question the same way. They are different mechanisms and Google weighs both, so a contradiction wastes them both.

Every page in a cluster should carry a self-referencing canonical, and hreflang should point at canonical URLs [1][3]. Canonicalising translations to one language removes them from the index.

THE FIXPoint every canonical at its own URL inside a cluster, and reserve cross-page canonicals for genuine duplicates in the same language.
THE CONTRADICTION
<!-- on /de/produkt -->
<link rel="canonical" href="/product">
<link rel="alternate" hreflang="de"
href="/de/produkt">
→ "index /product" and "/de is the German one"
The canonical withdraws the page the hreflang just nominated.
WHAT EACH PAGE SHOULD SAY
<link rel="canonical" href="/de/produkt">
→ plus the full hreflang cluster
Self-canonical, then the annotations. Translations are not duplicates [3].

05The return tag is the whole mechanism

WHAT IT MEANS“bidirectional”If A names B, B must name A. Google treats one-way annotations as unverified and may discard them, because anyone could claim to be the translation of anything.

Annotations must be confirmed from both ends [1]. This is the single most common hreflang fault, and it cannot be seen from either page alone.

THE FIXGenerate the block once from the cluster definition and include it on every member. Hand-editing is what produces one-way pairs, because the page you forget is never the page you are editing.
ONE-WAY, SO IGNORED
/product → names /de/produkt
/de/produkt → names nothing
→ the pair is not confirmed
Usually a page added later, or a template that only runs on the default language.
CONFIRMED FROM BOTH ENDS
/product → names /de/produkt + itself
/de/produkt → names /product + itself
→ the pair holds
Every page lists the whole cluster, itself included [1].

06x-default is the fallback, not the default language

WHAT IT MEANS“x-default”The page to show a searcher none of your languages fit. It is about unmatched visitors, not about which language you consider primary.

Google uses x-default for users whose language or region matches none of the annotations [1]. It is optional, and it is misread more often than it is missing.

THE FIXPoint x-default at whatever serves an unmatched visitor best, which is a selector page if you have one and your widest-reach language if you do not. Pointing it at a narrow regional page is the mistake worth checking for.
WHAT IT IS FOR
Japanese searcher
→ no ja annotation exists
→ gets the x-default page
A catch-all, usually the international or language-selection page.
TWO COMMON MISREADINGS
x-default → "this is our main language"
x-default → "this is the homepage"
→ neither is what it means
It can point at the same URL as your en page; that is a coincidence, not the definition.

07Annotations must point at live URLs

WHAT IT MEANS“a resolvable target”The URL an annotation names has to answer 200 and be indexable. A tag naming a redirect or a 404 is a claim Google cannot verify.

An annotation pointing at a redirect, an error or a noindex page cannot be confirmed, so the pair is dropped [1][3]. The tag still looks right in the source, which is why this survives so long.

THE FIXUpdate annotations as part of any URL change rather than relying on redirects to cover them. The redirect keeps visitors working and does not repair the hreflang pair.
TARGETS THAT FAIL QUIETLY
hreflang="de" → /de/alt → 301
hreflang="fr" → /fr/old → 404
hreflang="es" → /es/draft → noindex
Three valid-looking tags, three unconfirmable pairs.
AFTER A MIGRATION
old: /de/produkt → 301
new: /de/produkte
→ every other page still names the old URL
Moving one language quietly breaks the cluster from every other page.

08Same language, different region

WHAT IT MEANS“en-gb vs en-us”Two pages in one language for different markets. Legitimate, and the case where hreflang earns its keep, because the pages are genuinely near-identical.

Region variants are what hreflang exists for: the content is almost the same, so without annotations Google may pick one and show it everywhere [2]. With them, each market gets its own.

THE FIXUse region variants where something real differs for that market, and always include a language-only annotation as the fallback. Splitting a page by region with identical content just divides its signals.
A REGION CLUSTER
hreflang="en" → /shop
hreflang="en-gb" → /uk/shop
hreflang="en-us" → /us/shop
hreflang="en-au" → /au/shop
A bare en alongside the regional ones catches English speakers elsewhere [2].
WHAT MAKES IT WORTH DOING
prices in the local currency
shipping and returns that differ
spelling, sizes, legal copy
If nothing differs but the URL, you have duplicates and want a canonical instead [3].

References

  1. [1]Tell Google about localized versions of your page · Google Search Centraldevelopers.google.com/search/docs/specialty/international/localized-versions
  2. [2]Managing multi-regional and multilingual sites · Google Search Centraldevelopers.google.com/search/docs/specialty/international/managing-multi-regional-sites
  3. [3]How to specify a canonical URL with rel="canonical" and other methods · Google Search Centraldevelopers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls
  4. [4]Build and submit a sitemap · Google Search Centraldevelopers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap
CITE THIS PAGEKalenux. (2026). Hreflang checker: validate language and region annotations. Kalenux SEO Guide. Last reviewed 1 Oct 2026. kalenux.com.tr/seo-hreflang-checker
other free tools

Keep checking.

All tools →
a cluster is never one page

Hreflang breaks in the gap between pages.

Checking one URL tells you what that page declares. It cannot tell you whether the German page points back, whether the French URL still resolves, or whether a fourth language was added last month and three pages never heard about it. Every hreflang fault is a disagreement between pages, so finding them means reading all of them.

01

Return tags, checked both ways

A page naming a translation that does not name it back is the commonest fault, and it is invisible from either page on its own.

02

Targets that moved or died

Annotations pointing at redirects, 404s or noindex pages. The tag still looks correct; the URL behind it stopped working.

03

Clusters that disagree with canonicals

Hreflang pointing at one URL while the canonical on that page names another, which cancels both signals at once.

Run the full auditCreate an account and your first audit is free, up to 500 pages. No card needed.