Languages (Accept-Language and navigator.languages)
Ordered list of the person's preferred languages, sent on every request.
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
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 37 | 2014-08-26 | None |
| Edge | Supported | 16 | 2017-10-17 | None |
| Firefox | Supported | 32 | 2014-09-02 | None |
| Safari | Supported | 10.1 | 2017-03-27 | None |
| Safari on iPhone | Supported | 10.3 | 2017-03-27 | None |
| Chrome on Android | Supported | 37 | 2014-09-03 | None |
| Samsung Internet | Supported | 3.0 | 2015-04-10 | None |
How a site asks for it
| API | navigator.language, navigator.languages; Accept-Language header |
| Browser compat keys | api.Navigator.languages |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | none needed (no grant) |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: object
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
languages | list | BCP 47 | 1 to 10 tags e.g. [en-US, en, es] | browser UI order |
q-values | float | None | 0.1 to 1.0 in header | Not 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
| Type | Example | Apps |
|---|---|---|
| games | A game site shows the lobby and rules in your language and puts you in a regional server list. | Roblox, Miniclip |
| games | A cloud gaming site picks the store language and subtitles without asking. | GeForce NOW, Xbox Cloud Gaming |
| shopping | A store shows prices and sizes in your region's format. | Amazon, IKEA |
| media | A streaming site picks audio and subtitle defaults from your language list. | Netflix, YouTube |
| ads | An ad network targets by language and region, using the list as a profile clue. | None named |
| security | A fraud check compares languages with the IP country, since a mismatch may mean a stolen account. | None named |
| analytics | A 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
- MDN (standards docs): Accept-Language. Describes the header where browsers list the languages a person prefers so servers can reply in the right one.
Good uses and abuse
Legitimate uses
- Localize content
Known abuse
- Nationality or immigrant inference
- Fingerprint
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 5 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 5.9 | Rough 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
Related capabilities
Related
- Intl locale formats. Can see the date, number and clock formats your browser uses
Sources
- AmIUnique: Beauty and the Beast, Laperdrix et al. 2016 (attribute entropy)
- MDN navigator.languages
- fingerprintjs source: languages
- BrowserGate: how LinkedIn's script works
How well checked: Checked against real behavior.