HTTP Accept Header Content Negotiation Matcher
Paste a client Accept header and the comma-separated media types a server offers to see which one wins and at what q value. Exact types and */* only.
Match
—
Which format the server will pick
Content negotiation is the mechanism through which client and server settle on the response format. The client sends what it accepts in Accept, with preferences; the server holds a list of what it can produce; and something has to cross the two. When the outcome is not what you expected, the response arrives in the wrong format or as a 406, and the cause is rarely obvious in the log.
Enter the incoming Accept header and the list of formats your application offers, and the page shows which would win and with what quality factor. The criterion is the highest q among the types present on both sides, with the general wildcard coming into play when the client declares it accepts anything. When nothing matches, the result says so explicitly, which is the 406 scenario.
Worth knowing the limit of this comparison: it handles exact types and the full wildcard, but not the subtype wildcard, of the type-followed-by-asterisk kind. The specification requires giving precedence to the more specific — an exact type beats a subtype wildcard, which beats the general wildcard — and real servers implement that ladder. To check how yours behaves, test with curl sending different headers.
Frequently asked questions
Should I answer 406 when nothing matches?
Does the browser send a restrictive Accept?
How do I force a specific format?
Related Tools
Content-Disposition Filename Parser
Pulls the download filename out of a Content-Disposition header, preferring the percent-encoded filename* form from RFC 5987 and decoding it for you.
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.
HTTP Status Codes
Look up all HTTP status codes with names and descriptions. Search by code or keyword. Quick reference for developers.
HAR Viewer
Read pasted HAR (HTTP Archive) and list requests with method, status, URL and time.
HTTP Status Code Lookup
Type any HTTP status code from 100 to 511 and read its official reason phrase, across the informational, success, redirect, client and server error ranges.
ETag Weak vs Strong
Reads an ETag header value and says whether it is weak, carrying the W/ prefix and meaning semantic equivalence, or strong, meaning byte-for-byte equality.