FreeToGenerate.com

Twenty languages have two official three-letter codes. Here is which one to send.

Shown 487 / 487

Click any code to copy it

Language639-1639-2/B639-2/TUse this
Afar—aa
Abkhazian—ab
Achinesenone—ace
Acolinone—ach
Adangmenone—ada
Adyghe; Adygeinone—ady
Afro-Asiatic languagesnone—afa
Afrihilinone—afh
Afrikaans—af
Ainunone—ain
Akan—ak
Akkadiannone—akk
Albaniansq
Aleutnone—ale
Algonquian languagesnone—alg
Southern Altainone—alt
Amharic—am
English, Old (ca.450-1100)none—ang
Angikanone—anp
Apache languagesnone—apa
Arabic—ar
Official Aramaic (700-300 BCE); Imperial Aramaic (700-300 BCE)none—arc
Aragonese—an
Armenianhy
Mapudungun; Mapuchenone—arn
Arapahonone—arp
Artificial languagesnone—art
Arawaknone—arw
Assamese—as
Asturian; Bable; Leonese; Asturleonesenone—ast
Athapascan languagesnone—ath
Australian languagesnone—aus
Avaric—av
Avestan—ae
Awadhinone—awa
Aymara—ay
Azerbaijani—az
Banda languagesnone—bad
Bamileke languagesnone—bai
Bashkir—ba
Baluchinone—bal
Bambara—bm
Balinesenone—ban
Basqueeu
Basanone—bas
Baltic languagesnone—bat
Beja; Bedawiyetnone—bej
Belarusian—be
Bembanone—bem
Bengali—bn
Berber languagesnone—ber
Bhojpurinone—bho
Bihari languagesnone—bih
Bikolnone—bik
Bini; Edonone—bin
Bislama—bi
Siksikanone—bla
Bantu languagesnone—bnt
Bosnian—bs
Brajnone—bra
Breton—br
Batak languagesnone—btk
Buriatnone—bua
Buginesenone—bug
Bulgarian—bg
Burmesemy
Blin; Bilinnone—byn
Caddonone—cad
Central American Indian languagesnone—cai
Galibi Caribnone—car
Catalan; Valencian—ca
Caucasian languagesnone—cau
Cebuanonone—ceb
Celtic languagesnone—cel
Chamorro—ch
Chibchanone—chb
Chechen—ce
Chagatainone—chg
Chinesezh
Chuukesenone—chk
Marinone—chm
Chinook jargonnone—chn
Choctawnone—cho
Chipewyan; Dene Sulinenone—chp
Cherokeenone—chr
Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic—cu
Chuvash—cv
Cheyennenone—chy
Chamic languagesnone—cmc
Montenegrinnone—cnr
Copticnone—cop
Cornish—kw
Corsican—co
Creoles and pidgins, English basednone—cpe
Creoles and pidgins, French-basednone—cpf
Creoles and pidgins, Portuguese-basednone—cpp
Cree—cr
Crimean Tatar; Crimean Turkishnone—crh
Creoles and pidginsnone—crp
Kashubiannone—csb
Cushitic languagesnone—cus
Czechcs
Dakotanone—dak
Danish—da
Dargwanone—dar
Land Dayak languagesnone—day
Delawarenone—del
Slave (Athapascan)none—den
Tlicho; Dogribnone—dgr
Dinkanone—din
Divehi; Dhivehi; Maldivian—dv
Dogrinone—doi
Dravidian languagesnone—dra
Lower Sorbiannone—dsb
Dualanone—dua
Dutch, Middle (ca.1050-1350)none—dum
Dutch; Flemishnl
Dyulanone—dyu
Dzongkha—dz
Efiknone—efi
Egyptian (Ancient)none—egy
Ekajuknone—eka
Elamitenone—elx
English—en
English, Middle (1100-1500)none—enm
Esperanto—eo
Estonian—et
Ewe—ee
Ewondonone—ewo
Fangnone—fan
Faroese—fo
Fantinone—fat
Fijian—fj
Filipino; Pilipinonone—fil
Finnish—fi
Finno-Ugrian languagesnone—fiu
Fonnone—fon
Frenchfr
French, Middle (ca.1400-1600)none—frm
French, Old (842-ca.1400)none—fro
Northern Frisiannone—frr
Eastern Frisiannone—frs
Western Frisian—fy
Fulah—ff
Friuliannone—fur
Ganone—gaa
Gayonone—gay
Gbayanone—gba
Germanic languagesnone—gem
Georgianka
Germande
Geeznone—gez
Gilbertesenone—gil
Gaelic; Scottish Gaelic—gd
Irish—ga
Galician—gl
Manx—gv
German, Middle High (ca.1050-1500)none—gmh
German, Old High (ca.750-1050)none—goh
Gondinone—gon
Gorontalonone—gor
Gothicnone—got
Grebonone—grb
Greek, Ancient (to 1453)none—grc
Modern Greek (1453-)el
Guarani—gn
Swiss German; Alemannic; Alsatiannone—gsw
Gujarati—gu
Gwich'innone—gwi
Haidanone—hai
Haitian; Haitian Creole—ht
Hausa—ha
Hawaiiannone—haw
Hebrew—he
Herero—hz
Hiligaynonnone—hil
Himachali languages; Western Pahari languagesnone—him
Hindi—hi
Hittitenone—hit
Hmong; Mongnone—hmn
Hiri Motu—ho
Croatian—hr
Upper Sorbiannone—hsb
Hungarian—hu
Hupanone—hup
Ibannone—iba
Igbo—ig
Icelandicis
Ido—io
Sichuan Yi; Nuosu—ii
Ijo languagesnone—ijo
Inuktitut—iu
Interlingue; Occidental—ie
Ilokonone—ilo
Interlingua (International Auxiliary Language Association)—ia
Indic languagesnone—inc
Indonesian—id
Indo-European languagesnone—ine
Ingushnone—inh
Inupiaq—ik
Iranian languagesnone—ira
Iroquoian languagesnone—iro
Italian—it
Javanese—jv
Lojbannone—jbo
Japanese—ja
Judeo-Persiannone—jpr
Judeo-Arabicnone—jrb
Kara-Kalpaknone—kaa
Kabylenone—kab
Kachin; Jingphonone—kac
Kalaallisut; Greenlandic—kl
Kambanone—kam
Kannada—kn
Karen languagesnone—kar
Kashmiri—ks
Kanuri—kr
Kawinone—kaw
Kazakh—kk
Kabardiannone—kbd
Khasinone—kha
Khoisan languagesnone—khi
Central Khmer—km
Khotanese; Sakannone—kho
Kikuyu; Gikuyu—ki
Kinyarwanda—rw
Kirghiz; Kyrgyz—ky
Kimbundunone—kmb
Konkaninone—kok
Komi—kv
Kongo—kg
Korean—ko
Kosraeannone—kos
Kpellenone—kpe
Karachay-Balkarnone—krc
Kareliannone—krl
Kru languagesnone—kro
Kurukhnone—kru
Kuanyama; Kwanyama—kj
Kumyknone—kum
Kurdish—ku
Kutenainone—kut
Ladinonone—lad
Lahndanone—lah
Lambanone—lam
Lao—lo
Latin—la
Latvian—lv
Lezghiannone—lez
Limburgan; Limburger; Limburgish—li
Lingala—ln
Lithuanian—lt
Mongonone—lol
Lozinone—loz
Luxembourgish; Letzeburgesch—lb
Luba-Luluanone—lua
Luba-Katanga—lu
Ganda—lg
Luisenonone—lui
Lundanone—lun
Luo (Kenya and Tanzania)none—luo
Lushainone—lus
Macedonianmk
Maduresenone—mad
Magahinone—mag
Marshallese—mh
Maithilinone—mai
Makasarnone—mak
Malayalam—ml
Mandingonone—man
Maorimi
Austronesian languagesnone—map
Marathi—mr
Masainone—mas
Malayms
Mokshanone—mdf
Mandarnone—mdr
Mendenone—men
Irish, Middle (900-1200)none—mga
Mi'kmaq; Micmacnone—mic
Minangkabaunone—min
Uncoded languagesnone—mis
Mon-Khmer languagesnone—mkh
Malagasy—mg
Maltese—mt
Manchunone—mnc
Manipurinone—mni
Manobo languagesnone—mno
Mohawknone—moh
Mongolian—mn
Mossinone—mos
Multiple languagesnone—mul
Munda languagesnone—mun
Creeknone—mus
Mirandesenone—mwl
Marwarinone—mwr
Mayan languagesnone—myn
Erzyanone—myv
Nahuatl languagesnone—nah
North American Indian languagesnone—nai
Neapolitannone—nap
Nauru—na
Navajo; Navaho—nv
South Ndebele—nr
North Ndebele—nd
Ndonga—ng
Low German; Low Saxon; German, Low; Saxon, Lownone—nds
Nepali—ne
Nepal Bhasa; Newar; Newarinone—new
Niasnone—nia
Niger-Kordofanian languagesnone—nic
Niueannone—niu
Norwegian Nynorsk—nn
Norwegian Bokmål—nb
Nogainone—nog
Norse, Oldnone—non
Norwegian—no
N'Konone—nqo
Pedi; Sepedi; Northern Sothonone—nso
Nubian languagesnone—nub
Classical Newari; Old Newari; Classical Nepal Bhasanone—nwc
Chichewa; Chewa; Nyanja—ny
Nyamwezinone—nym
Nyankolenone—nyn
Nyoronone—nyo
Nzimanone—nzi
Occitan (post 1500)—oc
Ojibwa—oj
Oriya—or
Oromo—om
Osagenone—osa
Ossetian; Ossetic—os
Turkish, Ottoman (1500-1928)none—ota
Otomian languagesnone—oto
Papuan languagesnone—paa
Pangasinannone—pag
Pahlavinone—pal
Pampanga; Kapampangannone—pam
Panjabi; Punjabi—pa
Papiamentonone—pap
Palauannone—pau
Persian, Old (ca.600-400 B.C.)none—peo
Persianfa
Philippine languagesnone—phi
Phoeniciannone—phn
Pali—pi
Polish—pl
Pohnpeiannone—pon
Portuguese—pt
Prakrit languagesnone—pra
Provençal, Old (to 1500); Occitan, Old (to 1500)none—pro
Pushto; Pashto—ps
Reserved for local useA range, not a language — 520 codes reserved for private use.none——
Quechua—qu
Rajasthaninone—raj
Rapanuinone—rap
Rarotongan; Cook Islands Maorinone—rar
Romance languagesnone—roa
Romansh—rm
Romanynone—rom
Romanian; Moldavian; Moldovanro
Rundi—rn
Aromanian; Arumanian; Macedo-Romaniannone—rup
Russian—ru
Sandawenone—sad
Sango—sg
Yakutnone—sah
South American Indian languagesnone—sai
Salishan languagesnone—sal
Samaritan Aramaicnone—sam
Sanskrit—sa
Sasaknone—sas
Santalinone—sat
Siciliannone—scn
Scotsnone—sco
Selkupnone—sel
Semitic languagesnone—sem
Irish, Old (to 900)none—sga
Sign Languagesnone—sgn
Shannone—shn
Sidamonone—sid
Sinhala; Sinhalese—si
Siouan languagesnone—sio
Sino-Tibetan languagesnone—sit
Slavic languagesnone—sla
Slovaksk
Slovenian—sl
Southern Saminone—sma
Northern Sami—se
Sami languagesnone—smi
Lule Saminone—smj
Inari Saminone—smn
Samoan—sm
Skolt Saminone—sms
Shona—sn
Sindhi—sd
Soninkenone—snk
Sogdiannone—sog
Somali—so
Songhai languagesnone—son
Sotho, Southern—st
Spanish; Castilian—es
Sardinian—sc
Sranan Tongonone—srn
Serbian—sr
Serernone—srr
Nilo-Saharan languagesnone—ssa
Swati—ss
Sukumanone—suk
Sundanese—su
Susunone—sus
Sumeriannone—sux
Swahili—sw
Swedish—sv
Classical Syriacnone—syc
Syriacnone—syr
Tahitian—ty
Tai languagesnone—tai
Tamil—ta
Tatar—tt
Telugu—te
Timnenone—tem
Terenonone—ter
Tetumnone—tet
Tajik—tg
Tagalog—tl
Thai—th
Tibetanbo
Tigrenone—tig
Tigrinya—ti
Tivnone—tiv
Tokelaunone—tkl
Klingon; tlhIngan-Holnone—tlh
Tlingitnone—tli
Tamasheknone—tmh
Tonga (Nyasa)none—tog
Tonga (Tonga Islands)—to
Tok Pisinnone—tpi
Tsimshiannone—tsi
Tswana—tn
Tsonga—ts
Turkmen—tk
Tumbukanone—tum
Tupi languagesnone—tup
Turkish—tr
Altaic languagesnone—tut
Tuvalunone—tvl
Twi—tw
Tuviniannone—tyv
Udmurtnone—udm
Ugariticnone—uga
Uighur; Uyghur—ug
Ukrainian—uk
Umbundunone—umb
Undeterminednone—und
Urdu—ur
Uzbek—uz
Vainone—vai
Venda—ve
Vietnamese—vi
Volapük—vo
Voticnone—vot
Wakashan languagesnone—wak
Wolaitta; Wolayttanone—wal
Waraynone—war
Washonone—was
Welshcy
Sorbian languagesnone—wen
Walloon—wa
Wolof—wo
Kalmyk; Oiratnone—xal
Xhosa—xh
Yaonone—yao
Yapesenone—yap
Yiddish—yi
Yoruba—yo
Yupik languagesnone—ypk
Zapotecnone—zap
Blissymbols; Blissymbolics; Blissnone—zbl
Zenaganone—zen
Standard Moroccan Tamazightnone—zgh
Zhuang; Chuang—za
Zande languagesnone—znd
Zulu—zu
Zuninone—zun
No linguistic content; Not applicablenone—zxx
Zaza; Dimili; Dimli; Kirdki; Kirmanjki; Zazakinone—zza

