Cookie / Set-Cookie Parser

Paste a Cookie or Set-Cookie header, edit RFC 6265 attributes, see SameSite and prefix flags, and copy a rebuilt header. It is parsed in your browser, never sent, and never written to the cookie store.

Loading…
Cookie / Set-Cookie Parser
Paste Cookie or Set-Cookie, edit attributes, see SameSite and prefix flags, and copy a rebuilt header. Not a Chrome cookie-store editor and not an extension.

Developer notes

Parser follows RFC 6265bis plus CHIPS Partitioned. Max-Age wins over Expires when both are present. Cookie: is name=value pairs. Set-Cookie: carries Domain, Path, Max-Age, Expires, Secure, HttpOnly, SameSite, Partitioned. Flags (always on, not options): SameSite=None without Secure; __Host- without Secure + Path=/ + no Domain; __Secure- without Secure; name+value size > 4096. Copy Cookie drops attributes. Copy Set-Cookie keeps them. Rebuild matches the detected kind for the live preview. Values that look like JWTs are not auto-decoded — use JWT Decode. FastMinify never reads document.cookie or chrome.cookies.

When this is the right tool

Check why SameSite=None was rejected (missing Secure). Verify a __Host- cookie has Path=/ and no Domain. Turn a Set-Cookie block into a Cookie request header for a ticket.

Worked examples

SameSite=None without Secure

Before

Set-Cookie: a=1; SameSite=None

After

SameSite=None requires Secure, so the tool shows a flag. Rebuild stays Set-Cookie: a=1; SameSite=None until you tick Secure.

Copy Cookie drops attributes

Before

Set-Cookie: a=1; Domain=example.com; Path=/; Secure; HttpOnly

After

Copy Cookie header → Cookie: a=1

Related HTTP and token tools

Back to the HTTP Tools hub. Format a request with cURL Formatter. Inspect a raw message with HTTP Message Parser. Decompose a URL with URL Parser. Inspect a session HAR with HAR Inspector. If a cookie value looks like a JWT, use JWT Decode, because this page does not auto-decode values.

Cookie / Set-Cookie Parser FAQ

Header grammar, not a cookie-store editor

Is this a cookie editor Chrome extension?

No. The slug is cookie-header-editor, but the job is a local Cookie / Set-Cookie parser. There is no install-extension CTA and no write to the browser cookie store.

Can I load cookies from this browser?

No. Paste a header. FastMinify never reads document.cookie or chrome.cookies.

Does SameSite=None without Secure fail the parse?

No. The row is kept, and a flag is shown. Rebuild includes your edits.

Are JWT cookie values decoded here?

No. Use JWT Decode if a value looks like a token.

What does Copy Cookie drop?

Attributes (Domain, Path, Max-Age, Expires, Secure, HttpOnly, SameSite, Partitioned). You get Cookie: name=value pairs only.

Paste cURL commands, HTTP messages, URLs, HAR files and Cookie or Set-Cookie headers to format and inspect them. Nothing is sent.