SEO Analysis

Hreflang Validator

Validate hreflang markup quality and reciprocal language links.

Key facts

Hreflang check online: enter a page URL and the tool finds alternate hreflang tags and checks x-default, self-reference, duplicates, code format and the response of each address; in reciprocal mode also return links (first 8). It reads only the page HTML. Free, 10 runs a day for a guest.

Price
Free
Sign-up
Not required
Processing
On our server: we download the page, extract link rel="alternate" hreflang tags and, if needed, request the target URLs to check the status code and the return link
Input
One public page URL and a “check reciprocal hreflang” switch
Limits
15 runs per minute and a daily limit (10 for a guest, 30 when logged in, unlimited for Pro); reciprocal mode checks only the first 8 addresses; only tags in the HTML are read, not HTTP headers or sitemaps
Output
A table of all alternate links: language code, target URL, HTTP status and (in reciprocal mode) whether a return link exists, plus a list of problems: no hreflang, no x-default, no self-reference, duplicate and invalid codes
Last updated

Video walkthrough 0:41

Hreflang Validator Free: Check Language Tags, x-default & Return Links

Hreflang Validator Free: Check Language Tags, x-default & Return Links

Validate hreflang markup for free: code format, x-default, HTTP status of alternates and reciprocal (return) links.

Chapters
  1. 0:00 Reading the result
  2. 0:29 Try it free
Video transcript

Is your hreflang markup correct? Validate it, including return links. Enter a page address. Click Validate Hreflang. Five alternate URLs, five unique codes, and no issues detected. The table lists every language code, its target URL and HTTP status. Every alternate page must link back to the others. Add an x default as a fallback for other languages. Free, no sign-up. The link is in the description. Subscribe for more free tools.

See it in action

Hreflang Validator — Alternate & Reciprocal Check

Validate multilingual hreflang markup: code format, x-default coverage, duplicates, and reciprocal alternate links.

Extract hreflang alternate links from document head
Validate language code format and duplicates
Check x-default and self-referencing hreflang
Check HTTP status of alternate URLs
Optional reciprocal backlink verification

How to Use

  1. Enter a URL that should be part of your hreflang cluster
  2. Run validation and review code, x-default, and self-reference issues
  3. Enable reciprocal checks if needed and fix disconnected locales

FAQ

Enter the page URL and click Validate Hreflang. The tool finds the alternate hreflang tags in the HTML, checks for x-default and self-reference, duplicates and code format, and the HTTP response of each address. Reciprocal mode also looks for return links. A guest gets 10 runs a day.

If page A points to B as an alternate, B must point back to A. According to Google's documentation, if two pages do not point to each other, the tags are ignored. Reciprocal mode loads up to 8 target addresses and looks for a link to the page you tested.

Self-reference is required: each version must list itself along with the others. x-default defines a fallback version for languages that match none of the listed ones; it is recommended but not mandatory.

A language per ISO 639-1, optionally a region per ISO 3166-1 Alpha 2 (such as de-AT) or a script (zh-Hans). A region alone, without a language, is invalid. Our tool currently accepts only a language and a region, so codes with a script will be flagged as errors.

No, only link tags in the page HTML. If your hreflang is set in a sitemap or a Link header, the tool will report that there is no markup. For such sites use a crawler or Search Console.

The hreflang target answers with a redirect or an error. Hreflang should contain final URLs that return 200 and are not blocked from indexing. Replace the address in the markup with the final URL.

Who it is for and typical uses

  • Multilingual sites. After launching a new language version, check that every page links to all versions, including itself.
  • Return links. Google ignores hreflang if pages do not point to each other; reciprocal mode checks that the return link exists.
  • After a migration or URL change. The status of each target shows if a language leads to a 404 or a redirect.
  • A client audit. A fast check of the main language pages: x-default, duplicate codes, typos in codes.

