Reading what a cookie really says
A Set-Cookie header looks like a wall of text. Name, value, a pile of semicolons and some flags. Reading it by eye is slow, and it's easy to miss a missing Secure flag or a wrong expiry.
Paste a cookie string or header into the decoder and it breaks it into fields. It decodes percent-encoded values, shows the expiry as a date and flags settings that could cause trouble.
The attributes that matter
HttpOnly stops page scripts from reading the cookie, which limits damage from cross-site scripting. Secure makes the browser send it only over HTTPS. SameSite controls whether it goes along with requests from other sites, and it's a key defence against cross-site request forgery.
Domain and Path decide where the cookie is sent. Expires and Max-Age set how long it lives. A session cookie has neither and vanishes when the browser closes.
- Session and login cookies should be HttpOnly and Secure
- SameSite=Lax is a sensible default. Strict is tighter
- SameSite=None requires Secure
- Keep expiry as short as the feature allows
Why the value looks like gibberish
Many cookie values are encoded. Some are Base64. Some are URL-encoded. Others are random session IDs that mean nothing without the server's records. A few hold signed data, like a JSON Web Token, which you can decode but not safely edit.
The tool tries common decodings and shows what it finds. If a value stays unreadable, it's probably an opaque ID, and that's by design.
Getting a cookie string
Open your browser's developer tools, go to the Network tab and click a request. Look for Set-Cookie in the response headers or Cookie in the request headers. You can also read cookies in the Application or Storage tab.
Use this only on your own cookies, for debugging and learning. Never paste a live session cookie from a real account into any tool, since it can be used to sign in as you.
Decoding runs in your browser. Nothing is sent to a server.