bookmarklet.one

Clear Session Storage Bookmarklet

Wipe sessionStorage for the current tab in one click and see how many keys were removed. A free bookmarklet for testing multi-step flows, no DevTools.

Clear Session Storage
← 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 DebuggingUpdated 2026-11-27Free · No extension · Runs locally

Clear Session Storage empties sessionStorage for the page you are on. sessionStorage is the short-lived sibling of localStorage: it belongs to a single browser tab and is used for things like checkout steps, form drafts, scroll positions, one-time redirect targets and "don't show this again in this session" flags.

When you are testing a multi-step flow, those leftovers get in the way. Closing the tab works, but you lose your place, your history and your DevTools setup. This bookmarklet shows the number of keys and their names, asks you to confirm, and clears them in place so you can reload and walk through the flow again.

Nothing else is touched: localStorage, cookies and other tabs keep their data, and the dialog lets you cancel if you notice a key you would rather keep. It works the same in Chrome, Edge, Firefox and Safari.

What it does

  • Counts the sessionStorage keys of the current tab and estimates their size
  • Lists up to 15 key names in a confirmation dialog
  • Runs sessionStorage.clear() after you confirm
  • Shows a short message with the number of keys removed
  • Does not touch localStorage, cookies or other tabs

How to install the Clear Session Storage 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 tab whose session data you want to reset.
  2. Click Clear Session Storage in your bookmarks bar.
  3. Check the key names in the dialog and press OK.
  4. Reload the page to restart the flow without the old session data.

sessionStorage quirks worth knowing

sessionStorage is scoped to both the origin and the tab. A tab opened with "Duplicate tab" or window.open starts with a copy of the opener's sessionStorage, so clearing one tab does not clear its copies. Data also survives a normal reload, which is exactly why stale wizard steps keep coming back while you debug. If the page you test sits inside an iframe from another origin, run the bookmarklet on that iframe's URL directly, because the top page cannot reach it.

Bookmarklet code

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

What is the difference between sessionStorage and localStorage?

localStorage persists until it is cleared, while sessionStorage is tied to one tab and disappears when that tab is closed.

Will this sign me out?

Rarely. A few apps keep tokens in sessionStorage, and those will ask you to sign in again after a reload.

Why does it say storage is empty?

The site simply does not use sessionStorage in this tab, or the page runs in a sandbox where storage is blocked.

Related bookmarklets

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

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

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

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