The twenty languages with two codes

For these, ISO 639-2 defines two different three-letter codes. Both are official and current.

  • Albanian

    alb from the English name

    sqi from the language’s own name

    What to actually send: sq

  • Armenian

    arm from the English name

    hye from the language’s own name

    What to actually send: hy

  • Basque

    baq from the English name

    eus from the language’s own name

    What to actually send: eu

  • Burmese

    bur from the English name

    mya from the language’s own name

    What to actually send: my

  • Chinese

    chi from the English name

    zho from the language’s own name

    What to actually send: zh

  • Czech

    cze from the English name

    ces from the language’s own name

    What to actually send: cs

  • Dutch; Flemish

    dut from the English name

    nld from the language’s own name

    What to actually send: nl

  • French

    fre from the English name

    fra from the language’s own name

    What to actually send: fr

  • Georgian

    geo from the English name

    kat from the language’s own name

    What to actually send: ka

  • German

    ger from the English name

    deu from the language’s own name

    What to actually send: de

  • Modern Greek (1453-)

    gre from the English name

    ell from the language’s own name

    What to actually send: el

  • Icelandic

    ice from the English name

    isl from the language’s own name

    What to actually send: is

  • Macedonian

    mac from the English name

    mkd from the language’s own name

    What to actually send: mk

  • Maori

    mao from the English name

    mri from the language’s own name

    What to actually send: mi

  • Malay

    may from the English name

    msa from the language’s own name

    What to actually send: ms

  • Persian

    per from the English name

    fas from the language’s own name

    What to actually send: fa

  • Romanian; Moldavian; Moldovan

    rum from the English name

    ron from the language’s own name

    What to actually send: ro

  • Slovak

    slo from the English name

    slk from the language’s own name

    What to actually send: sk

  • Tibetan

    tib from the English name

    bod from the language’s own name

    What to actually send: bo

  • Welsh

    wel from the English name

    cym from the language’s own name

    What to actually send: cy

