Cookie Parser.
Parse Cookie and Set-Cookie headers into a table and flag SameSite, Secure, prefix and expiry problems.
Runs in your browserAbout Cookie Parser
The Cookie Parser turns raw Cookie and Set-Cookie headers into a table and checks them against the rules browsers actually enforce. Paste a request's Cookie header ("Cookie: theme=dark; lang=uk") to list each name and decoded value, or paste one or more Set-Cookie response headers, one per line, to see every attribute: Domain, Path, Expires, Max-Age, Secure, HttpOnly, SameSite and Partitioned. The header type is detected automatically. The issues list explains problems that otherwise show up only as a cookie that silently never arrives: SameSite=None without Secure, which every modern browser rejects; the __Host- prefix used with a Domain attribute, a Path other than /, or without Secure; the __Secure- prefix without Secure; Expires in the past or a Max-Age of zero, which delete the cookie instead of setting it; unparseable dates; unknown attributes; both Max-Age and Expires (Max-Age wins); a missing SameSite attribute, which browsers treat as Lax; and cookies over the 4 KB limit. In a Cookie header it also flags names sent twice, which happens when cookies with the same name exist for different paths or domains and the server reads the wrong one. Values are percent-decoded and surrounding quotes removed. Typical uses are debugging login sessions that do not stick, cross-site embeds and third-party cookie changes, and reviewing what a framework sends. Because cookies often contain session tokens, the page is marked sensitive: nothing is stored in the URL or history, and parsing runs entirely in your browser.
How to Use
- Copy the Cookie request header or the Set-Cookie response headers from your browser's network tab or curl -i.
- Paste them; one Set-Cookie per line.
- Read the table and the issues list, or copy the JSON.
Frequently Asked Questions
Why does the browser ignore my SameSite=None cookie?
SameSite=None is only accepted together with Secure, which also means it must be set over HTTPS. The issues list flags this.
What are the rules for __Host- cookies?
A __Host- cookie must have Secure, Path=/ and no Domain attribute. It is then bound to exactly one host, which protects it from subdomains.
Does the tool know if a cookie is expired?
Yes. Expires dates in the past and Max-Age values of zero or less are reported, because such a Set-Cookie deletes the cookie.
Are my session cookies safe to paste?
Parsing runs only in your browser, and the page is marked sensitive so inputs are not kept in the URL or history. Still, treat session cookies like passwords.
Related Tools
Split a URL into scheme, credentials, host, port, path, query parameters and fragment, and normalize it.
Convert URL query strings to JSON (nested brackets, arrays) and JSON objects back to query strings.
Reference for all HTTP status codes.
Decode, inspect, and verify JSON Web Tokens.
Build an HTTP Basic Authorization header from a user name and password, or decode an existing one.
Encode and decode Base64 strings.