Skip to content

Web, HTTP & devices

Languages and Accept-Language

Common language codes with realistic Accept-Language headers and regions, weighted by web usage, for i18n and content-negotiation tests.

About this dataset

Each row has a two-letter language code weighted by web usage, a matching Accept-Language header string and a region. Headers are drawn from common real-world browser defaults.

Typical use: Test locale negotiation, translated content and language-specific caching.

Columns

3 columns, 1,000 rows by default.

ColumnTypeSource
language_codestringGenerated: choice.weighted
accept_languagestringGenerated: choice.weighted
regionstringGenerated: choice.weighted

Preview

First 20 rows. Download for up to 1,000.

language_codeaccept_languageregion
enja-JP,ja;q=0.9,en;q=0.8IN
enpt-BR,pt;q=0.9,en;q=0.8US
enfr-FR,fr;q=0.9,en;q=0.8ES
enen-GB,en;q=0.9BR
enen-US,en;q=0.9GB
enzh-CN,zh;q=0.9,en;q=0.8US
rues-ES,es;q=0.9,en;q=0.8GB
enja-JP,ja;q=0.9,en;q=0.8FR
ptde-DE,de;q=0.9,en;q=0.8FR
enen-US,en;q=0.9US
enen-US,en;q=0.9ES
pten-US,en;q=0.9DE
enen-US,en;q=0.9US
deen-US,en;q=0.9CN
enfr-FR,fr;q=0.9,en;q=0.8US
arja-JP,ja;q=0.9,en;q=0.8US
enen-US,en;q=0.9DE
pten-US,en;q=0.9US
ennl-NL,nl;q=0.9,en;q=0.8US
esen-US,en;q=0.9GB

License

License
MaxoPerf synthetic data, free to use
Attribution
Not required.

Values in downloads are plain text. In the JSON file every value is a string, matching the CSV cell. See Dataset Library docs for licensing details and how to bind a dataset to a test.