Languages with no two-letter code

Most languages have no ISO 639-1 code at all, so the three-letter code is the only identifier they have. A two-character column cannot store them.

303 / 486

Also available in: Español · Português · Français · العربية

Language Codes

The complete ISO 639 list with all three code forms, and a straight answer to which one belongs in your markup.

What are ISO language codes?

A language code is the short identifier you put in an HTML lang attribute, a filename, an Accept-Language header or a database column. There are three forms of it. ISO 639-1 is the familiar two-letter code — en, de, fr. ISO 639-2 is three letters, and it covers far more languages. ISO 639-3 goes further still, to roughly seven thousand.

This page lists ISO 639-2 in full, straight from the Library of Congress, which is the registration authority for the standard. That is 487 rows: 486 languages plus one entry that is not a language at all, which the table flags. Each row shows its two-letter code where one exists, both of its three-letter codes, and which one you should actually use.

That last column exists because of something the standard does that catches people out: for twenty languages there are two different three-letter codes, both official, both current. Neither is a typo or a legacy alias.

How to use this page

  1. Search by name or by any of the three codes. Typing “de”, “ger”, “deu” or “German” all land on the same row, and so does the name in your own language. Exact code matches rank first, which matters because “is” is Icelandic’s code and also a substring of dozens of language names.
  2. Tick the filter to see only the ambiguous twenty. Those are the languages where the two three-letter codes differ. The list below the table shows each pair side by side with the reason they differ.
  3. Read the “use this” column and copy from it. It gives the two-letter code when one exists and the terminological three-letter code otherwise — which is what BCP 47 requires, and therefore what belongs in HTML, HTTP and anything a browser reads.

