Choose Language and Region Codes for hreflang

GEO Optimizations

Choosing an hreflang value means choosing for the annotation system in use. Google documents a supported subset for its hreflang annotations, while W3C describes the broader BCP 47 language-tag framework. Keep those scopes distinct as you decide whether a language alone is enough or a region adds a useful distinction. Google’s localized versions guidance · W3C language tags

Compare the two code scopes

Use the rule that matches the intended annotation
QuestionGoogle hreflangGeneral language tagging
What does it cover?Google says its annotations support language subtags from ISO 639-1 and optional region subtags from ISO 3166-1 Alpha 2. Google guidanceW3C describes language-tag syntax as BCP 47. That broader framework does not itself establish that every tag is supported by Google. W3C guidance
Can I add a region?An optional region must use the documented two-letter ISO 3166-1 Alpha 2 form. Google guidanceW3C advises keeping tags short and omitting region or script subtags when they add no useful distinction. W3C guidance
Does a valid general tag always qualify?No. Google explicitly lists es-419 as unsupported for its hreflang annotations. Google guidanceBCP 47 is the general syntax framework described by W3C; apply the target system’s own support rules separately. W3C guidance
How should the value be cased?Google accepts lowercase and uppercase values; uppercase alphabetic region codes follow the convention shown in its examples, such as en-GB. Google guidanceThis article uses the Google examples to show casing; consult the applicable tag guidance for other contexts. W3C guidance

When to include a region

Start with the language subtag. Add a region only when it distinguishes the localized version in a useful way; W3C’s rule of keeping language tags short supports avoiding region labels by default. For Google hreflang, check that the language is in ISO 639-1 and any region is in ISO 3166-1 Alpha 2. W3C guidance · Google guidance

Check a proposed value before release

  1. Identify the annotation system the page is intended to use.
  2. Select a language subtag that meets Google’s documented ISO 639-1 requirement when the annotation is for Google hreflang.
  3. Add a region only if it provides a useful distinction, and verify the ISO 3166-1 Alpha 2 format.
  4. Compare the complete value with the target system’s support rules. Do not infer Google support from BCP 47 syntax alone; Google lists es-419 as unsupported.
  5. Use consistent region casing in your markup. Google accepts either case and demonstrates uppercase alphabetic region codes.

Keep the validation record scoped

Record the intended system, selected value, reason for including a region, and the source rule used to check it. This makes it easier to revisit the choice if the page’s localization purpose changes. See the multilingual schema markup page for the site’s related coverage; that page concerns structured data rather than the code-selection rules in this guide.

These sources explain Google’s supported hreflang code categories and W3C’s general BCP 47 framework, but they do not provide a complete current list of every code. This guide does not establish support in other systems, ranking outcomes, traffic changes, or whether a particular localized page will be selected.

Primary sources: Google Search Central, Localized Versions of your Pages, https://developers.google.com/search/docs/specialty/international/localized-versions; W3C Internationalization, Language tags in HTML and XML, https://www.w3.org/International/articles/language-tags/.