# Accept-Language q-values in Chrome: the exact pattern

> Chrome writes Accept-Language from its language list: first tag bare, then q=0.9, 0.8 and down by 0.1 to a floor of 0.1. A hand-typed header rarely matches.

Source: https://mosaicbrowser.com/blog/how-chrome-writes-accept-language

## How Chrome writes Accept-Language, q-values and all

Chrome writes Accept-Language from its language list: first tag bare, then q=0.9, 0.8 and down by 0.1 to a floor of 0.1. A hand-typed header rarely matches.

![en-US,en;q=0.9 is a pattern, not a string, beside a screenshot: creating a profile in Mosaic: a checked proxy, and the hardware and locale drawn to match its IP](https://mosaicbrowser.com/covers/how-chrome-writes-accept-language.webp)

Chrome does not store an Accept-Language header anywhere. It stores a list of languages and writes the header from that list on every request: the first language with no q-value, then each following one with a q-value 0.1 lower than the last, `q=0.9`, `q=0.8`, `q=0.7`, stopping at `q=0.1`. A default American Chrome sends `en-US,en;q=0.9`. A list of four sends four entries in that exact shape.

Because the header is computed, its shape is fixed, and a header typed by hand usually is not that shape.

## What the q-values in Accept-Language mean

RFC 9110, section 12.5.4, defines the header as a list of language ranges, each with an optional weight `q` between 0 and 1, written with up to three decimals. A range with no weight has weight 1. A weight of 0 means "not acceptable". The server is supposed to pick the best match it has, and in practice most servers take the first tag they support and ignore the numbers.

The standard allows a lot: `de;q=0.85`, `en; q=0.5` with a space, `*;q=0.1`, the same weight on two languages. Chrome uses almost none of it.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Machines that exist](https://mosaicbrowser.com/features/real-fingerprints)

## The pattern Chrome uses

Chromium's network code turns the list into the header in two steps.

First it fills in base languages. When a regional tag such as `de-AT` is followed by an entry from a different language, and the bare `de` is not in the list already, Chromium adds it right after. A list of `de-AT` and `en-US` becomes `de-AT, de, en-US, en`. That is where the `en` in the default header comes from, and why people who never chose "English" see it.

Then it numbers them. The first entry gets no weight. Each later entry gets one decimal place, 0.1 lower than the one before, with no space after the comma or the semicolon. When the count reaches `q=0.1` it stays there, because a zero would tell the server the language is unacceptable, which is not what a long list means.

| Language list in Chrome | Header Chrome sends |
| --- | --- |
| en-US | `en-US,en;q=0.9` |
| de-AT, en-US | `de-AT,de;q=0.9,en-US;q=0.8,en;q=0.7` |
| fr-CA, fr, en | `fr-CA,fr;q=0.9,en;q=0.8` |

Eleven languages end with two entries at `q=0.1`. Nothing in the list ever produces `q=0.85`, a space, a `*`, or two different languages tied above the floor.

## Why a hand-typed header stands out

Set Accept-Language by hand, through an extension, a proxy rule or a request interceptor, and you write a string, not a list. The common results are a header Chrome cannot produce: `en-US,en;q=0.8` (a skipped step), `de-DE,en;q=0.9` (a regional tag with its base missing), `en-GB, en;q=0.9` (a space). Each one is valid HTTP and is a format no Chrome writes.

A second problem is worse. The page's script reads the same preference through `navigator.languages`, and a header rewritten on the way out does not touch it. The server sees German, the script sees English, and both are one request apart. We wrote up the third place a language lives, `Intl` date and number formatting, in [testing a site in another language](https://mosaicbrowser.com/blog/accept-language-testing).

## How Mosaic gets the header out of the engine

We never write the header ourselves. Each profile has a language list, drawn from the country its proxy's IP is in, and Tesseract Chrome receives it as a plain comma list on its `--accept-lang` switch. The engine builds the header from that list with the same code a stock Chrome uses, and `navigator.languages` comes from the same list, so the header and the script name the same languages.

The "plain" part matters, and we found out why by measuring. Pass the list with q-values already attached and the header still comes out fine. But a service worker then reports `navigator.languages` as `["he-IL", "he;q=0.9", …]`, with the weights inside the language names, while the page, given the clean list, said `["he-IL", "he", …]`. Two realms in one browser disagreeing about the user's languages is exactly the contradiction a consistency check looks for. Now the q-values are left to the engine.

Our language table writes the base language into the list too, the way a Chrome user's settings usually end up: a Berlin profile's list is `de-DE, de, en-US, en`.

Two things we leave alone on purpose. A profile that has already been used keeps its language when its proxy moves to another country, because a language that changes under an account with history is its own signal ([the Russian IP and the Mexican Spanish profile](https://mosaicbrowser.com/blog/accept-language-and-proxy-country) is that case). And the header's position among the other headers is Chrome's, too ([header order through a proxy](https://mosaicbrowser.com/blog/chrome-header-order-through-a-proxy) shows why a proxy cannot reorder it).

## Questions

### What q-values does Chrome put in Accept-Language?

None on the first language, which means 1. Every later language gets a q-value 0.1 lower than the one before: 0.9, 0.8, 0.7 and so on. From the tenth language on, every entry gets 0.1, because Chrome never writes zero.

### Why does Chrome send en;q=0.9 when I only chose English (United States)?

Chrome adds the base language after a regional one when the base is not already in your list and the next entry is from a different language. So en-US alone goes out as en-US,en;q=0.9, and a list of de-AT and en-US as de-AT,de;q=0.9,en-US;q=0.8,en;q=0.7.

### What does q mean in Accept-Language?

It is a weight from 0 to 1 that says how much the user prefers that language, as defined in RFC 9110. No q means 1, and q=0 means the language is not acceptable at all.

### Does changing the Accept-Language header change navigator.languages?

Only if you change Chrome's language list, which feeds both. A header rewritten by an extension or a proxy changes the header alone, so the page's script still reads the original list.

## Related

[Testing a site in another language means more than one header](https://mosaicbrowser.com/blog/accept-language-testing): Set Accept-Language alone and the page still formats dates for your own machine. A real language test moves the header, navigator.languages and Intl.

[A Russian IP and a profile speaking Mexican Spanish](https://mosaicbrowser.com/blog/accept-language-and-proxy-country): A profile matched to a Russian IP kept sending es-MX in Accept-Language. Leaving the language alone was right. Saying nothing about it was the bug.

[Header order is a fingerprint, and HTTPS keeps it intact](https://mosaicbrowser.com/blog/chrome-header-order-through-a-proxy): Sites read the order of Chrome's HTTP headers as well as their values. Over HTTPS a proxy only passes encrypted bytes on, so it cannot reorder a thing.

[Why we change fingerprints in the engine, not in JavaScript](https://mosaicbrowser.com/blog/cpp-not-javascript): A JavaScript spoof is one realm deep. An iframe read the real source of 33 of our replaced functions; the same values set inside the engine agree everywhere.

[Machines that exist: fingerprints drawn from real hardware](https://mosaicbrowser.com/features/real-fingerprints): Mosaic draws each profile's GPU, screen, CPU, memory and fonts from one real device, so the parts of a fingerprint agree with each other and with the host.







[Why navigator.webdriver is true, and why false proves little](https://mosaicbrowser.com/blog/why-navigator-webdriver-true): navigator.webdriver is the W3C WebDriver flag, true under Selenium, Playwright, Puppeteer or headless Chrome. A Chrome reading true scored 100 on IPHey.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
