Cookie parser

Parse Cookie and Set-Cookie headers into structured JSON for inspection.

Header type

Choose whether the input is a request Cookie header or one or more response Set-Cookie headers.

Input

Paste Cookie or Set-Cookie headers here...

Parsed JSON

Inspect valid cookies, attributes, and malformed fragments as structured data.

Cookies: 3Invalid: 0
NameValueAttributes
sessionabc123
themelight
logged_intrue
Parsed JSON
{
  "cookies": [
    {
      "name": "session",
      "value": "abc123",
      "attributes": [],
      "raw": "session=abc123"
    },
    {
      "name": "theme",
      "value": "light",
      "attributes": [],
      "raw": " theme=light"
    },
    {
      "name": "logged_in",
      "value": "true",
      "attributes": [],
      "raw": " logged_in=true"
    }
  ],
  "invalid": []
}

What does this tool parse?

Paste either a Cookie request header or one or more Set-Cookie response headers. The parser extracts cookie names, values, and malformed fragments into structured JSON so you can inspect them quickly.

Cookie vs. Set-Cookie

Use Cookie for the header a browser sends back to a server. Use Set-Cookie for response headers that define attributes such as Path, Max-Age, SameSite, Secure, or HttpOnly.

Tips for cleaner results

  • You can paste full header lines or raw cookie pairs.
  • Multiple Set-Cookie lines are supported.
  • Invalid fragments are listed separately so malformed pairs are easy to spot.

How to use

Select Cookie or Set-Cookie, then paste full header lines or raw pairs. Parsing updates automatically after a short pause; review the cookie table and JSON, copy from the JSON block, download it, clear the input, or restore the matching example.