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.
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 been-GB). - No duplicate codes: two
enentries 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
- All tools — browse every free hosts.click tool in one place.
- Server diff — compare old vs. new server (status, headers, redirects, body hash, response time) before a DNS cutover.
- Cache checker — grade HTTP cache + CDN headers on any URL.
- Migration checklist generator — a personalized, step-by-step plan for moving hosts.
- DNS & hosting glossary — hreflang, canonical, DNS records explained plainly.
- Website migration checklist — end-to-end SEO-safe migration steps.