Accept header content negotiation
Pick the best media type from an Accept header and a list of available types.
Loading the tool…
What it does, how to use it, and questions
What it does
Content negotiation picks a representation using Accept and quality values (q). Servers sort available types against the header.
This page runs that ranking locally against a list of types you supply.
How to use it
- Paste an Accept header.
- List available media types (one per line).
- Read the chosen type and ranked table.
Things to watch for
*/*andtype/*wildcards are supported; more specific types win when q is equal.- Accept-Language uses related rules when provided.
Questions
- Does this call my server?
- No.
- Where do I get Accept?
- From the request headers in DevTools or your API client.
- What if nothing matches?
- The result is empty and the detail explains why.
- Are headers uploaded?
- No.