Development

Cookie Parser & Builder

Parse, edit and rebuild Cookie and Set-Cookie HTTP headers.

Cookie header type

Choose whether you are parsing a request Cookie header or a response Set-Cookie header.

Cookie request header

Paste the header value without the header name.

Parse a cookie header

Enter a Cookie or Set-Cookie value to inspect and edit its contents.

Local cookie processing

Cookie values are parsed entirely inside your browser and are never uploaded or stored.

About this tool

What is Cookie Parser & Builder?

HTTP cookies store small pieces of state between browser requests. This tool parses request Cookie headers and response Set-Cookie headers, allowing you to inspect values, security attributes and expiration settings.

Features

Built for fast developer workflows

  • Parse request Cookie headers containing multiple values.
  • Inspect Set-Cookie attributes such as Secure, HttpOnly and SameSite.
  • Edit cookie names, values and attributes.
  • Add, duplicate and remove request cookies.
  • Rebuild valid Cookie and Set-Cookie header values.
  • Process all cookie data locally in your browser.

Frequently asked questions

Questions about Cookie Parser & Builder

What is the difference between Cookie and Set-Cookie?

A server sends Set-Cookie in a response to create or update a cookie. A browser later sends stored cookies back to the server using the Cookie request header.

What does HttpOnly do?

HttpOnly prevents client-side JavaScript from accessing the cookie through document.cookie, reducing exposure to some cross-site scripting attacks.

What does the Secure attribute do?

Secure instructs browsers to send the cookie only over secure HTTPS connections, except for limited localhost behavior implemented by some browsers.

What does SameSite control?

SameSite controls when cookies are included in cross-site requests. Common values are Strict, Lax and None.

Are cookie values uploaded?

No. Parsing and rebuilding happen entirely inside your browser.

Related tools