How to use
- Cookie headerSet-Cookie header
Paste a cookie
- Attribute tableSameSite and Secure checksViolations are flagged
Parse and check the rules
- Express, Next.js and more
Generate server code
In the Parse tab, choose the input type (Cookie header or Set-Cookie) and paste it. “Try a sample” also works.
Paste each Set-Cookie on its own line. The table shows the name, expiry, Domain, Path, Secure, HttpOnly and SameSite.
Go through “Points to check” from high to low. The findings are guidance, so compare them with your server’s actual settings.
In the Generate tab, fill in the name, value and attributes. Fix any field that shows an error to see the Set-Cookie header and framework code.
Before you copy the code, check that your library version supports it.
What it does
Attribute table and points to check
Each Set-Cookie is shown as one row with its name, value, expiry, Domain, Path, Secure, HttpOnly, SameSite, Partitioned and Priority. Parsing follows RFC 6265bis: Max-Age takes precedence over Expires, and an invalid Expires is ignored.
Hides values that look secret
Checks the shape of keys such as JWT, AWS, GitHub and Stripe with the same rules as the secret scanner. Matching values are hidden in the table, and findings show only the rule name.
Set-Cookie generator and five code formats
Builds a Set-Cookie header from a form, with code for Express, Next.js, PHP, Django and nginx (proxy_cookie_flags). The value can be URL-encoded, and a ; or line break in it cannot add an attribute or a new header.
Prefix and combination checks
Checks the __Host- and __Secure- rules, and that SameSite=None and Partitioned need Secure. A Domain with one or two labels is flagged as covering a wide range of hosts.
Use cases
- Check that SameSite, Secure and HttpOnly are written correctly in a Set-Cookie
- Find out why a SameSite=None cookie is not stored
- Check the rules for the __Host- and __Secure- name prefixes
- See how to set a cookie in Express, Next.js, PHP and other frameworks
- Understand the attributes you see in the browser developer tools
Supported formats
Input
Output
Capability matrix
| Feature | Support | Notes |
|---|---|---|
| Parsing Cookie and Set-Cookie headers into an attribute table | Supported | — |
| Points to check (SameSite, Secure, prefixes, Domain, expiry and more) | Partial | Guidance based on the specification. Browser differences are not included |
| Detection of values that look secret | Partial | Only shapes that match the rules. Secrets in other shapes are not found |
| Generating a Set-Cookie header and code for languages and frameworks | Supported | — |
| Fetching the real cookies from a site | Not supported | Entering a URL does not connect to it. Paste the response headers instead |
| Reading cookies stored in the browser | Not supported | Not possible from here. Use the Cookies view in developer tools (Application in Chrome, Storage in Firefox) |
| Testing cookie sending and receiving in a browser | Not supported | Only the format and the specification are checked. Actual exchanges are not tested |
Limits & notes
- The checks are guidance based on RFC 6265bis and the behaviour of major browsers. Results can differ by browser and version.
- Values that look secret use the same rules as the secret scanner, without the entropy check. Random session IDs may therefore not be flagged.
- Up to 200 lines and 50,000 characters can be parsed at once.
- The generator accepts Max-Age up to 31536000 seconds (one year). The name and value together must be 4096 bytes or less.
- Path is checked for its shape only. Domain is checked for its shape and against a short list of representative public suffixes (such as co.jp and github.io). A public suffix that is not on that list is not detected.
- The code examples show common syntax. Argument names and defaults can differ between library versions.
- Works on phones too, but PC is recommended for checking many cookies at once.
Privacy & safety
The cookies you paste are processed only in your browser. Nothing is sent to or stored on a server.
FAQ
Why is a SameSite=None cookie without Secure not stored?
What does HttpOnly do?
Which takes precedence, Max-Age or Expires?
What is the difference between __Host- and __Secure-?
Should a cookie value be URL-encoded?
Related tools
CSP Studio
Paste a Content-Security-Policy header or meta tag to see unsafe-inline, unsafe-eval, wildcards and missing object-src or base-uri, ranked high, medium or low, with a suggested policy. Generation and hash calculation are included.
Secret Scanner
Paste text or drop config and code files to list likely secrets with file, line and rule before you publish or share them. Values are masked by default and you can save a copy with them replaced by ***. A helper only — it cannot guarantee that nothing is missed.
HAR Sanitizer
Load a HAR saved from your browser developer tools and save a copy with cookies, auth headers, URL tokens, passwords and JWTs redacted, before you send it to support. A helper only — it cannot guarantee that every secret is found. The HAR never leaves your device.
curl Converter
Paste “Copy as cURL” from Chrome or Firefox to see the method, URL, headers, cookies and body in tables, then convert to 12 kinds of code. The request is never sent and everything runs in your browser. Authorization and cookies can be hidden before you share.
Mail Header Analyzer
Paste Gmail’s “Show original” or the headers of an .eml file to get the delivery route in time order, authentication results and mismatches with the From domain. Everything runs in your browser; no DNS, WHOIS or IP location lookups are made.
HTML Inspector
Paste a page’s HTML to review SEO and accessibility basics at a glance: heading structure, meta tags, Open Graph, image alt text, links and structured data — with a preview of how it may look in search and on social media.
Last updated: