What is this hreflang tag generator?
A free, browser-based hreflang tag generator. Enter your URL ↔ locale pairs and it builds the full set of <link rel="alternate" hreflang="..." href="..." /> tags — including x-default — that you paste into your page's <head>. Each code is validated against the language (ISO 639-1) and optional region (ISO 3166-1) format, with inline warnings for invalid or duplicate codes. Everything runs locally in your browser, so nothing is uploaded.
How to use it
- On each row, enter a language code (e.g. en, en-US, ja) and the URL of that variant.
- Add a row with x-default pointing to your fallback page (a language selector or global homepage).
- Fix any inline warnings, then click Copy and paste the tags into your page's <head>.
- Output the same set on every page in the group so the annotations stay reciprocal.
Common use cases
- Launching a multilingual site and wiring up the language/region variants.
- Serving country-specific pages of the same language (en-US vs en-GB).
- Adding an x-default fallback to an existing hreflang set.
