Hreflang Tag Generator
Create hreflang tags for multi-language and multi-regional websites
Language & Region Versions
Version #1
hreflang:en
What are Hreflang Tags?
Hreflang tags tell search engines which language and regional version of a page to show in search results based on the user's location and language preferences.
Format Examples
enEnglish (any region)en-USEnglish for United Statesen-GBEnglish for United Kingdomes-MXSpanish for Mexicox-defaultFallback for unmatched languagesBest Practices
- Include hreflang tags on all language/region versions of a page
- Each page should reference itself and all alternate versions
- Use absolute URLs (include full domain)
- The x-default tag should point to your default/primary language version
- Hreflang tags must be bidirectional (if A links to B, B must link to A)
- Use ISO 639-1 for language codes and ISO 3166-1 Alpha 2 for region codes
- Validate your hreflang implementation with Google Search Console