Big Reference Table

ISO Language Codes Table

Two-letter language codes for the HTML lang attribute — e.g. <html lang="en"> — search to find any language quickly.

CodeLanguageHTML Attribute
enEnglishlang="en"
esSpanishlang="es"
frFrenchlang="fr"
deGermanlang="de"
itItalianlang="it"
ptPortugueselang="pt"
nlDutchlang="nl"
ruRussianlang="ru"
zhChineselang="zh"
jaJapaneselang="ja"
koKoreanlang="ko"
arArabiclang="ar"
hiHindilang="hi"
bnBengalilang="bn"
urUrdulang="ur"
trTurkishlang="tr"
viVietnameselang="vi"
thThailang="th"
idIndonesianlang="id"
msMalaylang="ms"
plPolishlang="pl"
ukUkrainianlang="uk"
roRomanianlang="ro"
elGreeklang="el"
csCzechlang="cs"
svSwedishlang="sv"
daDanishlang="da"
fiFinnishlang="fi"
noNorwegianlang="no"
huHungarianlang="hu"
heHebrewlang="he"
faPersianlang="fa"
swSwahililang="sw"
taTamillang="ta"
teTelugulang="te"
mrMarathilang="mr"
guGujaratilang="gu"
paPunjabilang="pa"
mlMalayalamlang="ml"
knKannadalang="kn"
skSlovaklang="sk"
bgBulgarianlang="bg"
hrCroatianlang="hr"
srSerbianlang="sr"
ltLithuanianlang="lt"
lvLatvianlang="lv"
etEstonianlang="et"
slSlovenianlang="sl"
isIcelandiclang="is"
gaIrishlang="ga"

1How To Use

Follow these steps — no coding experience needed.

  1. Find your languageSearch by name or two-letter code.
  2. Copy the attributeAdd it to your tag: .
  3. Why it mattersScreen readers and translation tools use this attribute to pick the right pronunciation and translation rules.

2Example Output

What this code looks like once it's on a real page.

<html lang="bn"> tells browsers and assistive tech the page is in Bengali.

3Browser Compatibility

BrowserSupportNotes
Chrome✓ SupportedFull support
Firefox✓ SupportedFull support
Safari✓ SupportedFull support
Edge✓ SupportedFull support
Opera✓ SupportedFull support
Mobile browsers✓ SupportedFull support, iOS & Android

Supported in every current browser — Chrome, Firefox, Safari, Edge and Opera all render this identically, on both desktop and mobile.

Related Pages

More tools that pair naturally with this one.