The Lab
Tool / 06— Technical
Hreflang Generator
Stop hand-rolling international tags. Map locales, get valid markup three ways, and catch missing reciprocal returns before Google does.
01 — Map locales to URLs
02 — x-default fallback
No issues — markup is reciprocal
Markup — html
<link rel="alternate" hreflang="en" href="https://www.example.com/" /> <link rel="alternate" hreflang="en-US" href="https://www.example.com/us/" /> <link rel="alternate" hreflang="en-GB" href="https://www.example.com/uk/" /> <link rel="alternate" hreflang="fr" href="https://www.example.com/fr/" /> <link rel="alternate" hreflang="de" href="https://www.example.com/de/" /> <link rel="alternate" hreflang="x-default" href="https://www.example.com/" />
Each alternate URL must point back at every other one — the same block on every page in the set.