HTML Language Codes

The ISO codes needed for the lang attribute in HTML

Spanish language on a chalkboard
Spanish characters can be easily added to a website.

At the start of your HTML page, you should define the language in which that page is written. This does not mean the coding language, like HTML or PHP, but rather the human language in which the text of the page is written.  For instance, if your content is in the English language, you would use the following:

<html lang="en">

This "lang" attribute, which is added onto the opening HTML tag, tells the browser that the page itself is written in English.

Different languages each have their own unique codes that you would use.

Below is a list of these language codes that you can use in your "lang" attribute on the html tag to define the language of your HTML  document.

Name of LanguageISO 639-1 Code
Afaraa
Abkhazianab
Afrikaansaf
Akanak
Albaniansq
Amharicam
Arabicar
Aragonesean
Armenianhy
Assameseas
Avaricav
Avestanae
Aymaraay
Azerbaijaniaz
Bashkirba
Bambarabm
Basqueeu
Belarusianbe
Bengalibn
Biharibh
Bislamabi
Tibetanbo
Bosnianbs
Bretonbr
Bulgarianbg
Burmesemy
Catalan; Valencianca
Czechcs
Chamorroch
Chechence
Chinesezh
Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavoniccu
Chuvashcv
Cornishkw
Corsicanco
Creecr
Welshcy
Czechcs
Danishda
Germande
Divehi; Dhivehi; Maldiviandv
Dutch; Flemishnl
Dzongkhadz
Greek, Modern (1453-)el
Englishen
Esperantoeo
Estonianet
Basqueeu
Eweee
Faroesefo
Persianfa
Fijianfj
Finnishfi
Frenchfr
Western Frisianfy
Fulahff
Georgianka
Germande
Gaelic; Scottish Gaelicgd
Irishga
Galiciangl
Manxgv
Greek, Modern (1453-)el
Guaranign
Gujaratigu
Haitian; Haitian Creoleht
Hausaha
Hebrewhe
Hererohz
Hindihi
Hiri Motuho
Croatianhr
Hungarianhu
Armenianhy
Igboig
Icelandicis
Idoio
Sichuan Yiii
Inuktitutiu
Interlingueie
Interlingua (International Auxiliary Language Association)ia
Indonesianid
Inupiaqik
Icelandicis
Italianit
Javanesejv
Japaneseja
Kalaallisut; Greenlandickl
Kannadakn
Kashmiriks
Georgianka
Kanurikr
Kazakhkk
Central Khmerkm
Kikuyu; Gikuyuki
Kinyarwandarw
Kirghiz; Kyrgyzky
Komikv
Kongokg
Koreanko
Kuanyama; Kwanyamakj
Kurdishku
Laolo
Latinla
Latvianlv
Limburgan; Limburger; Limburgishli
Lingalaln
Lithuanianlt
Luxembourgish; Letzeburgeschlb
Luba-Katangalu
Gandalg
Macedonianmk
Marshallesemh
Malayalamml
Maorimi
Marathimr
Malayms
Macedonianmk
Malagasymg
Maltesemt
Moldavianmo
Mongolianmn
Maorimi
Malayms
Burmesemy
Nauruna
Navajo; Navahonv
Ndebele, South; South Ndebelenr
Ndebele, North; North Ndebelend
Ndongang
Nepaline
Dutch; Flemishnl
Norwegian Nynorsk; Nynorsk, Norwegiannn
Bokmål, Norwegian; Norwegian Bokmålnb
Norwegianno
Chichewa; Chewa; Nyanjany
Occitan (post 1500); Provençaloc
Ojibwaoj
Oriyaor
Oromoom
Ossetian; Osseticos
Panjabi; Punjabipa
Persianfa
Palipi
Polishpl
Portuguesept
Pushtops
Quechuaqu
Romanshrm
Romanianro
Romanianro
Rundirn
Russianru
Sangosg
Sanskritsa
Serbiansr
Croatianhr
Sinhala; Sinhalesesi
Slovaksk
Slovaksk
Sloveniansl
Northern Samise
Samoansm
Shonasn
Sindhisd
Somaliso
Sotho, Southernst
Spanish; Castilianes
Albaniansq
Sardiniansc
Serbiansr
Swatiss
Sundanesesu
Swahilisw
Swedishsv
Tahitianty
Tamilta
Tatartt
Telugute
Tajiktg
Tagalogtl
Thaith
Tibetanbo
Tigrinyati
Tonga (Tonga Islands)to
Tswanatn
Tsongats
Turkmentk
Turkishtr
Twitw
Uighur; Uyghurug
Ukrainianuk
Urduur
Uzbekuz
Vendave
Vietnamesevi
Volapükvo
Welshcy
Walloonwa
Wolofwo
Xhosaxh
Yiddishyi
Yorubayo
Zhuang; Chuangza
Chinesezh
Zuluzu

 

Characters for Specific Languages and Uses

Czech, Slovak, and Slovenian | French | German | ​Greek | Hawaiian | Italian | Polish | Romanian | Russian (Cyrillic) | Spanish | Turkish

Original article by Jennifer Krynin. Edited on 8/24/16 by Jeremy Girard