Honest limitations

  • Only tags in the HTML. Hreflang in an HTTP Link header (for PDFs) and in a sitemap with xhtml:link is not read, although Google treats the three methods as equivalent: a page using them will look like “no hreflang”.
  • Script codes are accepted. The format check accepts a language, an optional script and a region (de, de-at, zh-Hans, zh-Hant-TW).
  • Relative URLs are completed silently. Google requires fully qualified URLs with the protocol; the tool adds the domain and does not warn about the mistake.
  • Reciprocal covers only the first 8 addresses. For large language sets the check is partial. Without this mode only the HTTP status of the targets is checked.
  • No canonical or noindex checks. A conflict of hreflang with canonical or noindex on the target page is not detected.

Related: redirect checker, meta tag analyzer, sitemap analyzer, robots.txt checker, SEO audit.

PromoPilot vs alternatives: comparison

We compare only what is confirmed on each service's own pages. Where we could not confirm a fact, the cell shows "—".

Parameter PromoPilot Google Search Central: локализованные версии Merkle hreflang Tags Testing Tool
Free and limits Yes: 15 runs per minute, a guest gets 10 a day Documentation, not a tool —
Hreflang in HTML ✓ ✓ —
Hreflang in HTTP header and sitemap ✗ ✓ three equivalent methods: HTML, Link header, sitemap —
Return-link check ✓ first 8 addresses States the rule: without return links the tags are ignored —
✓ Script codes (zh-Hans) ✗ flags them as errors ✓ allows zh-Hans, zh-Hant; es-419 is unsupported —

Scroll the table sideways

Where we are weaker: we read only tags in HTML (not the Link header or a sitemap), flag valid script codes as errors, check return links for only the first 8 addresses and do not compare canonical and noindex.

When to choose PromoPilot: When you need a quick check of one page's hreflang in HTML: whether self-reference, x-default and the responses of all language versions are in place. For sites that set hreflang in a sitemap or HTTP headers, and for bulk checks, use a crawler.

Checked on: . "—" means not confirmed on the official page; terms and prices change, so check the services' own sites.

Hreflang check: what the validator tests and how to read it

This hreflang checker fetches your page, collects every <link rel="alternate" hreflang="…" href="…"> tag in the HTML and audits the cluster of language versions. At the top you get three counts: alternate links found, unique codes, and issues. Below that come the issues and a table with code, target URL, HTTP status and a Reciprocal column.

What counts as an issue:

  • No hreflang links at all — the markup isn't in the HTML, or a script injects it after load (the tool doesn't execute JavaScript).
  • Invalid code — not shaped like "language" or "language-region" (en, en-gb, pt-br) and not x-default.
  • Duplicate code — the same code points to different URLs.
  • Missing x-default — a recommendation, not an error.
  • Missing self-reference — no alternate points to the page you tested. Host case and a trailing slash are ignored, but http vs https and www vs non-www are not.

With the reciprocal switch off, the tool requests headers for every alternate URL and shows the final status code. Switch it on for proper hreflang testing of return links: the first eight versions are downloaded in full and scanned for a link back to your page. Versions beyond eight show "—".

Hreflang syntax

<link rel="alternate" hreflang="en-us" href="https://example.com/us/pricing/" />
<link rel="alternate" hreflang="en-gb" href="https://example.com/uk/pricing/" />
<link rel="alternate" hreflang="de" href="https://example.com/de/pricing/" />
<link rel="alternate" hreflang="x-default" href="https://example.com/pricing/" />
  • Language — a two-letter ISO 639-1 code: en, de, fr, pl.
  • Region (optional) — ISO 3166-1 alpha-2 after a hyphen: en-gb, de-at. A region alone is invalid: hreflang="gb" or hreflang="us" does nothing.
  • Case doesn't matter: en-GB equals en-gb.
  • URLs must be absolute, including the protocol. The tool resolves relative URLs so it can test them, but write full URLs in your markup.

Code traps a format check won't catch

The validator checks the shape of a code, not whether it exists, so scan the table yourself:

  • en-uk is wrong. The United Kingdom is gb; uk is the Ukrainian language. Use en-gb, even if your folder is called /uk/.
  • en-eu or en-latam aren't valid regions. Target countries one by one, or use language only.
  • zh-Hant, zh-Hans (script subtags) and es-419 (Latin America) are accepted by Google, and the format check accepts them too.

