Accept-Encoding Header Parser
Splits an HTTP request header such as gzip, deflate, br;q=1.0 into codings ranked by q value, assuming q=1 whenever the parameter is missing.
Codings
—
Which compression the client accepts, and in what order
Accept-Encoding is the header through which a browser announces which compressions it can decompress. The server picks one, compresses the response and names its choice back in Content-Encoding. When that negotiation goes wrong the symptom is unmistakable: the browser downloads a binary file instead of showing the page, or the content arrives as gibberish.
Paste the header and the page splits each coding with its q factor, ordering from highest preference to lowest. The same rule as Accept-Language applies: an entry without q counts as 1, and the order they appear in the text is not the order of preference. A q of zero carries its own meaning — it says that coding is not accepted, not that either is fine.
The names that turn up in practice are few. gzip is universal. br, for Brotli, compresses text better and now ships in nearly every browser, but is only offered over HTTPS. zstd is the newest and gaining ground. identity means no compression at all, and the asterisk covers anything not listed. On the server side, any response that varies with this header must send Vary naming it, or an intermediate cache will serve compressed content to someone who never asked for it.
Frequently asked questions
Why does my content arrive uncompressed?
Is Brotli always better than gzip?
Do I really need Vary?
Related Tools
Accept-Charset Header Parser
Breaks an Accept-Charset header into charsets and q-values and ranks them by preference. The header is deprecated; today's clients simply assume UTF-8.
Accept-Language Header Parser and q Sorter
Sorts the browser language tags by their q factor, keeps ties in the order sent, and flags q=0 refusals, invalid q values and the * wildcard range.
Retry-After Header Parser (HTTP 429 and 503)
Paste a Retry-After value in delay seconds or HTTP-date form to get the wait in seconds and minutes, or the exact instant to try again.
MIME Types (Reference)
Searchable MIME type table — search by extension (.json, .pdf) or MIME (application/json, image/png). Includes common formats for web, audio, video, fonts and documents. Everything in your browser.
HAR Viewer
Read pasted HAR (HTTP Archive) and list requests with method, status, URL and time.
HTTP Request Builder
Build an HTTP request (URL, method, headers, body) and generate snippets in cURL, fetch, axios, Python requests and Go net/http. Everything in your browser.