2ClickKit

ISO 639 Language Code Validator & BCP 47 Builder

Files Never Leave Your Device

Authoritative reference for ISO 639-1 and 639-2 language codes, native endonyms, RTL/LTR text directionality, and BCP 47 locale assembly.

ISO 639 Language Code Validator & BCP 47 Builder

Search ISO 639-1 (Alpha-2) & 639-2 (Alpha-3) codes, audit RTL/LTR directionality, and assemble BCP 47 locale tags.

639-1639-2/T639-2/BEnglish NameNative EndonymDirectionScriptAction
enengengEnglishEnglishLTRLatin
esspaspaSpanishEspañolLTRLatin
frfrafreFrenchFrançaisLTRLatin
dedeugerGermanDeutschLTRLatin
zhzhochiChinese (Mandarin)中文LTRSimplified / Traditional Han
jajpnjpnJapanese日本語LTRKanji / Hiragana / Katakana
araraaraArabicالعربيةRTLArabic
hihinhinHindiहिन्दीLTRDevanagari
rurusrusRussianРусскийLTRCyrillic
ptporporPortuguesePortuguêsLTRLatin
ititaitaItalianItalianoLTRLatin
kokorkorKorean한국어LTRHangul
nlnlddutDutchNederlandsLTRLatin
plpolpolPolishPolskiLTRLatin
trturturTurkishTürkçeLTRLatin
svswesweSwedishSvenskaLTRLatin
hehebhebHebrewעבריתRTLHebrew
idindindIndonesianBahasa IndonesiaLTRLatin
vivievieVietnameseTiếng ViệtLTRLatin
fafasperPersian (Farsi)فارسیRTLPerso-Arabic
ururdurdUrduاردوRTLNastaliq Arabic
ththathaThaiไทยLTRThai
elellgreGreekΕλληνικάLTRGreek
cscesczeCzechČeštinaLTRLatin
dadandanDanishDanskLTRLatin
fifinfinFinnishSuomiLTRLatin
huhunhunHungarianMagyarLTRLatin
nonornorNorwegianNorskLTRLatin
roronrumRomanianRomânăLTRLatin
ukukrukrUkrainianУкраїнськаLTRCyrillic
bnbenbenBengaliবাংলাLTRBengali
tatamtamTamilதமிழ்LTRTamil
teteltelTeluguతెలుగుLTRTelugu
mrmarmarMarathiमराठीLTRDevanagari
papanpanPunjabiਪੰਜਾਬੀLTRGurmukhi
gugujgujGujaratiગુજરાતીLTRGujarati
knkankanKannadaಕನ್ನಡLTRKannada
mlmalmalMalayalamമലയാളംLTRMalayalam
msmsamayMalayBahasa MelayuLTRLatin
swswaswaSwahiliKiswahiliLTRLatin
amamhamhAmharicአማርኛLTRGeʽez
bgbulbulBulgarianБългарскиLTRCyrillic
hrhrvhrvCroatianHrvatskiLTRLatin
srsrpsrpSerbianСрпскиLTRCyrillic / Latin
skslksloSlovakSlovenčinaLTRLatin
slslvslvSlovenianSlovenščinaLTRLatin
ltlitlitLithuanianLietuviųLTRLatin
lvlavlavLatvianLatviešuLTRLatin
etestestEstonianEestiLTRLatin
isisliceIcelandicÍslenskaLTRLatin
gaglegleIrishGaeilgeLTRLatin
cycymwelWelshCymraegLTRLatin
eueusbaqBasqueEuskaraLTRLatin
cacatcatCatalanCatalàLTRLatin
glglgglgGalicianGalegoLTRLatin
afafrafrAfrikaansAfrikaansLTRLatin
sqsqialbAlbanianShqipLTRLatin
hyhyearmArmenianՀայերենLTRArmenian
azazeazeAzerbaijaniAzərbaycanLTRLatin
kakatgeoGeorgianქართულიLTRGeorgian
kkkazkazKazakhҚазақ тіліLTRCyrillic / Latin
uzuzbuzbUzbekOʻzbekchaLTRLatin
mnmonmonMongolianМонголLTRCyrillic
nenepnepNepaliनेपालीLTRDevanagari
sisinsinSinhalaසිංහලLTRSinhala
mymyaburBurmeseမြန်မာစာLTRBurmese
kmkhmkhmKhmerខ្មែរLTRKhmer
lolaolaoLaoລາວLTRLao
tltgltglTagalog (Filipino)Wikang TagalogLTRLatin
hahauhauHausaHarshen HausaLTRLatin
yoyoryorYorubaÈdè YorùbáLTRLatin
igiboiboIgboAsụsụ IgboLTRLatin
zuzulzulZuluisiZuluLTRLatin
xhxhoxhoXhosaisiXhosaLTRLatin
sosomsomSomaliAf-SoomaaliLTRLatin
yiyidyidYiddishייִדישRTLHebrew
pspuspusPashtoپښتوRTLArabic
kukurkurKurdishKurdî / کوردیLTRLatin / Arabic
sdsndsndSindhiسنڌيRTLArabic / Devanagari
uguiguigUyghurئۇيغۇرچەRTLArabic
lalatlatLatinLatīnaLTRLatin
eoepoepoEsperantoEsperantoLTRLatin

