Hreflang Validator
Enter a URL or paste the HTML: the tool reads the hreflang tags and the Link header, checks every code and spots the classic mistakes.
Privacy and cost
This tool requests the public URL you enter from our servers. It is free, rate-limited to prevent abuse, and we do not store the URL or the page content.
How it works
- Enter the page URL, or paste its HTML (and its URL to check the self-reference).
- The tool extracts hreflang from the HTML and HTTP header, then validates each language-region code.
- It checks the self-reference, x-default, duplicates, absolute URLs and consistency with the canonical.
Example
On the page https://example.com/fr/, a block with fr-FR, "en-UK" and "es" with the URL "/es/" is flagged: "en-UK" is an invalid code (suggestion: en-GB), "/es/" is not an absolute URL and x-default is missing. The fr-FR self-reference is present.
What the result means
A valid hreflang set uses ISO codes (two-letter language, optional region), absolute URLs, a self-reference and ideally an x-default. This tool reads one page: return links (each target page linking back) must be checked on every target URL.
Common problems this tool helps with
- Invalid codes such as en-UK instead of en-GB, or with an underscore (en_US).
- A page that does not list itself among its alternates.
- Two different URLs for the same code, or the same URL for several languages.
- hreflang placed in the <body>, where it is ignored.
Frequently asked questions
Does the tool check return links?
No: it analyses a single page. Return links require checking each target URL; the platform's live hreflang audit is built for that.
Is x-default required?
No, but it is recommended as the fallback for users whose language has no version. The tool reports it as a warning, not an error.
Can I use hreflang with different canonical URLs?
hreflang should sit on canonical URLs and point to canonical URLs. The tool flags a canonical that differs from the page URL.
Related tools
- Hreflang GeneratorEnter each language version (code and URL): the tool validates the codes, adds x-default and outputs the same block to paste on every version.Free · runs in your browser
- Language Tag Checker (BCP 47)Paste your codes, one per line: the tool validates them, fixes the casing, catches common mistakes and tells you whether hreflang accepts them.Free · runs in your browser
- Canonical Tag CheckerEnter a URL or paste the HTML: the tool reads the canonicals in the HTML and the Link header, compares them with the page URL and tests the target.Free · no account needed
- International SEO URL PlannerList your markets (language-region) and answer five questions: the tool recommends a URL structure, proposes the addresses and compares the three options.Free · runs in your browser
- XML Sitemap ValidatorEnter the sitemap address or paste its XML: the tool checks the structure, the limits and every value, and works out how many files you need.Free · no account needed
- Hreflang Live AuditEnter a URL: the tool reads its hreflang tags (HTML and HTTP Link header), then visits up to eight alternates to confirm they respond and link back to your page.Free account · 3 live checks/day