Skip to Content
Platform.Ontology

Languages (Accept-Language and navigator.languages)

Ordered list of the person's preferred languages, sent on every request.

Gets silentlyLanguage and settingsLanguageWeb browsersWhen the page loadsWhile you use it

In one line

Can see the languages you prefer, in order, with every page request

Ordered list of the person's preferred languages, sent on every request.

Shows native language, second languages and country (en-US vs en-GB, es-419). A multilingual list narrows identity sharply: 5.9 bits in 2016. Sites localize with it; trackers fingerprint it.

What it can and can't do

What the user does: Nothing. Your browser sends it every time a page loads

It can

  • See your first language and backups, such as en-US then es
  • Show the page in your language
  • Guess your country from the language variant, such as en-GB or es-419
  • Add to a profile that helps recognise your browser

It cannot

  • Know your exact location from it
  • See languages you have not set in your browser
  • Be turned off on its own; you change it in browser settings

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported372014-08-26None
EdgeSupported162017-10-17None
FirefoxSupported322014-09-02None
SafariSupported10.12017-03-27None
Safari on iPhoneSupported10.32017-03-27None
Chrome on AndroidSupported372014-09-03None
Samsung InternetSupported3.02015-04-10None

How a site asks for it

APInavigator.language, navigator.languages; Accept-Language header
Browser compat keysapi.Navigator.languages
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsread fresh on every page load; nothing stored
How to take it backnone needed (no grant)
Inside an iframeReadable from cross-origin iframes too (same values)

Typical flow

  1. Page script reads the value
  2. No prompt is shown

Data you get

Shape: object
How often: static per session

FieldTypeUnitRangePrecision
languageslistBCP 471 to 10 tags e.g. [en-US, en, es]browser UI order
q-valuesfloatNone0.1 to 1.0 in headerNot listed

Technical limits

  • Browser UI language is not always system language
  • Single-language lists carry few bits

The story

What it is

Every request tells the site your preferred languages, in order.

For you

You open a site and it appears in your language, or offers a banner to switch. You never see the list of languages your browser sent. If you speak several, that list may be the most telling part.

For makers

Sites use it to pick the language and currency. Ad, fraud and tracking systems also use the exact list as a clue about who you are, since few people share the same mix of languages.

Where you see it

TypeExampleApps
gamesA game site shows the lobby and rules in your language and puts you in a regional server list.Roblox, Miniclip
gamesA cloud gaming site picks the store language and subtitles without asking.GeForce NOW, Xbox Cloud Gaming
shoppingA store shows prices and sizes in your region's format.Amazon, IKEA
mediaA streaming site picks audio and subtitle defaults from your language list.Netflix, YouTube
adsAn ad network targets by language and region, using the list as a profile clue.None named
securityA fraud check compares languages with the IP country, since a mismatch may mean a stolen account.None named
analyticsA fingerprinting script mixes the language list with other clues to spot a repeat visitor.None named

Risks

  • Language mix can identify you
  • Hints at nationality

What the platform says

Good uses and abuse

Legitimate uses

  • Localize content

Known abuse

  • Nationality or immigrant inference
  • Fingerprint

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility5 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits5.9Rough identifying entropy, when known

A real example: LinkedIn

Collected as language. Read by the LinkedIn APFC fingerprint script (alleged by BrowserGate, partly confirmed by BleepingComputer).

History

  • 2016-06, paper: AmIUnique: content language 5.91 bits
  • 2020-01, Firefox: RFP forces en-US
  • 2022-01, Chrome: Reduce Accept-Language proposal; navigator.languages unchanged

Sources

How well checked: Checked against real behavior.

On this page