Technical Architecture of the ISO 639 Language Code Standard

In software internationalization (i18n), localization (l10n), and content delivery networks, accurately identifying the human language of a payload is crucial. A web browser cannot correctly synthesize text-to-speech audio, apply hyphenation dictionaries, format pluralization rules, or mirror bidirectional layouts without an unambiguous language identifier.

To standardize this taxonomy, the International Organization for Standardization published ISO 639: Codes for the Representation of Names of Languages. Administered by the Library of Congress and Infoterm, ISO 639 forms the foundational vocabulary for the World Wide Web Consortium (W3C), the Internet Engineering Task Force (IETF), and the Unicode Consortium.

Evolution of the ISO 639 Hierarchy

The ISO 639 family is divided into distinct parts designed to balance compact efficiency with universal linguistic coverage:

Standard Part Code Length Linguistic Scope Primary Technical Domain
ISO 639-1 (Part 1) 2 letters (Alpha-2) 184 major world languages with significant published literature Web HTML lang tags, POS terminal language selection (EMV Tag 5F2D), HTTP Accept-Language headers.
ISO 639-2 (Part 2) 3 letters (Alpha-3) 460+ languages; divided into Terminological (/T) and Bibliographic (/B) variants Library cataloging (MARC standards), film audio track metadata, operating system locale definitions.
ISO 639-3 (Part 3) 3 letters (Alpha-3) 7,800+ known human living, extinct, ancient, and historic languages Linguistic taxonomy, ethnologue research, endangered language documentation, Unicode CLDR.
ISO 639-5 (Part 5) 3 letters (Alpha-3) Language families and groups (e.g. gem for Germanic, sla for Slavic) Linguistic phylogeny and archival classification.

The Terminological (/T) vs Bibliographic (/B) Dualism

One of the most frequent points of confusion for software engineers working with ISO 639-2 is the existence of two separate codes for twenty prominent languages.

When ISO 639-2 was drafted in 1998, national libraries in the English-speaking world (such as the United States Library of Congress) had already cataloged millions of books using legacy three-letter English abbreviations. Simultaneously, international standards organizations insisted that language codes should reflect the native names (endonyms) used by the speakers themselves.

To prevent breaking library systems while enabling linguistic purity, ISO 639-2 compromised by establishing two distinct code sets:

Language Native Endonym ISO 639-1 ISO 639-2/T (Terminological) ISO 639-2/B (Bibliographic)
German Deutsch de deu (from Deutsch) ger (from German)
French Français fr fra (from Français) fre (from French)
Chinese 中文 (Zhongwen) zh zho (from Zhongwen) chi (from Chinese)
Dutch Nederlands nl nld (from Nederlands) dut (from Dutch)
Greek Ελληνικά (Ellinika) el ell (from Ellinika) gre (from Greek)
Czech Čeština cs ces (from Čeština) cze (from Czech)

Engineering Rule: When building modern web applications, REST APIs, or database schemas, always prioritize the terminological (/T) code element (e.g. deu, fra, zho). The IETF BCP 47 registry officially aliases bibliographic codes to their terminological counterparts.

IETF BCP 47 (RFC 5646): The Gold Standard for Web Locales

In practical web engineering, language cannot be isolated from writing script and geographical culture. For instance, Mandarin Chinese can be written in either Simplified characters (common in Mainland China and Singapore) or Traditional characters (universal in Taiwan and Hong Kong). Similarly, Canadian French (fr-CA) differs substantially in vocabulary and financial formatting from Metropolitan French (fr-FR).

To address this, the Internet Engineering Task Force published BCP 47 (Tags for Identifying Languages), currently codified in RFC 5646. A BCP 47 language tag combines multiple international standards into a unified hyphen-delimited token:

[language] - [script] - [region] - [variant]

