Hreflang Tag Generator
Generate hreflang link tags from language codes and URLs, including an x-default, for multilingual sites.
Hreflang tags
In short
What is the Hreflang Tag Generator?
The hreflang tag generator turns lines of language code and page address into link tags that tell search engines which version of a page suits which language or region. Paste the tags into the head section of every version, including each page itself. Hreflang is a hint, not a guarantee.
How to use it
- List each version as language code | URL, one per line.
- Add the x-default address for visitors who match none.
- Copy the generated link tags.
- Paste the same full set into the head section of every language version.
Questions
Hreflang Tag Generator — FAQ
What do the codes look like?
A language code such as en or hi, optionally with a region such as en-in or en-gb.
Does every version need to list all the others?
Yes. Each page should list every alternate, including itself, and the references should be reciprocal.
What is x-default for?
It names the fallback page for visitors whose language or region does not match any listed version.
More SEO, AEO & GEO tools