Cookie Header Parser
Paste a Cookie header, or one or more Set-Cookie lines. You get every cookie's name, value and attributes, and a list of errors, warnings and notes.
Use the tool
Loading the tool…
About Cookie Header Parser
Paste a cookie header or a Set-Cookie header and see its parts, such as the name, value, path and the flags Secure, HttpOnly and SameSite. Choose whether the text is a Cookie header sent by the browser or a Set-Cookie header sent by the server.
Worked example
Paste `Set-Cookie: sid=abc123; Path=/; Secure; HttpOnly; SameSite=Lax`. The tool lists the cookie name, its value and the flags.
Limits
The parser reads the header text. It does not set or read cookies in your browser, and it does not show what a site does with them.
How to use Cookie Header Parser
- Paste the header text.
- Leave the type on "Detect it", or choose it.
- Read the breakdown for each cookie.
- Fix the header on your server and check again.
Good to know
- SameSite=None only works together with Secure. Browsers reject the cookie otherwise.
- A __Host- cookie needs Secure, Path=/ and no Domain. A __Secure- cookie needs Secure.
- Max-Age wins over Expires when both are set.
- Name and value together should stay under 4096 bytes.
Frequently asked questions
How do I copy the headers from my browser?
Open the developer tools, go to the Network tab, click a request and copy the Cookie or Set-Cookie line from the headers.
What happens if there is no SameSite attribute?
Current browsers treat the cookie as SameSite=Lax.
Is it safe to paste real session cookies?
The tool runs in your browser and sends nothing. Still, treat session cookies like passwords and avoid sharing them.