Hreflang validator
Paste a page's head and find every hreflang mistake.- Error: en-UK: “en-UK” uses an invalid region. Did you mean en-GB?
- Error: fr: Relative URL — use an absolute https:// URL.
- Error: Missing self-reference: none of the tags point to this page (https://example.com/de/). Each page must list itself.
- Note: Return links can't be checked from one page. Paste each listed page's head to confirm they all link back.
- enhttps://example.com/OK
- en-UKhttps://example.com/uk/“en-UK” uses an invalid region. Did you mean en-GB?
- fr/fr/Relative URL — use an absolute https:// URL.
- x-defaulthttps://example.com/OK
What it’s good for
Find out why your alternates are ignored.
- Audit a templateCheck the tags your CMS actually outputs.
- Fix before launchInvalid codes, relative URLs and missing self-references.
- Get corrected tagsCopy a fixed set straight back into your template.
Questions
The short answers.
Which errors are caught?
Invalid language or region codes, relative or http URLs, duplicates, missing x-default, missing self-reference and canonical conflicts.
Can it check return links?
Not from one page. Validate each page in the set, or use the sitemap tool to keep them in sync.
Does it fetch my site?
No. Paste the HTML; nothing is requested.
What does the corrected set change?
It normalises codes (en-uk becomes en-GB, regions are uppercased), switches http to https, resolves relative URLs against the page URL you entered, drops duplicates and adds a self-reference if one is missing. Codes it can't fix are kept with a comment so you can replace them.
Why does the canonical matter for hreflang?
Search engines only use hreflang on the canonical version of a page. If the canonical points to a different URL, the alternates on this page are ignored.