Why twenty languages have two codes

ISO 639-2 assigns codes on two different principles and, for twenty languages, they disagree. The bibliographic code follows the language’s English name: German is ger, French is fre, Chinese is chi, Dutch is dut, Welsh is wel. The terminological code follows what speakers call the language themselves: Deutsch gives deu, français gives fra, Zhōngwén gives zho, Nederlands gives nld, Cymraeg gives cym.

The bibliographic codes exist because library catalogues were built on them long before anyone needed a language tag for a web page, and changing them would have broken every card index in the world. The terminological codes exist because naming a language after what its speakers call it is the better principle. Both survived, so both are current, and which one is “correct” depends on whether you are cataloguing a book or labelling a document.

The full twenty are Albanian, Armenian, Basque, Burmese, Chinese, Czech, Dutch, French, Georgian, German, Greek, Icelandic, Macedonian, Malay, Maori, Persian, Romanian, Slovak, Tibetan and Welsh. Every other language in the standard — 466 of them — has one three-letter code and no ambiguity at all.

There is a pattern worth noticing, and it is not a coincidence: every one of the twenty is a language whose English name differs sharply from its endonym. Nobody had to choose between two codes for Japanese, because jpn works either way.

Which one should you actually use?

For the web, neither. Use the two-letter code, and this is not a preference — it is what the specification says. BCP 47, the standard behind the HTML lang attribute, the Accept-Language header and every browser language API, requires the shortest available subtag. Where a language has an ISO 639-1 code, that code is the only correct tag and the three-letter forms are simply wrong in that context.

