Skip to content

HTTP Header Parser

Parse raw HTTP request or response headers into JSON. Repeated headers such as Set-Cookie become arrays.

Runs in your browserHTTP headers → JSON
Loading tool…

Example

Input
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Set-Cookie: a=1
Set-Cookie: b=2
Output
{
  "startLine": "HTTP/1.1 200 OK",
  "headers": {
    "Content-Type": "text/html; charset=utf-8",
    "Set-Cookie": [
      "a=1",
      "b=2"
    ]
  }
}

How to use the HTTP Header Parser

  1. Paste or type your HTTP headers into the input area, or open a file from your device.
  2. Adjust the options above the editor if the tool offers any.
  3. Review the JSON result, then copy it or download it as a file.

Privacy and limitations

  • Your data is processed on your device and is not uploaded to any server.

Browse all parsers & testers →