HTTP Encoding Header Builder & Analyzer
Parse weighted HTTP content-coding lists, choose the best supported coding, and build Accept-Encoding or Content-Encoding headers. Invalid q-values, wildcards, and disabled codings are reported locally.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
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
Two sides of encoding negotiation
Accept-Encoding tells a server which content codings a client can decode, while Content-Encoding states which coding was actually applied to a response body. Build mode assembles either header from a comma-separated list of codings such as br, gzip, deflate and identity, and analyze mode reads a weighted value and explains how it would be interpreted.
Reading the q-values
Each coding can carry a q parameter from 0 to 1 that expresses relative preference. The parser checks the q syntax carefully, rejecting values above one or a malformed decimal, and treats a coding with q=0 as explicitly unacceptable. Unrecognised parameters are reported against the coding that carried them.
Wildcards and identity
A * entry sets a default preference for any coding not named elsewhere, which is how a client says it accepts anything at low priority. identity means no compression at all and is normally acceptable unless it is explicitly zeroed or excluded by a wildcard rule. The tool reports which coding from the supported set it would pick.
Headers only, no bodies
The value is tokenised and interpreted in this page, and nothing is compressed, decompressed or sent. No network request is made, so testing a negotiated header value reveals nothing to any server.
Questions
What does q mean?
The q-value expresses relative preference from 0 to 1. A coding with q=0 is explicitly unacceptable.
What is identity?
identity means no content coding. It is generally acceptable unless explicitly assigned q=0 or excluded by a wildcard rule.
Does this compress data?
No. It only builds and analyzes negotiation headers; it never transforms a response body.
Related tools
See categoryGzip Compress / Decompress
Compress a file to .gz or decompress a .gz file back to its original bytes.
MIME Type Lookup
Look up the MIME type for an extension, or the extensions for a MIME type.
HTTP Status Code Reference
Look up HTTP status codes — what they mean and when APIs return them.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.