The Website Previewer

Hreflang Validator

Hreflang Validator

Paste a URL. We fetch the page, parse every <link rel="alternate" hreflang="..."> tag, and check it against Google's rules: self-reference, x-default, ISO 639-1 + ISO 3166-1 Alpha 2 codes, canonical inside the cluster, no duplicate codes pointing different places.

Free · no signup

What this checks

  • Self-reference: the page must include itself in the hreflang set, or Google discards the entire cluster.
  • x-default: recommended fallback for users in non-listed locales.
  • Valid ISO codes: ISO 639-1 language + optional ISO 3166-1 Alpha 2 region. Catches common bugs like en-UK (should be en-GB).
  • No duplicate codes: two en entries pointing different URLs = Google ignores both.
  • Canonical alignment: the page's canonical URL must appear in the hreflang set, or Google discards the cluster.

Frequently asked questions

What does hreflang do?

It tells Google which language or region version of a page to show. Broken hreflang gets the whole cluster ignored.

What is the most common hreflang mistake?

A missing self-reference, or invalid codes like en-UK (should be en-GB). Both make Google discard the annotations.

Do I need x-default?

Recommended — it's the fallback for users whose language or region isn't listed.

Related free tools

Toggle navigation