x-default: when and where

x-default is the page for everyone who matches no listed code — usually a language selector or your main international version. It's optional, but on sites that geo-redirect from the root it's the clearest way to tell Google that the bare homepage isn't another language version. Don't auto-redirect x-default by IP: Googlebot crawls mostly from US addresses and may never see your other versions.

Language only or language-region?

Use a region code only when versions genuinely differ: prices and currency, shipping, legal terms, local spelling. If you have one English version for everyone, en is enough. Near-identical en-us and en-gb pages with hreflang are fine — Google doesn't treat them as duplicates and shows each country its own.

Return links and self-reference

Hreflang only works in pairs. If the US page points to the UK page but the UK page doesn't point back, Google ignores the relationship. Every version must list all versions in the cluster, itself included. That is why hreflang should be generated from one source of truth (a shared translation map) rather than typed per page. WPML and Polylang do this in WordPress; Shopify Markets does it on Shopify.

Common hreflang errors

ErrorEffectHow to find it
Alternate URL redirectsGoogle expects the final URL; chains weaken the signalThe status column shows the post-redirect code, so run the URLs through the redirect checker
Alternate is 404 or noindexThat version drops out of the clusterStatus column; noindex via the meta tag analyzer
Canonical points to another languageGoogle folds the versions together and shows oneEach version should be self-canonical
No return linkRelationship ignoredReciprocal mode
Different URL forms (slash, www, parameters)Self-reference and return links don't matchCompare the URL column with canonicals
Hreflang on untranslated pagesUsers land on the wrong languageOnly add hreflang once a translation exists

Hreflang testing, step by step

  1. Check the homepage and one page per template (category, product, article) with reciprocal off: confirm the markup is output at all, codes are valid, and x-default and self-reference are present.
  2. Turn reciprocal on for the same pages. Every "No" is a version that doesn't link back — typically a translation published on one side but not yet linked from the other.
  3. Open each version listed and test it too. All versions should carry the identical set of links; five alternates on one and four on another means the cluster is out of sync.
  4. Compare each version's canonical with its hreflang URL. They must match character for character.
  5. After fixing, request indexing for key pages via URL Inspection. Google rebuilds clusters gradually as it recrawls every version.

Where it usually breaks

In WordPress, hreflang comes from the multilingual plugin (WPML, Polylang) while the SEO plugin outputs the canonical. Trouble starts when a page isn't linked to its translation in the plugin settings, so no hreflang appears for it. On custom CMSs the tags are usually built in the header template. The classic bug there is taking the current URL from the request, UTM tags and sort parameters included, so the self-reference never matches the canonical. Headless setups add one more trap: tags rendered only client-side are invisible to this validator and appear late for Google.

Three ways to implement hreflang, including the sitemap

You can declare hreflang in the <head>, in an HTTP Link header (the only option for PDFs) or in your XML sitemap. Pick one: mixing is allowed, but conflicting sources make debugging painful. This validator reads the HTML tags only.

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <url>
    <loc>https://example.com/us/pricing/</loc>
    <xhtml:link rel="alternate" hreflang="en-us" href="https://example.com/us/pricing/"/>
    <xhtml:link rel="alternate" hreflang="en-gb" href="https://example.com/uk/pricing/"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://example.com/pricing/"/>
  </url>
  <!-- repeat a full <url> block for /uk/pricing/ -->
</urlset>

Sitemaps suit large sites because they keep page HTML lean, but every version needs its own <url> entry with the full set of links. Parse yours with the sitemap analyzer.

Google has retired the International Targeting report in Search Console, so hreflang errors now surface only through external checks and URL Inspection, which shows the canonical Google selected. Official rules are in Google's documentation.

Cascade link promotion for your site $30 bonusBacklinks 5→50→5000 across 100+ platforms. From $30 to start, plus a $30 bonus for newcomers.