Hreflang Generator & Validator

Instantly build perfect hreflang tags or validate your live pages to ensure global SEO success.

ISO Language & Region Reference

ISO 639-1 (Language)

  • en English
  • es Spanish
  • fr French
  • de German
  • zh Chinese (Simplified)
  • ar Arabic
  • pt Portuguese
  • ru Russian
  • hi Hindi
  • ur Urdu

ISO 3166-1 Alpha-2 (Region)

  • US United States
  • GB United Kingdom
  • CA Canada
  • IN India
  • AU Australia
  • DE Germany
  • FR France
  • ES Spain
  • MX Mexico
  • PK Pakistan
  • AE UAE
  • BR Brazil

Important: Do not combine regions with commas in a single tag. If you target multiple English regions, create a separate <link> tag for each.

What is Hreflang?

Hreflang is an HTML attribute that tells search engines (like Google) which language and regional version of a page they should show to users. For example, if you have an English page for the US and a Spanish page for Mexico, hreflang ensures an American sees the English version and a Mexican user sees the Spanish version.

Common Hreflang Mistakes