๐Ÿ“‹ HTTP Header Parser

Raw header text
HTTP/1.1 200 OK
HeaderValue
Content-Typeapplication/json; charset=utf-8
Content-Length1274
Cache-Controlno-cache, no-store, must-revalidate
Access-Control-Allow-Origin*
Set-Cookiesession=abc123; Path=/; HttpOnly
X-Request-Id9f1c2e3a-1234-4a5b-8c9d-abcdef012345

Paste raw HTTP header text copied from a curl command or your browser's developer tools to see the header names and values formatted as a readable table. The status line (like HTTP/1.1 200 OK) is detected automatically.

How to use

  1. Paste the HTTP header text you want to inspect (one "Header-Name: value" pair per line).
  2. If a status line is present, it's detected automatically and shown at the top.
  3. Each header's name and value are listed automatically in a table.

How the calculation works

Paste HTTP request or response headers and this tool splits each line into a name and a value in a table โ€” handy for reading output from browser developer tools or curl -I. If the first line is a status line such as "HTTP/1.1 200 OK", it is shown separately. Every other line is split at the first ":" into header name and value, so colons inside the value (as in https:) stay part of it. Blank lines are ignored. Common headers โ€ข Content-Type: the type and character encoding of the body โ€ข Cache-Control: caching rules (no-store, max-age and so on) โ€ข Set-Cookie: a cookie for the browser to store โ€ข Access-Control-Allow-Origin: whether other origins may access the response (CORS)

Worked example

Input HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 Cache-Control: no-cache, no-store, must-revalidate Set-Cookie: session=abc123; Path=/; HttpOnly Result Status line: HTTP/1.1 200 OK Content-Type โ†’ application/json; charset=utf-8 Cache-Control โ†’ no-cache, no-store, must-revalidate Set-Cookie โ†’ session=abc123; Path=/; HttpOnly

Things to be aware of

  • HTTP header names are case-insensitive (Content-Type and content-type are the same). HTTP/2 sends them in lower case.
  • Some headers, such as Set-Cookie, can appear on several lines. Each shows as its own row.
  • Cookie and authorization headers may contain login credentials. Remove the values before sharing.

FAQ

Where do I copy the header text from?

In your browser's developer tools, select a request in the Network tab and copy the raw text from the "Response Headers" section. With curl, you can use the output of `curl -I` or `curl -v`.

What happens to lines without a colon?

Lines that can't be interpreted as a header (no colon present) are simply ignored.

Does this work for both request and response headers?

Yes. As long as the text follows the "Header-Name: value" format, it parses either request or response header text the same way.