Start a project

Tool 273 of 425 · HTTP

Content Negotiation Explainer

Scores each type, language and encoding your server offers against the request's Accept headers and shows which one wins and why.

Content Negotiation Explainer

Your input

Result

HeaderOfferqMatched byResult

    01

    What it does

    Scores each type, language and encoding your server offers against the request's Accept headers and shows which one wins and why.

    • q-values and order
    • Type wildcards (text/*, */*)
    • Language prefixes (en matches en-GB)
    • gzip, br and zstd encodings

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    A scored table per header, with a Copy and a Download button on every result.

    • Accept header
    • Content negotiation
    • HTTP

    Why it matters

    Wrong-language pages and clients getting gzip when they asked for brotli usually come from content negotiation done slightly wrong: a q-value ignored or a wildcard ranked above an exact match.

    This explainer applies the RFC 9110 rules to your headers and offers, and shows the score behind every choice.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Negotiate. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Why does q=0 matter?

    q=0 means not acceptable. A client sending identity;q=0 refuses uncompressed responses, which a server must respect.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk