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 States
en-GBEnglish for United Kingdom
es-MXSpanish for Mexico
x-defaultFallback for unmatched languages

Best 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