Category: Developer tools

Cookie String Parser

System ideaMissing a tool?

Parse a cookie string or Set-Cookie header into a readable table

Paste a document.cookie value or a Set-Cookie header to split it into individual cookies and recognized attributes like Path, Domain and SameSite, plus a ready-to-copy JSON object. Nothing is sent anywhere.

Cookies
NameValue
sessionabc123
themedark
Attributes
NameValue
Path/
Max-Age3600
Secure
HttpOnly
SameSiteLax
Output
{
  "session": "abc123",
  "theme": "dark"
}

Recognized attribute keywords (Path, Domain, Expires, Max-Age, Secure, HttpOnly, SameSite) are separated from the actual cookies.

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

Browsers expose document.cookie as one semicolon-separated string, and a Set-Cookie response header mixes the cookie itself with attributes such as Path, Expires and HttpOnly on the same line. This tool splits that string into cookies and attributes so you can read it at a glance, entirely in your browser.

How to use it

  1. Paste a document.cookie string or a Set-Cookie header value.
  2. Review the parsed cookies and attributes tables.
  3. Copy the JSON representation of the cookies.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Is my cookie data sent anywhere?
No. Parsing happens locally in JavaScript; nothing is uploaded, which matters since cookies can carry session identifiers.
What counts as an attribute instead of a cookie?
Known Set-Cookie attribute keywords — Path, Domain, Expires, Max-Age, Secure, HttpOnly and SameSite — are listed separately from the actual cookie name/value pairs.
Can I parse more than one cookie at a time?
Yes. A document.cookie string with several name=value pairs separated by semicolons is split into one row per cookie.