Format
Validate
Convert
Query
Generate

HTTP headers parser

Turn request or response headers into structured JSON.
190 B · paste or drop a file
1 2 3 4 5 6 7
✓ complete190 B → 348 B0.0 ms

About HTTP Headers Parser

The HTTP headers parser converts a copied request or response header block into JSON. Repeated fields stay separate and empty values are kept.

How it works

Request and status lines

An HTTP status line becomes response metadata. A method, request target and HTTP version become request metadata. Blocks with only headers work too.

Repeated fields kept apart

Duplicate names are matched without regard to case and collected into arrays, not joined. This matters for fields such as Set-Cookie, which break if you join them with commas.

Malformed input

Invalid field names and lines without a colon are reported with their line number. Obsolete folded continuation lines are unfolded and counted.

Frequently asked questions

Are HTTP header names case-sensitive?

No. Duplicates are always matched without regard to case. Output names can be lowercased or keep the first spelling seen.

Does this split comma-separated header values?

No. Comma rules differ by field, so each header line stays one value. Only repeated lines become arrays.

Does the parser send a request?

No. It only parses the text you paste and makes no network calls.

Sources & last verified

We checked this tool's behavior and the claims on this page against the specifications below on . The tool runs in your browser, so the output you see is exactly what the engine produced. How we build and verify tools.

Last verified · Next review due

Found a wrong result or an outdated claim? Report an error and we will check it again.