HTTP Headers Reference and Parser

Understand any set of HTTP headers: paste them to get each one explained, missing security headers flagged and cookie problems found, or browse the reference and builders.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Choose a view

    Explain pasted headers, reference, methods, REST or builders.

  2. 2
    Paste headers

    Paste raw request or response headers.

  3. 3
    Read explanations

    Check what each header does.

  4. 4
    Fix warnings

    Address cookie, caching and security issues.

  5. 5
    Use the builders

    Generate Cache-Control and Set-Cookie lines.

  6. 6
    Retest

    Paste the new headers to confirm.

About this tool

Headers control caching, security, cookies, compression, cross-origin access and much more, yet they are easy to get wrong and hard to read in a browser's network panel. This tool explains them. Paste the raw request or response headers, from curl -I, your browser's developer tools or a server log, and each header is described in plain words with good values. Problems are flagged: a session cookie without Secure or HttpOnly, SameSite=None without Secure, a weak HSTS max-age, contradictory Cache-Control directives, a framework version leaked in X-Powered-By, and missing security headers such as Content-Security-Policy and X-Content-Type-Options. The reference covers 50 headers with notes, the HTTP methods with their safety and idempotency, and a REST API design checklist. The builders produce a Cache-Control value for each kind of content and a hardened Set-Cookie line.

What is checked

- Cookies: Secure, HttpOnly and SameSite present; SameSite=None paired with Secure. - Caching: no-cache together with max-age, which usually means confusion about what no-cache does. - HSTS: max-age of at least six months. - Information leaks: X-Powered-By and server version headers. - Missing security headers on responses: Content-Security-Policy, X-Content-Type-Options, Strict-Transport-Security, Referrer-Policy.

Caching in one paragraph

Files whose names include a content hash can be cached for a year with public, max-age=31536000, immutable. HTML should use no-cache, which still allows storing but revalidates with the ETag each time. Private API responses use private, and sensitive data uses no-store. Shared caches such as CDNs can be given their own lifetime with s-maxage.

Cookies in one paragraph

Session cookies should be Secure (HTTPS only), HttpOnly (hidden from JavaScript) and SameSite=Lax or Strict (not sent on most cross-site requests). The __Host- prefix forces Secure, Path=/ and no Domain, which stops subdomains overwriting the cookie.

Methods and REST

The methods table shows which methods are safe (no side effects) and idempotent (repeating has the same effect), which matters for retries. The REST checklist covers resource naming, status codes, paging, versioning, errors in the Problem Details format and idempotency keys.

Where headers come from

Frameworks, reverse proxies and CDNs all add headers, and a later layer can override an earlier one. When a header is missing or duplicated, check each layer in turn: the application, Nginx or Apache, then the CDN.

Limits

The parser checks what is in the text you paste; it cannot fetch a live site, because browsers do not expose all headers of other sites to web pages. Security checks are a quick review, not a penetration test.

Worked example

Pasting a response with Set-Cookie: session=abc123; Path=/; HttpOnly and X-Powered-By: Express flags the missing Secure and SameSite attributes, recommends removing X-Powered-By and lists Content-Security-Policy and Referrer-Policy as missing.

Quick facts

Frequently asked questions

Where do I get the raw headers?

From curl -I, the Network panel in browser developer tools, or server logs.

Can it check a live website?

No. Paste the headers; browsers do not let pages read other sites' headers.

What is the right Cache-Control for HTML?

Usually no-cache, so browsers revalidate and pick up new releases quickly.

Why does my cross-site cookie not work?

SameSite=None requires the Secure attribute and HTTPS.

Does it cover all headers?

It explains the 50 most important; others are marked as custom.

Is anything uploaded?

No. Parsing happens in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages