Cookie Parser
Parse a Cookie or Set-Cookie header into names, values and attributes.
This tool needs JavaScript enabled to run in your browser.
What this tool does
This tool parses cookies from a header. In request mode it reads a Cookie header with several name and value pairs; in response mode it reads a Set-Cookie header and lists the cookie plus its attributes such as Path, Domain, Secure and SameSite.
Request versus response
A browser sends a Cookie header with just names and values. A server sends a Set-Cookie header for each cookie, which carries the value plus attributes that control where and how long the cookie applies. Pick the mode that matches the header you have.
Common use cases
- Reading the cookies a request carried.
- Checking the attributes a server set, such as HttpOnly and SameSite.
- Debugging why a cookie is or is not being sent.
Frequently asked questions
- What is the difference between the two modes?
- Cookie mode reads a browser request header with several name=value pairs. Set-Cookie mode reads a server response header, one cookie plus its attributes.
- Is anything stored?
- No. The header is parsed in your browser and nothing is saved or uploaded.
Learning resources
Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.