Hreflang Tag Validator
Paste a page’s HTML and, optionally, its URL. The validator reads every <link rel="alternate" hreflang> tag as data, checks the language-region codes and URLs, and flags duplicates and misplaced tags. It cannot fetch the other pages, so it cannot confirm that they link back.
1. HTML source
Treated as text2. Report
Nothing fetched| # | hreflang | href | Resolved | Location | Status |
|---|
Errors
Warnings
Passed
Notes
This tool cannot fetch pages, so it cannot verify reciprocal hreflang links, status codes or canonicals on the alternate URLs.
About Hreflang Tag Validator
Hreflang Tag Validator checks the <link rel="alternate" hreflang> tags in pasted HTML. It validates language codes against ISO 639-1 and regions against ISO 3166-1 or UN M.49, catches underscores, duplicates and repeated x-default values, flags missing or relative URLs and tags in the body, and finds the self-referencing entry when you supply the page URL.
Hreflang errors are easy to make and hard to spot, and a single bad code or duplicate can cause search engines to ignore a set of annotations. Validating each page’s tags catches the problems you can fix in the source.
Step by step
- Paste the HTML source of one language version of a page.
- Optionally enter that page’s URL.
- Press Validate.
- Review the entries table and the errors, warnings and notes.
- Repeat for each language version, then copy or download the report.
What it offers
- ISO 639-1 language and ISO 3166-1 region code checks
- Script subtags (zh-Hant) and UN M.49 regions (es-419)
- Underscore, malformed and region-only code detection
- Duplicate entries and multiple x-default detection
- Relative URL resolution and self-reference check
- Clear note that reciprocal links cannot be verified locally
Tips for best results
- Use hyphens, not underscores: en-GB, not en_GB.
- List every language version on every version, including itself.
- Use absolute https:// URLs that point to canonical pages.
- Add x-default for a language selector or global fallback page.
Why people use it
Code-accurate
Real ISO code lists, not just patterns.
Clear
Each entry gets a status.
Honest
States what cannot be checked locally.
Private
Nothing is fetched.
Common questions
This runs entirely in your browser
No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.