Skip to main content
6NN6C SEO & GEO research
Web tool Free No sign-in requiredMobile friendly

hreflang Tag Generator

Mutual tags for language versions

Enter the language code and URL of each language version and generate a full set…

Needs
The URL of each language version
You get
A full tag set, ready to copy

Start here

Follow the notes on this page, then check the result.

"Verify" sends the URL list above to our server, which fetches each page and checks reachability plus whether every version declares the full hreflang set.

Generated tags

Paste them as-is into the head of every language version.

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:

  1. 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.
  2. 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).
  3. 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

  1. One language version per line: language-code space full-URL, e.g. zh-CN https://example.com/
  2. Don’t worry about letter case in the codes — the tool fixes it and tells you in the result how many it changed
  3. Tick x-default (recommended); by default it points to the URL on the first line
  4. 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

Frequently asked questions

Does it conflict with hreflang generated by WPML or Polylang?

No, but don't duplicate: if a plugin already outputs the full set in <head>, there's no need to paste these by hand. This tool suits static sites, self-built multilingual setups, or checking whether a plugin's output is correct.

Do the generated tags go on every language version?

Yes. hreflang is a reciprocal handshake: the same set of tags must appear unchanged in the <head> of every language version. Put it on only one side and the whole set fails.

Does "Verify live declarations" visit my website?

Yes. When you click verify, this site's server fetches each URL you entered and checks that it's reachable and that the declarations are reciprocal. It only reads; it changes nothing.