List of All Valid Hreflang Language Codes and Country Codes

Valid Hreflang Language Codes and Country Codes

Table of Contents

If you run a multilingual or international website, using the correct hreflang language codes and hreflang country codes is essential. These codes tell search engines which version of a page should appear for users based on their language preferences and geographic location.

Search engines rely on standardized systems such as ISO 639 language codes and ISO 3166 region codes to understand language targeting and regional targeting. When these codes are implemented correctly in the hreflang attribute, search engines can deliver the right page to the right audience.

This guide provides a complete reference of hreflang language codes, hreflang region codes, and country codes used in international SEO. The page also explains how these codes work, how they should be implemented, and how to validate them using a hreflang checker tool.

What Are Hreflang Language Codes

Hreflang language codes are short identifiers used in the hreflang attribute to specify the language of a webpage. These identifiers follow the ISO 639-1 language code standard, which uses two letter codes to represent languages.

Search engines analyze these codes to understand the language of a page and match it with users searching in that language.

Example:

<link rel=”alternate” hreflang=”en” href=”https://example.com/” />

In this example, the language code en indicates that the page is written in English.

If a website has multiple language versions of the same page, hreflang tags help search engines connect those pages together.

Example of multiple language versions:

<link rel=”alternate” hreflang=”en” href=”https://example.com/” />
<link rel=”alternate” hreflang=”es” href=”https://example.com/es/” />
<link rel=”alternate” hreflang=”fr” href=”https://example.com/fr/” />

Search engines can then show the Spanish version to Spanish speaking users and the French version to French speaking users.

Structure of Hreflang Codes

A hreflang code can contain only a language code or a language code combined with a region code.

A simple language code looks like this:

hreflang=”de”

This indicates German language content.

A language and region combination looks like this:

hreflang=”en-us”

In this example:

Language code → en
Country code → us

The structure therefore follows this format:

Language code
or

Language code + region code

These region identifiers come from ISO-3166-1 country codes, which represent geographic locations.

Complete List of ISO 639 Hreflang Language Codes

The following table includes all ISO 639-1 language codes commonly used for hreflang language targeting.

LanguageCode
Abkhazab
Afaraa
Afrikaansaf
Akanak
Albaniansq
Amharicam
Arabicar
Aragonesean
Armenianhy
Assameseas
Avaricav
Avestanae
Aymaraay
Azerbaijaniaz
Bashkirba
Basqueeu
Belarusianbe
Bengalibn
Bislamabi
Bosnianbs
Bretonbr
Bulgarianbg
Burmesemy
Catalanca
Chamorroch
Chechence
Chinesezh
Chuvashcv
Cornishkw
Corsicanco
Creecr
Croatianhr
Czechcs
Danishda
Dutchnl
Dzongkhadz
Englishen
Esperantoeo
Estonianet
Eweee
Faroesefo
Fijianfj
Finnishfi
Frenchfr
Frisianfy
Fulahff
Gaelicgd
Galiciangl
Gandalg
Georgianka
Germande
Greekel
Greenlandickl
Guaranign
Gujaratigu
Haitianht
Hausaha
Hebrewhe
Hererohz
Hindihi
Hiri Motuho
Hungarianhu
Icelandicis
Igboig
Indonesianid
Interlinguaia
Interlingueie
Inuktitutiu
Inupiakik
Irishga
Italianit
Japaneseja
Javanesejv
Kalaallisutkl
Kannadakn
Kanurikr
Kashmiriks
Kazakhkk
Khmerkm
Kikuyuki
Kinyarwandarw
Kirghizky
Komikv
Kongokg
Koreanko
Kurdishku
Laolo
Latinla
Latvianlv
Limburgishli
Lingalaln
Lithuanianlt
Luxembourgishlb
Macedonianmk
Malagasymg
Malayms
Malayalamml
Maltesemt
Maorimi
Marathimr
Marshallesemh
Mongolianmn
Nauruna
Navajonv
Nepaline
Norwegianno
Occitanoc
Ojibwaoj
Oriyaor
Oromoom
Ossetianos
Palipi
Persianfa
Polishpl
Portuguesept
Punjabipa
Quechuaqu
Romanianro
Russianru
Samoansm
Sanskritsa
Sardiniansc
Serbiansr
Shonasn
Sindhisd
Sinhalasi
Slovaksk
Sloveniansl
Somaliso
Spanishes
Sundanesesu
Swahilisw
Swedishsv
Tagalogtl
Tajiktg
Tamilta
Tatartt
Telugute
Thaith
Tibetanbo
Tigrinyati
Tongato
Turkishtr
Turkmentk
Twitw
Uighurug
Ukrainianuk
Urduur
Uzbekuz
Vietnamesevi
Welshcy
Wolofwo
Xhosaxh
Yiddishyi
Yorubayo
Zhuangza
Zuluzu