That resolves the ambiguity completely, and the reason is a property rather than a coincidence: all twenty of the languages with two three-letter codes also have a two-letter code. We check that rather than assert it, because a single exception would break the rule. So the web never has to choose between ger and deu — it uses de, and both three-letter spellings canonicalise to exactly that, which we also verify.

The ambiguity only reaches you when you work in three-letter codes: MARC records, some subtitle formats, older terminology databases, anything modelled on library practice. There the convention is usually bibliographic, and the safe move is to say in your schema which of the two you mean rather than assuming your reader shares your default.

Honest limits

Most languages have no two-letter code. Only 183 of the 486 do; the other 303 have three letters and nothing shorter. Cebuano, spoken by more than twenty million people, is ceb and has no ISO 639-1 form. So a database column of char(2) cannot store most of the world’s languages, and a language picker built from the two-letter list is quietly excluding the majority of them.

One row in the file is not a language. The entry qaa-qtz is a range, standing for 520 codes reserved for private use — anyone can use them internally for a language the standard does not cover, and none of them will ever be assigned. The table shows it as one row and labels it, rather than pretending it is a language or dropping it silently.

The localized names come from Unicode CLDR, which does not have a name for every entry. The collective codes such as “Bantu languages” and many ancient and constructed languages have no CLDR name in any language, so those rows fall back to the English name from the registration authority. Around 419 of the 486 are named in each language, and the exact figure differs slightly between them — which is what a genuine gap in the data looks like, as opposed to a lookup that is failing.

Finally, this is ISO 639-2 and not 639-3. The larger standard covers roughly seven thousand languages, including nearly every one that has ever been documented, and it is maintained separately by SIL International. If a language you need is missing here, that is where to look.

Why is it free?

Because it is a table and a search box. The whole list is in the page you have already loaded, the search runs in your browser, and nothing you type is sent anywhere.

So there is no account, no sign-up and nothing held back. The generator that builds this from the Library of Congress list and Unicode CLDR is in the repository beside the page, along with the 2,011-assertion test suite that checks the codes, the twenty ambiguous pairs and the BCP 47 property — including the negative controls that stop those tests passing for the wrong reason.