HTTP Headers Parser

Split pasted HTTP headers into name/value pairs, flag invalid names and duplicates, and redact sensitive values such as Authorization or Cookie by default.

Options

Input

Ctrl + Enter to run

Result

Split a pasted block of HTTP headers (from a request, a response or browser devtools) into name/value pairs and diagnose problems: names with disallowed characters, whitespace before the colon, obsolete folded lines (obs-fold), control characters and headers that must not repeat, such as Content-Length.

By default it redacts sensitive values (Authorization, Cookie, Set-Cookie, API keys) in both the table and the copyable output.

How to use it

  1. Paste the headers, with or without the start line (GET / HTTP/1.1 or HTTP/1.1 200 OK).
  2. Decide whether to redact sensitive values.
  3. Press Run and review the diagnostics.

Example

Example input
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: no-store
Set-Cookie: session=ejemploNoReal123; HttpOnly; Secure; SameSite=Lax
Content-Length: 42
Content-Length: 43
X-Bad Header: valor
Result
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Cache-Control: no-store
Set-Cookie: session=[redacted]; HttpOnly; Secure; SameSite=Lax
Content-Length: 42
Content-Length: 43
X-Bad Header: valor

Limitations

  • It does not interpret each header’s content (for example, Cache-Control directives are not validated).
  • No request is made: it only analyzes the pasted text.
  • HTTP/2 and HTTP/3 use lowercase names; the analysis is the same.

FAQ

Why is a duplicate Content-Length a problem?
Different values can make a proxy and a server disagree on the body (request smuggling). RFC 9112 requires treating it as an error.
Are my cookies or tokens stored?
No. Everything is processed in memory in your browser and, by default, sensitive values are not even displayed.

Related tools

References