Tools

HTML language code finder

Search engines and browsers need to know what language a page is written in. Declare it with the lang attribute on your <html> tag — pick a language to get the right code.

The HTML tag for Sorbian is:

How language codes work

Codes follow an international standard called BCP 47. The first part is the language (en for English, cy for Welsh); an optional second part narrows it to a country or region (en-GB for British English) or a writing system (zh-Hans for Simplified Chinese).

  • For a UK site written in British English, use <html lang="en-GB">.
  • If one paragraph is in another language, mark just that part: <p lang="cy">Croeso</p>. Screen readers will switch pronunciation.
  • The same codes are used in hreflang links, which tell Google about translated versions of a page.
  • You no longer need the old XHTML extras (xmlns and xml:lang) on an HTML5 page.

All codes

CodeLanguage
afAfrikaans
sqAlbanian
ar-dzArabic (Algeria)
ar-bhArabic (Bahrain)
ar-egArabic (Egypt)
ar-iqArabic (Iraq)
ar-joArabic (Jordan)
ar-kwArabic (Kuwait)
ar-lbArabic (Lebanon)
ar-lyArabic (Libya)
ar-maArabic (Morocco)
ar-omArabic (Oman)
ar-qaArabic (Qatar)
ar-saArabic (Saudi Arabia)
arArabic (Standard)
ar-syArabic (Syria)
ar-tnArabic (Tunisia)
ar-aeArabic (U.A.E.)
ar-yeArabic (Yemen)
argAragonese
hyArmenian
asAssamese
astAsturian
azAzerbaijani
euBasque
beBelarusian
bnBengali
bsBosnian
brBreton
bgBulgarian
myBurmese
caCatalan
chChamorro
ceChechen
zhChinese
zh-hkChinese (Hong Kong)
zh-cnChinese (PRC)
zh-sgChinese (Singapore)
zh-twChinese (Taiwan)
cvChuvash
coCorsican
crCree
hrCroatian
csCzech
daDanish
nl-beDutch (Belgian)
nlDutch (Standard)
enEnglish
en-auEnglish (Australia)
en-bzEnglish (Belize)
en-caEnglish (Canada)
en-ieEnglish (Ireland)
en-jmEnglish (Jamaica)
en-nzEnglish (New Zealand)
en-phEnglish (Philippines)
en-zaEnglish (South Africa)
en-ttEnglish (Trinidad & Tobago)
en-gbEnglish (United Kingdom)
en-usEnglish (United States)
en-zwEnglish (Zimbabwe)
eoEsperanto
etEstonian
foFaeroese
faPersian
fjFijian
fiFinnish
fr-beFrench (Belgium)
fr-caFrench (Canada)
fr-frFrench (France)
fr-luFrench (Luxembourg)
fr-mcFrench (Monaco)
frFrench (Standard)
fr-chFrench (Switzerland)
fyFrisian
furFriulian
mkFYRO Macedonian
gd-ieGaelic (Irish)
gdGaelic (Scots)
glGalacian
kaGeorgian
de-atGerman (Austria)
de-deGerman (Germany)
de-liGerman (Liechtenstein)
de-luGerman (Luxembourg)
deGerman (Standard)
de-chGerman (Switzerland)
elGreek
guGujurati
htHaitian
heHebrew
hiHindi
huHungarian
isIcelandic
idIndonesian
iuInuktitut
gaIrish
itItalian (Standard)
it-chItalian (Switzerland)
jaJapanese
knKannada
ksKashmiri
kkKazakh
kmKhmer
kyKirghiz
tlhKlingon
ko-kpKorean (North Korea)
ko-krKorean (South Korea)
koKorean (Standard)
laLatin
lvLatvian
ltLithuanian
lbLuxembourgish
msMalay
mlMalayalam
mtMaltese
miMaori
mrMarathi
moMoldavian
nvNavajo
ngNdonga
neNepali
nbNorwegian (Bokmal)
nnNorwegian (Nynorsk)
noNorwegian (Standard)
ocOccitan
omOriya
orOromo
fa-irPersian (Iran)
plPolish
ptPortuguese
pt-brPortuguese (Brazil)
paPunjabi
pa-inPunjabi (India)
pa-pkPunjabi (Pakistan)
quQuechua
rmRhaeto-Romanic
roRomanian
ro-moRomanian (Moldavia)
ruRussian
ru-moRussian (Moldavia)
szSami (Lappish)
sgSango
saSanskrit
scSardinian
srSerbian
sdSindhi
siSinghalese
skSlovak
slSlovenian
soSomani
sbSorbian
esSpanish
es-arSpanish (Argentina)
es-boSpanish (Bolivia)
es-clSpanish (Chile)
es-coSpanish (Colombia)
es-crSpanish (Costa Rica)
es-doSpanish (Dominican Republic)
es-ecSpanish (Ecuador)
es-svSpanish (El Salvador)
es-gtSpanish (Guatemala)
es-hnSpanish (Honduras)
es-mxSpanish (Mexico)
es-niSpanish (Nicaragua)
es-paSpanish (Panama)
es-pySpanish (Paraguay)
es-peSpanish (Peru)
es-prSpanish (Puerto Rico)
es-esSpanish (Spain)
es-uySpanish (Uruguay)
es-veSpanish (Venezuela)
sxSutu
swSwahili
svSwedish
sv-fiSwedish (Finland)
sv-svSwedish (Sweden)
taTamil
ttTatar
teTeluga
thThai
tigTigre
tsTsonga
tnTswana
trTurkish
tkTurkmen
ukUkrainian
hsbUpper Sorbian
urUrdu
veVenda
viVietnamese
voVolap?k
waWalloon
cyWelsh
xhXhosa
jiYiddish
zuZulu

Ready to build? Every guide on this site was written and tested on OnPoint Hosts — UK cPanel hosting with free SSL and a free first-year domain, from £4.25 a month.

Get hosting

Cookie Preferences Manager

We use strictly necessary cookies to run this site. With your permission we’d also like to use optional cookies to measure site performance and personalise marketing — these stay off until you choose to turn them on. Read our Cookie Policy and Privacy Policy.

Right now this site doesn’t set any optional cookies, whatever you choose.

You can change your mind at any time using the “Cookie settings” link at the bottom of every page.

Optional cookies