Hreflang Tag Generator
Generate <link rel=alternate hreflang> tags for multiple language and region versions of a page, including x-default.
Output
Add a row for each language or region version of your page to generate the correct hreflang link tags, plus an optional x-default fallback. This helps search engines serve the right localized page to the right audience. Everything is generated instantly in your browser.
How to use
- Add a row for each language/region version with its language code and URL.
- Optionally set a default URL for x-default.
- Copy the generated link tags into your page's <head>.
Frequently asked questions
- What format should the language code use?
- Use an ISO 639-1 language code alone (e.g. "en") or combined with an ISO 3166-1 region code (e.g. "en-US", "pt-BR").
- What is x-default for?
- The x-default hreflang value tells search engines which page to show when no other language/region variant matches the visitor's settings.
- Do hreflang tags need to be reciprocal?
- Yes, each language version's page should include hreflang tags pointing to all other versions, including itself, for search engines to trust the annotations.