Category: Developer tools

cookie string parser

System ideaMissing a tool?

split document.cookie or Set-Cookie strings and build JSON, locally in your browser

Use cookie string parser to split document.cookie or Set-Cookie strings and build JSON, copy the JSON representation, with browser-local processing.

Cookies
NameValue
sessionabc123
themedark
Attributes
NameValue
Path/
Max-Age3600
Secure
HttpOnly
SameSiteLax
Output
{
  "session": "abc123",
  "theme": "dark"
}

Recognized attribute keywords (Path, Domain, Expires, Max-Age, Secure, HttpOnly, SameSite) are separated from the actual cookies.

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

This cookie string parser lets you split document.cookie or Set-Cookie strings and build JSON and copy the JSON representation in the browser. It is limited to the implemented controls: cookie rows and recognized attributes like Path, Domain and SameSite. Inputs, files and results are not uploaded to LocalTools. It does not support reading live browser cookies, validating sessions, sending HTTP requests, decrypting cookies, or security audit conclusions.

How to use it

  1. Enter or choose a cookie string or Set-Cookie header.
  2. Set cookie rows and recognized attributes like Path, Domain and SameSite.
  3. Review the result and copy the JSON representation.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Why is document.cookie a semicolon-separated string?
document.cookie exposes visible cookies as one semicolon-separated string; this tool splits that string into cookie rows and recognized attributes for JSON copy.
What do Path, Domain and SameSite mean in Set-Cookie?
It recognizes common attributes such as Path, Domain and SameSite so a mixed header is easier to read.
Does parsing a cookie string validate a login session?
Parsing a string does not validate a login session; the tool does not contact a server or prove authenticity.
Does this cookie string parser upload the cookie value I paste?
No. The cookie string or Set-Cookie header, settings and results stay in your browser and are not uploaded to LocalTools.
What cookie security checks or browser storage actions are not supported?
It does not support reading live browser cookies, validating sessions, sending HTTP requests, decrypting cookies, or security audit conclusions.