Examples:
zh-Hans-CN : Chinese (zh = ISO 639-1) written in Simplified script (Hans = ISO 15924) in China (CN = ISO 3166-1)
zh-Hant-TW : Chinese written in Traditional script (Hant) in Taiwan (TW)
en-GB      : English (en) in the United Kingdom (GB)
pt-BR      : Portuguese (pt) in Brazil (BR)
sr-Latn-RS : Serbian (sr) written in Latin script (Latn) in Serbia (RS)
ar-EG      : Arabic (ar) in Egypt (EG)

Right-to-Left (RTL) Layout and the Unicode Bidirectional Algorithm (UBA)

Linguistic diversity extends beyond character shapes to reading direction. Languages written from right to left—such as Arabic, Hebrew, Persian (Farsi), Urdu, Pashto, Yiddish, and Uyghur—require browsers to alter layout, navigation order, and alignment.

The Unicode Consortium specifies the Unicode Bidirectional Algorithm (UBA) in Unicode Standard Annex #9. In HTML and CSS architecture:

  1. Document-Level Direction: Every HTML page targeting an RTL audience must specify dir="rtl" on the root <html> element alongside the language tag:
    <!DOCTYPE html>
    <html lang="ar" dir="rtl">
    <head>...</head>
    <body>...</body>
    </html>
  2. Bidirectional Text Isolation: When displaying user-generated content or embedding Latin words and telephone numbers inside an RTL paragraph, always enclose dynamic text inside <bdi> (Bi-directional Isolation) tags or apply CSS unicode-bidi: isolate; to prevent neutral punctuation characters (periods, parentheses, exclamation marks) from visually jumping to the opposite end of the sentence.
  3. CSS Logical Properties for Multi-Directional Design: Stop using physical directional rules (margin-left, left: 0). Adopt W3C CSS Logical Properties:
    /* Legacy Physical CSS (Breaks in RTL): */
    .card-icon {
      margin-right: 1rem;
      float: left;
    }
    
    /* Modern W3C Logical CSS (Mirrors automatically): */
    .card-icon {
      margin-inline-end: 1rem;
      float: inline-start;
    }

EMV Smart Card Language Preference (Tag 5F2D)

Under EMV Book 4, a smart card stores the cardholder preferred languages in Tag 5F2D (Language Preference) as an array of 1 to 4 two-letter ISO 639-1 alphanumeric codes (e.g., 656E6672 for "enfr"). During application selection, the POS terminal inspects Tag 5F2D, compares it against the terminal installed languages, and automatically renders screen prompts in the customer preferred tongue!

Sanitization and Validation Best Practices in Backend APIs

When ingesting language headers or form inputs in backend web servers (Node.js, Go, Python, Java):

  • Parse HTTP Accept-Language headers (e.g. fr-CH, fr;q=0.9, en;q=0.8, *;q=0.5) using standard RFC 5646 quality weight algorithms.
  • Normalize language codes to lowercase (e.g. en) and region subtags to uppercase (e.g. US) to ensure consistent database indexing.
  • Always provide a graceful fallback to a default locale (typically en-US or the application host country) when an unsupported language tag is received.

How to Use ISO 639 Language Code Validator

  1. Search by Code or Language Name

    Filter 150+ international languages by 2-letter ISO 639-1 (en, fr, ar), 3-letter ISO 639-2 (eng, fra, ara), or native endonym.

  2. Verify Text Directionality & Script

    Inspect script systems and verify whether languages require Right-to-Left (RTL) or Left-to-Right (LTR) bidirectional layout rules.

  3. Build IETF BCP 47 Tags & Test Layout

    Switch to the BCP 47 Sandbox to combine language, script, and region subtags and test real-time HTML/CSS bidirectional rendering.

Authoritative BCP 47 Tag Construction Example

Language & Region
Arabic (ar) in Egypt (EG)
Constructed BCP 47 Locale
Tag: ar-EG | Direction: RTL (Right-to-Left) | HTML: <html lang="ar-EG" dir="rtl">

Validated deterministically in browser RAM per RFC 5646 rules.

Technical Specifications

  • Supported Inputs: ISO 639-1 (Alpha-2: en, fr, de), ISO 639-2/T (Terminological: eng, fra, deu), ISO 639-2/B (Bibliographic: fre, ger), IETF BCP 47 Locale Tags (RFC 5646)
  • Input Limit: Complete 150+ international languages and scripts
  • Processing Engine: 100% In-Browser (Instant Memory Search + BCP 47 Builder)
  • Content Uploads: None (Your files and text are processed locally on your device with zero uploads)

