Rankite
ServicesResultsToolsTeamAboutBlogCareersContactFree SEO Audit
Free tool

Hreflang Tag Validator: Find Hreflang Errors Fast

Paste your hreflang link tags to check language codes, spot duplicates and confirm absolute URLs, the mistakes that quietly break international targeting.

Home / Tools / Hreflang Tag Validator
Tags found
-
Status
-

Built by Rankite, the SEO team behind Swordfish AI's +400% revenue and Zluri's +45% organic growth. See the case studies

Hreflang tags tell search engines which language and regional version of a page to show a given visitor. They are simple in theory and notoriously easy to get wrong in practice: a typo in a language code, a duplicate value, or a forgotten fallback can quietly send the wrong version of a page to an entire market. This tool parses the link tags you paste and checks each one for the mistakes that cause hreflang setups to fail silently.

What this validator checks

For every <link rel="alternate" hreflang="..."> tag found, the tool checks the language portion of the hreflang value against the ISO 639-1 list of two-letter language codes, checks that any region portion after a hyphen is a two-letter format, confirms the href is an absolute URL rather than a relative path, and flags any hreflang value that appears more than once in the set. It also notes whether an x-default tag is present.

Mistakes this catches

The most common hreflang errors are a language code that does not exist (a typo like "eng" instead of "en"), the same hreflang value used on two different URLs (which creates ambiguity about which one is correct), a relative href that will not resolve the same way on every page that includes it, and a missing x-default tag, which is not required by Google but is the recommended fallback for visitors whose language or region does not match any of your listed alternates.

What this validator does not check

This tool checks the tags as a set, in isolation. It cannot verify that the hreflang tags are reciprocal, meaning every page in the set links back to every other page in the set, since that requires crawling each URL. It also cannot confirm the destination pages actually load or return a 200 status. Full reciprocity and live URL checks are part of a complete technical SEO audit.

Related articles

FAQ

Hreflang Tag Validator: questions, answered

What does this hreflang validator check?
It parses every link rel=alternate hreflang tag you paste, checks the language code against the ISO 639-1 standard, checks that any region code is a valid two-letter format, confirms the href is an absolute URL, flags duplicate hreflang values, and notes whether an x-default tag is present.
What is x-default and do I need it?
x-default is a special hreflang value that tells search engines which version to show a visitor whose language or region does not match any of your other tags, such as someone browsing from a country you have not targeted. It is not required, but Google recommends including one as a sensible fallback.
Why would the same hreflang value appear twice?
It usually happens by accident: a page was moved or duplicated and the old link tag was never removed, or a templating bug outputs the same tag twice. Two URLs claiming the same hreflang value creates ambiguity, since search engines cannot tell which one is the correct version for that language and region.
Does this tool check that hreflang tags are reciprocal?
No. A fully correct hreflang setup requires every page in the set to link back to every other page, which means crawling each URL to confirm. This tool only validates the format and content of the tags you paste in one place; checking reciprocity across live pages is part of a full technical SEO crawl.
Should hreflang codes be lowercase?
Language codes are conventionally written lowercase and region codes uppercase, such as en-US, though hreflang matching is case-insensitive so en-us also works. This tool checks the values regardless of case.
What if my language has no region, like just fr?
That is valid. A hreflang value can be a language code alone, such as fr for all French speakers regardless of region, or a language plus region, such as fr-CA for French speakers in Canada specifically. Use whichever level of targeting matches how your content actually differs.

More free tools

Let's grow

Ready to own page one?

Get a free, no-obligation SEO audit and a 30-minute strategy session. We'll show you exactly where the growth is hiding.

Book your free audit Explore services
Get in touch

Tell us about your project

Fill out the form and we'll get back to you within one business day. Prefer email? Write to us directly at contact@rankite.com.

Or copy our email and write to us directly: contact@rankite.com