HTTP Header Parser

Paste response or request headers copied from developer tools or a command line. They are split up, and the common ones are explained line by line.

Worked examples

A cache header

Cache-Control: public, max-age=86400

Cache-Control: public, max-age=86400 public max-age: 86400 (1 day)

The time is also shown in days.

The same as JSON

Content-Type: text/html X-Frame-Options: DENY

{ "Content-Type": "text/html", "X-Frame-Options": "DENY" }

Every header becomes a key in one object.

About HTTP Header Parser

This parser makes raw HTTP headers readable. Paste the headers from a response or a request and each line is split into a name and a value, with the common headers explained part by part.

Content-Type is split into its type and charset, Cache-Control into its directives with times in days, hours or minutes, Set-Cookie into the cookie and its attributes, and Strict-Transport-Security into its directives. Switch to JSON to get every header in one object.

How to use HTTP Header Parser

  1. Copy the headers from your developer tools or a command line and paste them in.
  2. Choose a readable breakdown or JSON.
  3. Copy the result, or fix any line the tool points out.

Common uses

  • Reading cache settings from a response
  • Checking what a cookie sets
  • Turning headers from a bug report into JSON
  • Learning what each directive in a header means

Frequently asked questions

Can I paste a status line too?

Yes. A line such as HTTP/1.1 200 OK at the top is kept and shown as the status.

What if a header appears more than once?

Each one is shown on its own in the breakdown. In JSON, a repeated header becomes a list.

Why are times shown in days or hours?

Values such as max-age are in seconds. The tool also shows the plain length of time, such as 86400 seconds as 1 day.

What causes an error?

A line that is not blank, not a continuation of the line before and has no colon. The message shows the start of the line.

Guides