bookmarklet.one

Delete Cookies Bookmarklet

Delete all JavaScript-visible cookies for the current site, across every path and domain variant, and see how many were removed. Free, no extension.

Delete Cookies
← 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 PrivacyUpdated 2026-11-27Free · No extension · Runs locally

Delete Cookies removes the cookies of the site you are on without touching any other site. Browsers only let you clear cookies for one site from deep inside the settings, and the "clear browsing data" button wipes everything. This bookmarklet does the targeted version in one click.

Deleting a cookie from JavaScript only works if you repeat the exact path and domain it was set with, which is why simple cookie-deleting snippets often fail silently. This one tries every combination: no domain, the host name, each parent domain with and without a leading dot, the root path and every folder of the current URL. Afterwards it reads document.cookie again and reports how many cookies were actually removed and how many are left.

Use it to reset consent banners, A/B test buckets, tracking IDs, regional preferences or stuck login state while testing.

What it does

  • Finds every cookie readable through document.cookie
  • Expires each one for all domain variants (host, parent domains, leading dot) and all path variants of the current URL
  • Adds the Secure attribute on HTTPS pages so __Host- and Secure cookies can be removed
  • Re-checks afterwards and reports deleted vs. remaining cookies
  • Explains that HttpOnly cookies cannot be deleted by any script

How to install the Delete Cookies 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 any page of the site whose cookies you want to delete.
  2. Click Delete Cookies in your bookmarks bar.
  3. Read the message: it shows how many cookies were deleted and whether any remain.
  4. Reload the page; the site now treats you as a new visitor (unless HttpOnly cookies remain).

Why some cookies survive

Cookies marked HttpOnly are invisible to JavaScript and can only be removed by the server or by your browser settings. Most login sessions use this flag, so you may stay signed in. Cookies set for a path that is not part of the current URL (for example /shop/ while you are on /blog/) are also invisible from here; run the bookmarklet on a page under that path. Third-party cookies set by embedded services belong to other sites and are not affected. Check the result with Cookie Inspector.

Bookmarklet code

This is the exact code inside the button above (2,277 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

Does this delete cookies for all websites?

No. It only removes cookies belonging to the site in the current tab.

Why am I still logged in?

Your session cookie is probably HttpOnly, which scripts cannot read or delete. Use your browser's site settings to remove it.

Does it clear localStorage too?

No. Use Clear Local Storage and Clear Session Storage for those.

Related bookmarklets

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

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

Wipe sessionStorage for the current tab in one click and see how many keys were removed. A free bookmarklet for testing…

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