Hreflang Validator

Validate a page's hreflang tags — language codes, self-reference, duplicates, and reciprocal linking.

In short

Validate a page's hreflang tags — language/region code format, self-reference, duplicates, and whether alternate-language pages actually link back.

What Is Hreflang Validator?

Hreflang Validator extracts every rel="alternate" hreflang tag declared on a page and checks it against the rules search engines actually enforce: a valid language/region code format, a self-referencing entry, no duplicate codes, and — for a sample of the declared alternates — whether those pages link back to confirm the relationship.

Hreflang is one of the most error-prone parts of international SEO precisely because a broken implementation produces no visible symptom on the page itself — everything looks fine in a browser while search engines quietly ignore the markup.

What Hreflang Tags Do

Hreflang tags tell search engines which language and, optionally, regional variant of a page should be shown to searchers in a given locale — for example, serving your /en-gb/ page to UK searchers and your /en-us/ page to US searchers, even though both are in English.

Done correctly, hreflang prevents duplicate-content issues between near-identical localized pages and ensures the right variant shows up in the right market's search results.

Why Hreflang Must Be Reciprocal

Google's documented requirement is that hreflang annotations must be bidirectional: if Page A declares an hreflang alternate pointing to Page B, Page B must declare a matching hreflang annotation pointing back to Page A. A one-directional link is treated as invalid and ignored.

This reciprocity requirement is exactly why hreflang errors are so common at scale — a single page added, removed, or URL-changed without updating every other page in its hreflang cluster breaks the whole group silently.

What This Tool Checks

  • Language/region code format — every hreflang value matches a valid ISO code pattern, or the special "x-default" value
  • Self-reference — the page includes an hreflang entry pointing to itself, as Google's guidelines require
  • Duplicate codes — the same hreflang value declared more than once on one page
  • Reciprocity — for a sample of up to 5 declared alternates, whether that page actually links back to confirm the relationship

Common Hreflang Mistakes

Using the wrong code format is the most frequent error — "en_US" with an underscore instead of "en-US" with a hyphen, or a country code used alone where a language code is required (hreflang identifies language first, region second, never the other way around).

Missing the self-referencing tag is another common gap: every page in an hreflang set, including the page itself, must list itself as one of its own alternates.

The most damaging mistake is non-reciprocal linking — pages get added to or removed from a multilingual site without every other page in the set being updated to match, silently breaking the whole cluster.

How Hreflang Validator Works

Enter the URL you want to check and run the validator. SEOsoft fetches the page, extracts every hreflang tag, and checks format, self-reference, and duplicates immediately.

It then fetches up to five of the declared alternate pages to confirm they link back to the page you checked — flagging any one-directional relationship that search engines would otherwise silently discard.

Limitations of this tool

  • The reciprocity check samples up to 5 alternates per run — pages with larger hreflang sets should spot-check additional alternates separately.
  • This tool checks HTML-based hreflang tags only; hreflang declared via XML sitemap or HTTP headers is not checked.
  • A page can pass every check here and still not rank as expected in a given locale — hreflang affects which URL is shown, not ranking strength itself.

Frequently asked questions

What is the correct hreflang code format?
A two- or three-letter ISO 639-1 language code, optionally followed by a hyphen and a two-letter ISO 3166-1 region code — for example "en", "en-US", or "en-GB". The special value "x-default" is also valid.
Why do I need a self-referencing hreflang tag?
Google's guidelines require every page in an hreflang set to include an annotation pointing to itself, alongside its alternates. Omitting it is treated as a markup error.
What does "not reciprocal" mean in the results?
It means an alternate page you declared does not, in turn, declare an hreflang annotation pointing back to the page you checked. Google requires bidirectional linking — a one-way hreflang relationship is ignored.
Can I use hreflang without regional codes, just by language?
Yes. Language-only codes like "en" or "fr" are valid when you're not differentiating by region, and are simpler to maintain than a full set of regional variants.
What is x-default used for?
x-default marks a fallback page to show searchers whose language or region doesn't match any of your other declared hreflang variants, such as a language-selector page.
Does hreflang need to be in the HTML head, or can it be in a sitemap?
Either is valid per Google's guidelines, but this tool checks the HTML <link> tags served in the page itself, not sitemap-based hreflang annotations.

Keep your whole multilingual site in sync

Create a free SEOsoft account to monitor hreflang and technical SEO health across every localized page, not just one at a time.

Category: SEO · Last updated 2026-11-26T12:27:45+00:00