hreflang checker
Paste a page's HTML head and check its hreflang annotations: codes, x-default, duplicates and self-reference. Runs in your browser; nothing you paste leaves this page.
| hreflang | URL |
|---|
How to use it
- View the source of one language version and copy its <head>.
- Enter that page's URL so the self-reference can be checked.
- Repeat for each language version; all must list the same set.
What it covers
HTML containing <link rel="alternate" hreflang> elements, plus the page URL.
Invalid or misspelt codes, relative URLs, conflicting duplicates, missing x-default and missing self-reference.
Fetching the other versions to confirm they link back, and hreflang declared in HTTP headers or sitemaps.
Questions
Is "en-UK" wrong?
Yes. Region codes are ISO 3166-1; the United Kingdom is GB, so the code is en-GB.
Do I need x-default?
Not strictly, but it tells search engines which version to show when no language matches.
Check a whole site in one call
The audit endpoint runs this kind of check across sampled pages of a site, with the evidence URLs. Related checks: No html lang attribute, No canonical tag.