Skip to main content
Back to tools

Cookie Parser

Parse and inspect cookie header strings into key-value pairs

About Cookie Parser

Cookie Parser lets you parse and inspect cookie header strings into key-value pairs.

Category: API.

Frequently asked questions

What is a Cookie header?

An HTTP request header sent by the browser containing all cookies for that domain, formatted as semicolon-separated name=value pairs: Cookie: session=abc123; theme=dark.

What is the difference between a session cookie and a persistent cookie?

Session cookies have no expiry date and are deleted when the browser closes. Persistent cookies have an Expires or Max-Age attribute and survive browser restarts.

What does HttpOnly mean?

HttpOnly prevents JavaScript from accessing the cookie via document.cookie. It protects auth tokens from XSS attacks — the cookie is only sent in HTTP requests, never readable by client-side scripts.

Related tools