Cookie and Set-Cookie Header Parser and Validator
Parse a Cookie or Set-Cookie header into names, values and attributes and flag problems such as a missing Secure flag, SameSite=None without Secure or a bad Expires date.
- Free
- No sign-up
- Works on any device
About Cookie and Set-Cookie Header Parser and Validator
Cookie problems often come from one missing attribute. This tool reads a Cookie header (name=value pairs sent by the browser) or one or more Set-Cookie headers (a cookie plus attributes sent by the server), lays out every name, value and attribute, and checks the rules browsers apply: Secure and HttpOnly present, SameSite valid and not None without Secure, __Host- and __Secure- prefix requirements, Partitioned with Secure, Expires in the standard date form, a numeric Max-Age, sensible Domain and Path, and cookie size under about 4096 bytes.
How to use Cookie and Set-Cookie Header Parser and Validator
- Paste the header from your browser's developer tools or from your server response, one header per line.
- Leave the type on automatic, or choose Cookie or Set-Cookie yourself.
- Read the cookie table and the list of errors, warnings and notes, then fix the header in your application.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Why must SameSite=None have Secure?
Browsers reject cross-site cookies that are not marked Secure, to stop them being sent over plain http. A cookie with SameSite=None and no Secure flag is dropped.
What do the __Host- and __Secure- prefixes require?
__Secure- needs the Secure attribute. __Host- needs Secure, Path=/ and no Domain attribute, which locks the cookie to the exact host.
Which wins when both Expires and Max-Age are set?
Max-Age takes priority in current browsers. The page notes the clash so you can keep just one of them.
Is Cookie and Set-Cookie Header Parser and Validator free?
Yes. Cookie and Set-Cookie Header Parser and Validator on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.