HTML ISO Country Code (ISO 639-1)

Last Updated:

What is ISO Country Code?

International Organization for Standardization(ISO) has published a Standard way for defining countries with Codes in abbreviations.

This ISO Country codes is strictly followed by Google to define which country the corresponding webpage belongs to.

There are different versions of ISO Country codes like ISO 639-1, ISO 639-2/T, ISO 639-2/B, ISO 639-3. But Google strictly recommended to use ISO 639-1.

Where to Specify?

The ISO Country codes should be specified in the current page and the external page linked to the current page using <link>.

How to Specify?

There are 2 attributes that helps you to specify the Country Code of a page. They are

  • lang - To specify the Country Code of the current page.
  • hreflang - To specify the Country Code of the external page linked to the current page using <link>.

Example

HTML Online Editor
<!DOCTYPE html> <html lang="en-CA"> <body> <link rel="alternate" href="http://example.com/en-AU" hreflang="en-AU"> </body> </html>

Note: In the above example, en refers to the language code. Whereas CA and AU refer to the Country Code.

It is to be noted that when you have specific url's for English speakers in Australia(en-au), Canada(en-ca) etc. then the Language code should be followed by the Country code.

ISO Country code(ISO 639-1)

The following table comprise of ISO Country code(ISO 639-1).

CountryISO code
afghanistanaf
albaniaal
algeriadz
american samoaas
andorraad
angolaao
antarcticaaq
antigua and barbudaag
argentinaar
armeniaam
arubaaw
australiaau
austriaat
azerbaijanaz
bahamasbs
bahrainbh
bangladeshbd
barbadosbb
belarusby
belgiumbe
belizebz
beninbj
bermudabm
bhutanbt
boliviabo
bosnia and herzegovinaba
botswanabw
bouvet islandbv
brazilbr
british indian ocean territoryio
brunei darussalambn
bulgariabg
burkina fasobf
burundibi
cambodiakh
camerooncm
canadaca
cape verdecv
cayman islandsky
central african republiccf
chadtd
chilecl
chinacn
christmas islandcx
cocos (keeling) islandscc
colombiaco
comoroskm
congocg
congo, the democratic republic of thecd
cook islandsck
costa ricacr
côte d'ivoireci
croatiahr
cubacu
cypruscy
czech republiccz
denmarkdk
djiboutidj
dominicadm
dominican republicdo
ecuadorec
egypteg
el salvadorsv
equatorial guineagq
eritreaer
estoniaee
ethiopiaet
falkland islands (malvinas)fk
faroe islandsfo
fijifj
finlandfi
francefr
french guianagf
french polynesiapf
french southern territoriestf
gabonga
gambiagm
georgiage
germanyde
ghanagh
gibraltargi
greecegr
greenlandgl
grenadagd
guadeloupegp
guamgu
guatemalagt
guineagn
guinea-bissaugw
guyanagy
haitiht
heard island and mcdonald islandshm
hondurashn
hong konghk
hungaryhu
icelandis
indiain
indonesiaid
iran, islamic republic ofir
iraqiq
irelandie
israelil
italyit
jamaicajm
japanjp
jordanjo
kazakhstankz
kenyake
kiribatiki
korea, democratic people's republic ofkp
korea, republic ofkr
kuwaitkw
kyrgyzstankg
lao people's democratic republic(laos)la
latvialv
lebanonlb
lesothols
liberialr
libyan arab jamahiriyaly
liechtensteinli
lithuanialt
luxembourglu
macaomo
macedonia, the former yugoslav republic ofmk
madagascarmg
malawimw
malaysiamy
maldivesmv
maliml
maltamt
marshall islandsmh
martiniquemq
mauritaniamr
mauritiusmu
mayotteyt
mexicomx
micronesia, federated states offm
moldova, republic ofmd
monacomc
mongoliamn
montenegrome
montserratms
moroccoma
mozambiquemz
myanmarmm
namibiana
naurunr
nepalnp
netherlandsnl
netherlands antillesan
new caledonianc
new zealandnz
nicaraguani
nigerne
nigeriang
niuenu
norfolk islandnf
northern mariana islandsmp
norwayno
omanom
pakistanpk
palaupw
palestinian territory, occupiedps
panamapa
papua new guineapg
paraguaypy
perupe
philippinesph
pitcairnpn
polandpl
portugalpt
puerto ricopr
qatarqa
réunionre
romaniaro
russian federationru
rwandarw
saint helenash
saint kitts and neviskn
saint lucialc
saint pierre and miquelonpm
saint vincent and the grenadinesvc
samoaws
san marinosm
sao tome and principest
saudi arabiasa
senegalsn
serbiars
seychellessc
sierra leonesl
singaporesg
slovakiask
sloveniasi
solomon islandssb
somaliaso
south africaza
south georgia and the south sandwich islandsgs
spaines
sri lankalk
sudansd
surinamesr
svalbard and jan mayensj
swazilandsz
swedense
switzerlandch
syrian arab republicsy
taiwantw
tajikistantj
tanzania, united republic oftz
thailandth
timor-lestetl
togotg
tokelautk
tongato
trinidad and tobagott
tunisiatn
turkeytr
turkmenistantm
turks and caicos islandstc
tuvalutv
ugandaug
ukraineua
united arab emiratesae
united kingdomgb
united statesus
united states minor outlying islandsum
uruguayuy
uzbekistanuz
vanuatuvu
venezuelave
viet namvn
virgin islands, britishvg
virgin islands, u.s.vi
wallis and futunawf
western saharaeh
yemenye
zambiazm
zimbabwezw

Share this Page

Meet the Author