bookmarklet.one

Cookie Inspector Bookmarklet

See the cookies a page can read in a clean table: name, decoded value, size and JWT payloads, with copy buttons. Free bookmarklet, works without DevTools.

Cookie Inspector
← Drag this button to your bookmarks bar.Click it here to try it on this page first.

On a phone? Use Copy code, then save it as a bookmark's URL — step-by-step guide.

Web Dev Privacy DebuggingUpdated 2026-11-27Free · No extension · Runs locally

Cookie Inspector shows every cookie the current page can read through document.cookie in a sortable, readable table instead of one long semicolon-separated string. Each row shows the name, the raw value, a URL-decoded version when it differs, and the size in bytes.

It also recognizes common formats. JSON values are pretty-printed, and JSON Web Tokens get their payload decoded so you can check claims such as exp or sub at a glance. Every value has a copy button, and you can copy the full set as JSON or as a ready-to-paste Cookie: header for curl or Postman.

The panel is upfront about its limits: cookies marked HttpOnly are hidden from JavaScript by design, so session cookies set that way will not appear here. That is a security feature of the site, not a bug in the tool. For those, use the Application tab in DevTools.

What it does

  • Table of all JavaScript-visible cookies: name, value, decoded value and size
  • Detects JSON values and JSON Web Tokens and shows the decoded payload
  • Copy buttons for each value, plus Copy as JSON and Copy as Cookie header
  • Total cookie count and size for the page
  • Clear note that HttpOnly cookies, and the expiry, domain and flags of every cookie, are not readable from JavaScript

How to install the Cookie Inspector bookmarklet

  1. Show your bookmarks bar. Press Ctrl+Shift+B on Windows/Linux or Cmd+Shift+B on a Mac (Chrome, Edge, Brave, Firefox). In Safari choose View › Show Favorites Bar.
  2. Drag the blue button above onto the bar. That's it — the bookmark now holds the code.
  3. Open any website and click the bookmark to run it on that page. Click it again to close it.

Can't drag (phone, tablet, locked-down browser)? Copy the code below, create any bookmark, then edit it and paste the code as its URL. See how to add a bookmarklet in every browser.

How to use it

  1. Open the page whose cookies you want to inspect.
  2. Click Cookie Inspector in your bookmarks bar.
  3. Read the table; decoded values and JWT payloads appear under the raw value.
  4. Use the copy buttons to grab a single value, the whole set as JSON, or a Cookie header for curl.

What JavaScript can and cannot see

document.cookie returns only names and values for cookies that match the current path and are not HttpOnly. Expiry dates, the Domain, SameSite and Secure flags are never exposed to page scripts, so no bookmarklet can show them. If a cookie you expect is missing, it is most likely HttpOnly or scoped to a different path or subdomain. A large total size matters because every cookie is sent with every request to the domain; staying well under 4 KB per cookie is a good habit.

Bookmarklet code

This is the exact code inside the button above (8,105 characters). It runs only in your browser and sends nothing to us. Paste it into the Bookmarklet Decoder to read it formatted.

Frequently asked questions

Why don't I see the session cookie?

Session cookies are usually set with the HttpOnly flag, which hides them from JavaScript. Check DevTools > Application > Cookies to see them.

Is it safe to use?

Yes. Everything happens in your browser; values are never sent anywhere. Be careful where you paste copied tokens, though.

Can it show expiry dates?

No. Browsers do not expose cookie attributes such as expiry or SameSite to JavaScript.

Related bookmarklets

Delete all JavaScript-visible cookies for the current site, across every path and domain variant, and see how many were…

Browse localStorage and sessionStorage in a clean table with sizes and pretty JSON. Copy or delete single keys and export…

Clear localStorage for the current site in one click. See how many keys will go before you confirm. Free bookmarklet, no…

List inline and property event handlers (onclick, oncontextmenu and more) on any page, jump to each element, and get a…