These represent the complete set of ISO 639 language codes that can be used for hreflang language targeting.

Hreflang Country Codes and Region Codes

While language codes define the language of a page, hreflang country codes define the geographic region that the page targets. These codes follow the ISO 3166-1 Alpha-2 country code standard.

For example:

hreflang=”en-us”

Here:

Language → English
Region → United States

Example for Canada:

hreflang=”en-ca”

Example for French Canada:

hreflang=”fr-ca”

This allows websites to provide localized content for different countries even if the language is the same.

List of ISO 3166 Hreflang Country Codes

Below is a reference list of ISO 3166-1 country codes used for hreflang region targeting.

CountryCode
AfghanistanAF
AlbaniaAL
AlgeriaDZ
ArgentinaAR
AustraliaAU
AustriaAT
BangladeshBD
BelgiumBE
BrazilBR
BulgariaBG
CanadaCA
ChileCL
ChinaCN
ColombiaCO
CroatiaHR
Czech RepublicCZ
DenmarkDK
EgyptEG
EstoniaEE
FinlandFI
FranceFR
GermanyDE
GreeceGR
Hong KongHK
HungaryHU
IcelandIS
IndiaIN
IndonesiaID
IranIR
IraqIQ
IrelandIE
IsraelIL
ItalyIT
JapanJP
JordanJO
KazakhstanKZ
KenyaKE
KuwaitKW
LatviaLV
LebanonLB
LithuaniaLT
LuxembourgLU
MalaysiaMY
MexicoMX
MoroccoMA
NetherlandsNL
New ZealandNZ
NigeriaNG
NorwayNO
PakistanPK
PeruPE
PhilippinesPH
PolandPL
PortugalPT
QatarQA
RomaniaRO
RussiaRU
Saudi ArabiaSA
SingaporeSG
SlovakiaSK
SloveniaSI
South AfricaZA
South KoreaKR
SpainES
Sri LankaLK
SwedenSE
SwitzerlandCH
ThailandTH
TurkeyTR
UkraineUA
United Arab EmiratesAE
United KingdomGB
United StatesUS
VietnamVN

These codes are used in hreflang tags to indicate the regional audience of a page.

Language and Region Code Examples

When targeting specific regions, language codes and region codes are combined.

Example:

<link rel=”alternate” hreflang=”en-us” href=”https://example.com/us/” />
<link rel=”alternate” hreflang=”en-gb” href=”https://example.com/uk/” />
<link rel=”alternate” hreflang=”en-au” href=”https://example.com/au/” />

This structure allows search engines to differentiate between:

English content for United States
English content for United Kingdom
English content for Australia

Another example for Spanish speaking regions:

hreflang=”es-es”
hreflang=”es-mx”
hreflang=”es-ar”

These represent Spanish content targeting Spain, Mexico, and Argentina.

Why Correct Codes Matter for SEO

Correct hreflang language codes and region codes are essential for international SEO because they help search engines understand multilingual content.

Proper hreflang tag implementation helps prevent duplicate content issues when multiple language versions exist. It also improves search visibility in international markets by ensuring users see the most relevant language version.

For example, if a user in Spain searches for a product, Google should display the Spanish version of the page rather than the English version. Hreflang tags allow search engines to make this distinction.

Accurate language targeting also improves user experience, reduces bounce rates, and increases engagement for global audiences.

Validating Hreflang Codes

After implementing hreflang tags, it is important to verify that the language codes and region codes are valid.

Common errors include:

  • invalid language codes
  • incorrect country codes
  • missing alternate references
  • incorrect page relationships

A hreflang validation tool can scan a webpage and detect these issues.

Using such tools helps ensure that all hreflang language codes, country codes, and region combinations are implemented correctly.

FAQs

What are hreflang language codes?

Hreflang language codes are identifiers used in the hreflang attribute to specify the language of a webpage using the ISO 639 standard.

What country codes are used in hreflang?

Hreflang uses ISO 3166-1 Alpha-2 country codes to indicate geographic targeting.

Can hreflang work with only language codes?

Yes. A page can use only a language code if it targets all users speaking that language regardless of location.

What is x default in hreflang?

The x default value specifies a fallback page when no specific language or region matches the user. Example:
hreflang="x-default"

Lisa B. Kastner

Lisa B. Kastner is an SEO specialist with 10+ years experience in technical SEO, international SEO, and multilingual website optimization.