Why you need it
hreflang is the set of tags multilingual sites get wrong most easily, and the errors are the hardest to notice. The three mistakes that come up most in real audits:
- Lowercase region codes (
zh-cn) — the standard requires ISO 3166-1 Alpha-2 in uppercase (zh-CN). This site’s audit rule IN-11 catches exactly this. - One-way declarations — page A declares B, but page B doesn’t declare A. hreflang is a "handshake"; without the return link the whole set is ignored (rule IN-12).
- Missing x-default — with no default version declared, the engine picks one at random for users whose language doesn’t match.
This tool closes all three gaps at once: it generates one identical set of tags. Paste it as-is into the <head> of every language version, and the reciprocal declarations hold by construction.
How to use it
- One language version per line:
language-code space full-URL, e.g.zh-CN https://example.com/ - Don’t worry about letter case in the codes — the tool fixes it and tells you in the result how many it changed
- Tick x-default (recommended); by default it points to the URL on the first line
- Click "Generate tags" and copy the whole set into the
<head>of every language version
Basis and limits
- Language codes are checked against ISO 639-1 (language, lowercase) + ISO 3166-1 Alpha-2 (region, uppercase)
- The tool only makes sure the tags are written correctly; every language version must actually exist and be crawlable (returns 200, no noindex), otherwise the whole set still fails — check this with the site-wide light crawl
- On WordPress sites it’s better to have the theme or a plugin output the tags at template level (this theme does it built in); this tool suits static sites or checking hand-written tags
Related reading
- Question bank: how GEO and classic SEO differ in keyword strategy
- SEO basic check — the automatic check verifies whether hreflang declarations are reciprocal