Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Web & CSS

Accept-Language Header Analyzer

Analyze HTTP Accept-Language header values or rank a list of language tags. Validates BCP-47 language syntax and q-values, sorts by preference, flags duplicates and malformed weights, and reports which languages a client most prefers.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

What the Accept-Language analyzer does

Paste a header and the tool validates each language range against BCP-47 syntax, reads the q-value weight, flags duplicates and malformed entries, and sorts the whole list by preference. It reports the top language and a preference-ordered summary, so you can see exactly what a client is asking for.

Debugging content negotiation

Use it when a site serves the wrong language or a negotiation bug shows up. Pasting the real header shows whether the client sent a usable q-value, whether a typo made a range invalid, and which language should actually win, before you blame the server config.

Analyze versus rank

Analyze mode reads the q-values from the pasted header and sorts by them. Rank mode ignores the incoming weights, assigns your chosen default q to every range and orders the list, which is handy when you want to model how a specific preference would resolve. Default quality 0 marks a language unacceptable.

What gets flagged

The tool rejects q-values outside 0 to 1, calls out duplicate ranges that should be combined, and marks ranges that are not valid BCP-47 tags. A bare wildcard is allowed and sorts by its weight, since it means any language. Only the header value matters here, not full request semantics.

The header stays on your device

Parsing and ranking run entirely in the browser, with no upload and no network call. A pasted header from a real session, which can be a sensitive fingerprint, is processed offline and never leaves your machine.

Questions

How are q-values interpreted?

A q-value (0 to 1) expresses a client's preference for that language, with 1.0 the strongest. Descending order of q-value is the preference order.

What is a valid language range?

Per BCP 47, tags like en (language), en-US (region) or zh-Hant (script) are valid. Wildcards (*) match any language.

What are common pitfalls?

q-values outside 0–1 are invalid; duplicate ranges should be combined; and a language with q=0 is explicitly unacceptable.

See category