Language
English

Header Formatter

HTTP Header structured display

Input
Paste HTTP headers here...
Output
Formatted result will appear here...

togotools.top technical reference

Technical reference

Format HTTP request and response headers locally in your browser. Parses Key: Value pairs into JSON, detects duplicate keys and malformed lines, and shows statistics. All parsing runs client-side.

Core features

  • Parses HTTP header text into structured JSON by Key: Value pairs.
  • Detects duplicate keys, empty lines, and malformed entries with line numbers.
  • Configurable indent width and duplicate key separator.
  • Live statistics: header count, unique keys, duplicate keys, skipped lines.

Example: before and after

Duplicate keys are merged using the configured separator (default &). Malformed lines are skipped and flagged with their line number.

http
Content-Type: application/json
Accept: application/json
Authorization: Bearer token123

{
  "Content-Type": "application/json",
  "Accept": "application/json",
  "Authorization": "Bearer token123"
}

Limits

  • Only supports standard HTTP header format (Key: Value), not Set-Cookie multi-attribute structure.
  • Duplicate key merging depends on the separator setting (default &).
  • Non-header text is identified as skipped lines without affecting other rows.

Frequently asked questions

Why are some lines marked as skipped?

Common reasons include missing colons, empty lines, or comment lines. The tool flags skipped lines with their line number.

How are duplicate header keys handled?

Multiple values for the same key are merged into one string using the separator (default &), configurable in settings.