localStorage Viewer

The localStorage viewer shows the keys this site has saved in your browser's localStorage and sessionStorage, with JSON values pretty-printed. Search keys and values, edit or delete them, add new ones, and export or import everything as JSON. It's also a hands-on way to see how web storage works — browsers only let a page see its own site's storage, so for other sites the page explains how to use DevTools. Nothing leaves your browser.

Browser storage compared

StorageLifetimeSizeSent to server
localStorageUntil cleared~5 MBNo
sessionStorageUntil the tab closes~5 MBNo
CookiesSet by expiry~4 KB eachYes, with requests
IndexedDBUntil clearedLarge, quota-basedNo

When to use it

  1. See what a site keeps in localStorage.
  2. Reset a saved preference or tool setting.
  3. Back up or move saved data with JSON export and import.
  4. Learn the difference between localStorage and sessionStorage.

How to Use

  1. Choose localStorage or sessionStorage.
  2. Filter the keys and edit a value, then click away to save.
  3. Add or delete keys.
  4. Export or import all keys as JSON.

Features

  1. localStorage and sessionStorage
  2. Pretty-printed JSON
  3. Search, edit, add and delete
  4. Size estimate
  5. JSON export and import
  6. Clear errors for full storage
  7. 100% client-side

FAQs

Can this show another website's localStorage?

No. Browsers only allow a page to read storage for its own site. Open DevTools on the other site (F12 → Application → Storage) instead.

What's the difference between localStorage and sessionStorage?

localStorage persists until cleared; sessionStorage is per tab and is cleared when the tab closes.

How much can localStorage hold?

About 5 MB per site in most browsers. Values are stored as strings.

Why are my JSON values compacted when I save?

They're stored with JSON.stringify to save space; the viewer pretty-prints them again for reading.

Is anything uploaded?

No. Storage is read and changed only in your browser.

Technical Details

localStorage and sessionStorage are key/value stores of strings scoped to an origin — protocol, host and port. The browser only gives a page access to its own origin's storage, so this viewer lists what toolsnests.com has stored in this browser; to inspect another site you use DevTools on that site. Keys are read with Storage.key(i) and getItem, sorted and filterable. Values that parse as a JSON object or array are pretty-printed for editing and written back compactly with JSON.stringify; other values are stored as typed. Size is estimated as UTF-16 (two bytes per character of key and value) against the roughly 5 MB per-origin limit most browsers apply; a write that exceeds it throws QuotaExceededError, which is shown rather than lost. Export produces a JSON object of all keys; import accepts the same shape and stringifies non-string values. Access is wrapped in try/catch because storage can be disabled or throw in private modes.

Developer Tools

Developer Tools

  • Public API Directory
  • Tech Stack Decision Matrix
  • htaccess Redirect Generator
  • Code to Image
  • Hash Generator
  • Email Validator
  • User Agent Parser
  • Chmod Calculator