Toolstia / Cookie parser
Cookie parser
Paste a Cookie header from a request or a Set-Cookie line from a response and get a clean table of names, values and attributes. The parser also points out common gaps, such as a missing Secure or HttpOnly flag.
A Cookie header carries name=value pairs from the browser. A Set-Cookie header comes from the server and can add attributes such as Path, Secure, HttpOnly and SameSite. The notes point out common security gaps.
How it works
- Paste one or more Cookie or Set-Cookie lines.
- Read the table of cookies and their attributes.
- Check the notes for security problems.
Cookie and Set-Cookie
A Cookie header holds many name=value pairs sent by the browser. Each Set-Cookie header sets one cookie and can add attributes after the value.
Attributes
The parser reads Expires, Max-Age, Domain, Path, Secure, HttpOnly, SameSite, Partitioned and Priority. Other attributes are listed as warnings.
Security notes
It flags cookies without Secure, HttpOnly or SameSite, SameSite=None without Secure, and the prefix rules for __Secure- and __Host- cookies.
Dates
The Expires value is kept as written, including its comma, since the parser splits attributes on semicolons only.
Questions
Is my cookie value sent anywhere?
No. Session cookies can be sensitive, which is why this tool never uploads them. Everything happens in your browser, and nothing you enter is sent anywhere.
Can I paste several cookies?
Yes. Put each header on its own line.
What if there is no header name?
A line with attributes such as Path or Secure is read as a Set-Cookie line, and a plain list of pairs is read as a Cookie line.