Privacy & Security Guarantee

Your Linguistic codes, native endonyms, and text directionality are processed entirely in your web browser's memory using native client-side web technologies. Unlike traditional cloud tools, your content is never uploaded to remote servers, stored on external disks, or analyzed by third parties.

2ClickKit In-Browser vs Traditional Cloud Tools

Feature 2ClickKit (In-Browser) Traditional Cloud Services
Data Privacy Files never leave your local device Uploaded to remote servers and third-party clouds
Processing Speed Instant local execution (0ms upload time) Constrained by internet upload & server processing queues
Account & Costs 100% Free with zero registration or paywalls Tiered subscriptions, limits, or forced sign-ups

Best Practices & Tips

  • In HTML, always set the lang attribute on the <html> root element using compliant BCP 47 notation (e.g. <html lang="en-US">).
  • When supporting Arabic or Hebrew, adopt CSS Logical Properties (margin-inline-start instead of margin-left) to enable effortless RTL support.
  • For ISO 639-2 three-letter codes, always prioritize terminological (/T) codes (deu, fra) over legacy bibliographic (/B) codes (ger, fre).

Frequently Asked Questions

What is the ISO 639 standard and how are its parts organized?

ISO 639 is a set of international standards published by the International Organization for Standardization (ISO) that lists short codes for the representation of language names. It consists of six parts: ISO 639-1 (two-letter Alpha-2 codes for major world languages, e.g., en, es, zh); ISO 639-2 (three-letter Alpha-3 codes divided into terminological /T and bibliographic /B codes); ISO 639-3 (comprehensive three-letter codes covering all 7,000+ known human living, extinct, ancient, and constructed languages); and ISO 639-5 (language families and groups).

What is the difference between ISO 639-2/T and ISO 639-2/B?

In ISO 639-2, twenty languages possess two separate three-letter codes: a Terminological code (/T) derived from the native language endonym, and a Bibliographic code (/B) derived from the English name. For example, German is deu (/T, from Deutsch) and ger (/B, from German); French is fra (/T, from Français) and fre (/B, from French); Chinese is zho (/T, from Zhongwen) and chi (/B, from Chinese). For modern software engineering and IETF BCP 47 tags, the /T terminological code is always preferred.

What is an IETF BCP 47 language tag and how is it structured?

Best Current Practice 47 (BCP 47), standardized in IETF RFC 5646, specifies the syntax for locale identification on the World Wide Web. A BCP 47 tag follows the structure: language-script-region-variant (e.g., en-US for US English; zh-Hans-CN for Simplified Chinese in Mainland China; pt-BR for Brazilian Portuguese; ar-EG for Egyptian Arabic). Software environments like Android, iOS, Windows, Java, and the HTML lang attribute rely exclusively on BCP 47 tags.

Which languages use Right-to-Left (RTL) text direction?

Over 1 billion people speak languages written from right to left. Prominent RTL languages include Arabic (ar / ara), Hebrew (he / heb), Persian/Farsi (fa / fas), Urdu (ur / urd), Pashto (ps / pus), Yiddish (yi / yid), Sindhi (sd / snd), and Uyghur (ug / uig). In HTML documents, declaring dir="rtl" on the root or container element is mandatory for correct cursor navigation, punctuation wrapping, and layout mirroring.

Why must web applications declare both lang and dir attributes?

Declaring <html lang="ar" dir="rtl"> informs browser rendering engines, screen readers, and search engine crawlers of the linguistic context. The lang attribute guides text-to-speech pronunciation dictionaries, automatic hyphenation engines, and spellcheckers. The dir attribute activates the browser native bidirectional layout algorithm, switching margin and padding directions and ensuring that numbers and Latin words embedded in RTL sentences flow logically.

What are CSS Logical Properties and how do they relate to ISO 639?

Traditional CSS uses physical dimensions: margin-left, padding-right, text-align: left. In multi-lingual applications supporting both LTR and RTL scripts, modern CSS adopts logical properties: margin-inline-start, margin-inline-end, padding-inline-start, and text-align: start. When the HTML dir attribute toggles between ltr and rtl based on the user ISO 639 language preference, logical properties mirror automatically without writing duplicate CSS overrides.

Can I export the complete ISO 639 language dataset for my localization system?

Yes. 2ClickKit provides 100% client-side instant downloads of our verified language dataset in both JSON and CSV formats. The export contains ISO 639-1, 639-2/T, 639-2/B codes, English names, native endonyms, text directions, primary scripts, and linguistic families with zero server calls or rate limits.