In development

Hreflang Tag Generator

Advertisement

Fallback URL when no specific language match is found

About hreflang tags

  • Hreflang tags tell search engines which language/region version to serve to users
  • Place these tags in the <head> section of your HTML
  • Use language codes (en, es) or language-region codes (en-US, es-MX)
  • Each language version should include hreflang tags pointing to all other versions
  • The x-default tag specifies a fallback page when no match is found

Implementation tips

  • Use ISO 639-1 language codes (2 letters) and ISO 3166-1 Alpha 2 country codes
  • Hreflang tags must be bidirectional (each page must link to all others)
  • URLs should be absolute, including protocol (https://)
  • Self-referencing hreflang is required on each page
  • Alternative: Use HTTP headers or XML sitemaps for hreflang