Hreflang Tag Generator
Correct hreflang tags for every language and region version.
Loading tool…
Runs entirely in your browser — nothing you enter is uploaded or stored on a server.
How to use it
List each language or regional version of a page and get the full, reciprocal set of hreflang link tags, an x-default, and the XML sitemap equivalent. Catches invalid language and region codes before they go live.
- Add a row for each language or region version and its URL.
- Choose which one is x-default.
- Copy the HTML tags into every version, or use the sitemap output.
MarketersDevelopers
Questions
Do tags go on every version?
Yes. Each version must list all versions including itself. Links that are not returned are ignored.
Is en-UK valid?
No. The region code for the United Kingdom is GB, so use en-GB. The generator flags codes like this.