Hreflang Generator
Tell Google which language version to show each visitor: generate hreflang tags for every locale plus the x-default fallback.
How to use
- Add a row per locale with its language code and URL.
- Set the x-default URL for unmatched visitors.
- Paste the tags into the head of every language version.
Examples
English and Spanish versions
Output: hreflang="en", hreflang="es" and hreflang="x-default" tags.
Frequently asked questions
Hreflang must be reciprocal?
Yes. Every version must list all versions including itself, or Google may ignore the set.
Language code format?
ISO 639-1 (en, es) optionally with region (en-gb, es-mx).