Viewing local storage contents on IE

116,875

Solution 1

Since localStorage is a global object, you can add a watch in the dev tools. Just enter the dev tools, goto "watch", click on "Click to add..." and type in "localStorage".

Solution 2

In IE11, you can see local storage in console on dev tools:

  1. Show dev tools (press F12)
  2. Click "Console" or press Ctrl+2
  3. Type localStorage and press Enter

Also, if you need to clear the localStorage, type localStorage.clear() on console.

Solution 3

Edge (as opposed to IE11) has a better UI for Local storage / Session storage and cookies:

  • Open Dev tools (F12)
  • Go to Debugger tab
  • Click the folder icon to show a list of resources - opens in a separate tab

Dev tools screenshot

Share:
116,875
govin
Author by

govin

I'm a software practitioner. My technical interests are in C#, Java, web programming, data access tech and writing efficient and testable solutions. Most of my experience has been in C#. I'm presently learning Java to get an in-depth understanding of the language. I'm interested in building great products that solve a real need. Stackoverflow is great community. Like many other developers, I have also immensely benefited from it. I'm happy that I can contribute back to it in my own little way with questions, answers and edits.

Updated on July 05, 2022

Comments

  • govin
    govin almost 2 years

    How can I view the contents of HTML5 local storage in IE? Chrome and FireFox provide a way through their developer tools to view the contents of local storage but I couldn't find that information using IE9 developer tool.

  • Wayne Weibel
    Wayne Weibel over 10 years
    Is there a way to manipulate the storage without issuing commands through the console? ie. localStorage.removeItem
  • Luke
    Luke almost 9 years
    Well... as long as you have a console, you can always see and interact with the localStorage.. but the native dev tools you have on Chrome or Firefox to fiddle with the local storage are way more easy and informative (..and sadly this is still true on IE11, AFAIK..)
  • Pete Alvin
    Pete Alvin over 8 years
    FYI my IE 11, after clicking the folder, shows the loaded scripts, but NOT the following sub-folders: Local Storage, Session Storage, etc., as illustrated in the image above.
  • funkadelic
    funkadelic over 8 years
    @PeteAlvin I didn't see it in IE 11 on Win 8, but did see it on Win 10
  • ebhh2001
    ebhh2001 almost 8 years
    Same here. Don't see the storage folders in IE11 on Win 8.1.
  • DerMike
    DerMike about 7 years
    Same here. Don't see the storage folder in IE11 in Win7
  • Chewy
    Chewy over 6 years
    Windows 10, IE 11 - no Local (or session) storage folder.
  • Scott Martin
    Scott Martin over 5 years
    @ the above... this answer is talking about Edge, not IE11.
  • Sorin
    Sorin about 5 years
    If you need to add anything to localstorage: localStorage.setItem(newItem, 'hello'); for removing: localStorage.removeItem(newItem);