Command Palette

Search for a command to run...

HTTP Headers

HTTP Header Parser

Parse raw HTTP header lines, normalize names, and inspect invalid lines quickly.

Header Input
Paste raw header lines. This tool parses only header lines, not full HTTP messages.

Limits: up to 64 KB and 2000 lines

Parsed Output
View normalized structures, parsed rows, duplicates, and invalid lines.
{
  "host": [
    "example.com"
  ],
  "accept": [
    "application/json",
    "text/plain"
  ],
  "x-trace-id": [
    "demo-123"
  ]
}
host: example.com
accept: application/json, text/plain
x-trace-id: demo-123
LineHeader NameValue
1Hostexample.com
2Acceptapplication/json
3X-Trace-Iddemo-123
4Accepttext/plain
  • acceptx2

No invalid lines were found.

What

HTTP Header Parser definition

HTTP headers are metadata lines in the form of key-value pairs (for example, Content-Type: application/json). This parser helps you validate header formatting and produce normalized output for debugging.

Cases

Use Cases

1

Validate copied request/response headers before reproducing API calls

2

Detect malformed header lines that break gateway routing

3

Normalize duplicated headers for documentation and test fixtures

4

Review security-sensitive headers like Authorization and Cookie

5

Prepare clean header blocks for cURL or fetch snippets

6

Spot line-level parsing errors during incident analysis

How To

How to Parse HTTP Headers

Paste header lines, run parse, and review normalized output, duplicates, and invalid lines.

1

Paste header lines

Enter raw lines in Key: Value format. Empty lines are ignored.

2

Run parser

Click Parse to validate names, split fields, and aggregate repeated headers.

3

Review and copy

Inspect JSON and normalized headers, then copy the output you need.

Knowledge

Header Parsing Knowledge

Header Name Tokens
HTTP header names are case-insensitive tokens. Normalizing to lowercase simplifies matching and deduplication.
Duplicate Header Semantics
Some headers can appear multiple times or as comma-separated values. Aggregating duplicates preserves useful context.
Safety and Limits
Input byte and line limits protect browser performance and reduce parser abuse risks.

FAQ

FAQ

What input format is supported?
Only header lines in Key: Value format are supported. Request/status start lines and body text are treated as invalid lines.
How are duplicate headers handled?
Header names are normalized to lowercase and duplicate values are aggregated in insertion order.
Does this tool send my headers to a server?
No. Parsing runs locally in your browser and does not call external APIs.
Why are some lines marked invalid?
Invalid lines usually miss a colon or contain characters that are not valid for header-name tokens.
Can I copy normalized output?
Yes. You can copy the normalized JSON map or flattened header block with one click.
Is there an input size limit?
Yes. The tool limits input size and line count to prevent browser slowdowns.
HTTP Header Parser