Local Storage Viewer – View & Edit localStorage
100% in your browserNothing sent to a serverSame-origin storage only
No items yet for this site
localStorage is per-domain. This origin does not have any keys stored yet—or the list is empty.
Get started in 3 steps
- Click Insert example below to add sample data.
- Watch keys and values appear in the list.
- Use copy, edit, or delete to learn the tool.
localStorage.setItem("theme", "dark")
What you can do here
- View keys and values stored for this site
- Edit values and save instantly
- Debug apps by inspecting what is saved locally
Use the mode toggle under the title for export, import, JSON view, bulk actions, and shortcuts.
View and edit localStorage data for the current domain. Useful for debugging. Runs in your browser.
Actions
0 items for this domain
Add new item
Add new item
What is LocalStorage?
LocalStorage is a browser storage API that allows websites to store key-value data directly inside the user's browser. Unlike cookies, localStorage data persists even after the browser is closed.
Developers commonly use localStorage to store user preferences, authentication tokens, cached application data, and temporary settings.
Using a LocalStorage Viewer makes it easier to inspect and debug localStorage values stored by web applications. This browser storage viewer runs entirely in your browser with no data sent to any server.
How to View LocalStorage in Your Browser
You can view localStorage data using browser developer tools. Most modern browsers including Chrome, Firefox, and Edge allow developers to inspect localStorage directly.
- Open browser Developer Tools (F12 or Right-click → Inspect)
- Navigate to the Application tab (Chrome/Edge) or Storage tab (Firefox)
- Select Local Storage in the sidebar
- Choose your domain to see all keys and values
Alternatively, you can use this LocalStorage Viewer to view localStorage and edit localStorage online in your browser without opening DevTools. It works on any site you visit.
How to view localStorage in Chrome
In Google Chrome, press F12 or right-click the page and choose Inspect. Open the Application tab, expand Storage in the left sidebar, then click Local Storage and select your site's origin. You will see a table of keys and values for that domain only.
This LocalStorage Viewer shows the same origin-bound data in a simpler layout: search, edit, and export without digging through DevTools panels—useful when you want a focused browser storage view.
How to edit localStorage data
To edit localStorage data in DevTools, open the Application → Local Storage table, double-click a value, change the text, and press Enter. In this tool, click the pencil icon next to a row, update the value in the text area, and choose Save—the new string is written immediately with setItem.
You can also add keys with the Add new item section or merge many keys at once using Import JSON (Advanced mode). Always double-check values: incorrect JSON or tokens can break app flows until you fix or remove them.
Inspect browser storage online
When people search for inspect browser storage online, they usually want a clear list of keys and values for the current website. This page runs entirely in your browser: data never leaves your device, and you only see storage for the domain you opened the tool on.
Use it to audit what a site stores, debug SPA state, or copy values for support. For session-only data, use DevTools to inspect Session Storage; this viewer focuses on localStorage persistence across visits.
Debugging LocalStorage Data
When building modern web applications, developers frequently store tokens, configuration settings, and cached data inside localStorage.
Debugging localStorage can help identify issues such as incorrect values, expired tokens, or unexpected data stored by the application.
This LocalStorage Inspector allows developers to quickly view, edit, delete, and export storage data directly inside the browser. You can copy keys and values, download data as JSON or .env, and monitor storage usage—useful for debug localstorage workflows.
LocalStorage JavaScript Examples
Save data to localStorage
localStorage.setItem("theme", "dark");Read data from localStorage
const theme = localStorage.getItem("theme");Remove a value
localStorage.removeItem("theme");Clear all storage
localStorage.clear();
Get localStorage size (bytes)
Object.keys(localStorage).reduce((total, key) => {
return total + localStorage.getItem(key).length;
}, 0);Check if localStorage is supported
function isLocalStorageAvailable() {
try {
const test = "__test__";
localStorage.setItem(test, test);
localStorage.removeItem(test);
return true;
} catch {
return false;
}
}Store objects in localStorage
const user = { name: "John", role: "admin" };
localStorage.setItem("user", JSON.stringify(user));Retrieve object from localStorage
const user = JSON.parse(localStorage.getItem("user"));Common LocalStorage Snippets
Click copy to use in your project.
Save data
localStorage.setItem("key","value")Read data
localStorage.getItem("key")Remove item
localStorage.removeItem("key")Clear storage
localStorage.clear()
LocalStorage Size Limits
Most modern browsers allow approximately 5 MB of localStorage per domain. The exact limit varies depending on the browser (some allow up to 10 MB).
If the storage quota is exceeded, the browser will throw a QuotaExceededError when attempting to store additional data.
Developers can monitor storage usage using tools like this LocalStorage Viewer, which displays total storage usage and individual item sizes so you can stay within the browser localStorage limit.
LocalStorage vs SessionStorage
Understanding the difference between localStorage and sessionStorage helps you choose the right API. Both store key-value pairs per origin, but they differ in persistence and scope.
| Feature | LocalStorage | SessionStorage |
|---|---|---|
| Persistence | Permanent (until cleared) | Session only (tab closed) |
| Scope | Per origin (shared across tabs) | Per tab |
| Storage limit | ~5 MB | ~5 MB |
| Use case | Preferences, auth tokens, cached data | Temporary session data, form drafts |
Use localStorage when you need data to persist across sessions (e.g. theme, user settings). Use sessionStorage when data should live only for the current tab session (e.g. multi-step form state). This localstorage viewer inspects localStorage; use DevTools to inspect sessionStorage the same way.
Related Developer Tools
You may also find these developer tools useful when working with data and APIs:
- JSON Formatter — Format and validate JSON
- JSON Validator — Validate JSON syntax
- Regex Tester — Test regular expressions
- URL Encoder — Encode and decode URLs
- Timestamp Converter — Convert timestamps
- JWT Decoder — Decode and inspect JWT tokens
- Base64 Encoder / Decoder — Encode and decode Base64
- Domain Extractor — Extract domains from URLs and text
Why Use a LocalStorage Viewer?
A LocalStorage Viewer is essential for debugging web apps, inspecting stored data, and understanding what your application saves in the browser. Use it to troubleshoot login issues (e.g. stale or missing tokens), check cached settings, and verify that keys and values are written correctly.
This tool lets you inspect localStorage without opening DevTools, debug localStorage by editing values on the fly, and export data for backup or analysis. Whether you're building a SPA, debugging a third-party integration, or auditing what a site stores, a browser localStorage viewer saves time and keeps everything client-side and private.
About Local Storage Viewer
The Local Storage Viewer is an essential tool for web developers working with browser storage. It displays all localStorage items for the current domain, allowing you to view, edit, add, and delete storage items directly. Perfect for debugging web applications, inspecting stored data, and managing browser storage during development.
Use Cases:
- Debugging localStorage usage in web applications
- Inspecting stored data and values
- Editing localStorage items during development
- Clearing localStorage for testing
- Understanding what data websites store
- Managing browser storage manually
Key Features:
- View all localStorage items for current domain
- Edit existing items inline
- Add new localStorage items
- Delete individual or all items
- Copy items or all data as JSON
- 100% browser-based - no server processing
Related Tools
Explore these related free tools to enhance your productivity and workflow.
JSON Formatter
Format, validate, and minify JSON code with syntax highlighting
JSON Validator
Validate JSON syntax with error detection and location highlighting
Regex Tester
Test regular expressions with match highlighting and common patterns
URL Encoder/Decoder
Encode and decode URLs with component and full URL support
Timestamp Converter
Convert Unix timestamps to dates and dates to timestamps
JWT Decoder
Decode JWT tokens to view header and payload information
Frequently Asked Questions
What is localStorage?
localStorage is a web browser API that allows websites to store key-value pairs locally in the user's browser. Data persists even after the browser is closed and can be accessed by JavaScript on the same domain.
How do I view localStorage data?
The tool automatically loads and displays all localStorage 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.
Can I edit localStorage 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 localStorage.
Is localStorage data secure?
localStorage is domain-specific, meaning data is only accessible by JavaScript from the same domain. However, it's not encrypted and can be accessed by any script on the domain, so don't store sensitive information like passwords.
Is the localStorage viewer free to use?
Yes! Our localStorage viewer is 100% free with no registration required, no usage limits, and no hidden fees. You can view and manage localStorage as much as you need for your development work.
Are my localStorage items stored or tracked?
No, all localStorage viewing and editing happens locally in your browser. We don't store, save, or have access to any localStorage data. Your privacy is completely protected.
What's the storage limit for localStorage?
Most browsers allow 5-10MB of localStorage per domain. The exact limit varies by browser. If you exceed the limit, setting new items will fail with a QuotaExceededError.
Can I store objects in localStorage?
localStorage only stores strings. To store objects, use JSON.stringify() to convert them to strings, and JSON.parse() to retrieve them. The tool displays values as strings, so you'll need to parse JSON manually if needed.
How do I refresh the localStorage data?
Click the 'Refresh' button to reload all localStorage items. The tool also automatically refreshes when storage events occur (when localStorage is modified in other tabs).
What happens if I clear all localStorage?
Clearing localStorage removes all items for the current domain. This action cannot be undone. Make sure to copy any important data before clearing if you need it later.
Can I use this on any website?
Yes! The tool works on any website. It displays localStorage items for the current domain you're visiting. Each domain has its own separate localStorage, so you'll only see items for the current site.
How to view localStorage in Chrome?
In Chrome, open DevTools (F12 or Right-click → Inspect), go to the Application tab, and under Storage select Local Storage, then your domain. You can also use this LocalStorage Viewer to inspect and edit localStorage without opening DevTools.
How to edit localStorage values?
Use this LocalStorage Inspector to edit values inline: click the edit icon next to any item, change the value, and save. You can also add new keys and delete existing ones. All changes are saved immediately to your browser storage.
How to inspect localStorage data?
To inspect localStorage data, open browser Developer Tools → Application → Local Storage, or use this free LocalStorage Viewer to view keys and values, search, sort by size, and export as JSON or .env. Data is shown for the current domain only.
What is the localStorage size limit?
Most browsers allow about 5–10 MB of localStorage per origin. The exact limit varies; exceeding it causes a QuotaExceededError when calling setItem(). This tool displays total storage usage so you can monitor how much space you use.