Session Storage Viewer – View & Edit sessionStorage

View and edit sessionStorage data. Useful for debugging. All in your browser.

0 items in sessionStorage • Storage used: 0 B / ~5 MB

Add New Item

No sessionStorage items found

SessionStorage is empty for this domain. Use the form above to add a key/value or interact with your web application to populate sessionStorage.

Import JSON into sessionStorage

Paste a JSON object where each key becomes a sessionStorage key and each value is stored as a string.

How to view sessionStorage

The SessionStorage Viewer loads all sessionStorage items for the current domain directly in your browser. To view sessionStorage:

  1. Open the page where your application uses sessionStorage.
  2. Open this SessionStorage Viewer tool in the same domain.
  3. Click Refresh to load all keys and values.
  4. Use search to filter by key or value, and use the table actions to copy, edit, or delete specific items.

sessionStorage vs localStorage

Both sessionStorage and localStorage are part of the Web Storage API, but they behave differently:

  • sessionStorage persists data only for the current tab or window. Data is cleared when the tab closes.
  • localStorage persists data across browser sessions and remains until explicitly cleared.
  • Both only store strings; objects must be serialized with JSON.stringify and parsed with JSON.parse.

When to use sessionStorage

Use sessionStorage for temporary, per-tab data that should not persist once the user closes the tab:

  • Wizard or multi-step form progress within a single session.
  • Temporary UI state that should reset when the tab is closed.
  • Short-lived tokens or flags that do not need to survive a full browser restart.

Debugging sessionStorage in JavaScript

You can interact with sessionStorage directly in JavaScript while using this SessionStorage Viewer to inspect changes in real time:

sessionStorage.setItem("user", "123");

const user = sessionStorage.getItem("user");

sessionStorage.removeItem("user");

sessionStorage.clear();

Run these commands in your browser console or application code, then use this tool to verify what is stored, rename keys, pretty-print JSON payloads, and debug any issues with your session storage logic.

Explore these related free tools to enhance your productivity and workflow.

Frequently Asked Questions

What is sessionStorage?

sessionStorage is a web browser API similar to localStorage, but data only persists for the current browser session. When the browser tab or window is closed, all sessionStorage data is cleared.

How do I view sessionStorage data?

The tool automatically loads and displays all sessionStorage items for the current domain. You can see all keys and values, edit them, add new items, or delete existing ones directly from the interface.

What's the difference between localStorage and sessionStorage?

localStorage persists data even after the browser is closed, while sessionStorage only stores data for the current browser session. sessionStorage is cleared when the tab or window is closed, making it ideal for temporary data.

Can I edit sessionStorage items?

Yes! Click the edit icon next to any item to modify its value. You can also add new items using the 'Add Item' form and delete items using the trash icon. Changes are saved immediately to sessionStorage.

Is the sessionStorage viewer free to use?

Yes! Our sessionStorage viewer is 100% free with no registration required, no usage limits, and no hidden fees. You can view and manage sessionStorage as much as you need for your development work.

Are my sessionStorage items stored or tracked?

No, all sessionStorage viewing and editing happens locally in your browser. We don't store, save, or have access to any sessionStorage data. Your privacy is completely protected.

What's the storage limit for sessionStorage?

Most browsers allow 5-10MB of sessionStorage per domain, similar to localStorage. The exact limit varies by browser. If you exceed the limit, setting new items will fail with a QuotaExceededError.

When is sessionStorage cleared?

sessionStorage is cleared when the browser tab or window is closed. Unlike localStorage, it doesn't persist after the session ends. This makes it ideal for temporary data that should be cleared when the user leaves.

Can I store objects in sessionStorage?

sessionStorage only stores strings, just like localStorage. To store objects, use JSON.stringify() to convert them to strings, and JSON.parse() to retrieve them. The tool displays values as strings.

How do I refresh the sessionStorage data?

Click the 'Refresh' button to reload all sessionStorage items. The tool displays the current state of sessionStorage, which updates automatically when items are added, modified, or deleted.