Cookie Header Parser
Parse a Cookie or Set-Cookie header into a table of cookies and attributes.
Runs in your browser. Nothing you open or type here is uploaded.
How to use
- Choose the header type: Cookie or Set-Cookie.
- Paste the header value into the input.
- Click Parse and read the table of cookies and their attributes.
- Copy the result as JSON if you need it elsewhere.
Details
Browsers and servers exchange cookies through two different headers. A Cookie request header carries only name=value pairs separated by semicolons. A Set-Cookie response header defines one cookie per header and adds attributes such as Domain, Path and Expires or Max-Age, plus the Secure and HttpOnly flags and the SameSite policy. This tool splits whichever header you paste into a table with one row per cookie, showing the value decoded alongside the domain, path, expiry and flags, and can export the result as JSON.
- Paste each Set-Cookie header on its own line. The Expires date contains a comma, so headers joined with commas cannot be split reliably.
- SameSite=Lax is the modern default: the cookie is sent on top-level navigations but not on embedded cross-site requests. None allows cross-site sending and requires the Secure flag.
- An HttpOnly cookie is invisible to JavaScript by design — if one appears in this table but not in document.cookie, that flag is the reason.
Common questions
What's the difference between Cookie and Set-Cookie?
Cookie is the request header your browser sends to a server: just name=value pairs separated by semicolons. Set-Cookie is the response header a server uses to store cookies: one cookie per header, each with attributes like Domain, Path and Expires, plus flags like Secure or HttpOnly.
Why must each Set-Cookie go on its own line?
The Expires attribute contains a comma (for example "Wed, 21 Oct 2026 07:28:00 GMT"), so joining several Set-Cookie headers with commas — which some devtools do — is ambiguous. Paste each one on its own line and every cookie parses cleanly.
What do the SameSite values mean?
Strict never sends the cookie on cross-site requests. Lax, the modern default, sends it on top-level navigations like link clicks but not on embedded requests such as images. None allows cross-site sending but requires the Secure flag.
Is my data sent anywhere?
No. Parsing runs entirely in your browser — the header never leaves your device.