By OammieR

2011-12-26 08:20:29 8 Comments

Where are sessionStorage and localStorage stored on the client's computer?
Could you tell me the path?


@NatureShade 2014-12-22 23:57:31


Firefox stores localstorage in webappsstore.sqlite file in the profile folder.

Firefox (Windows XP):

C:\Documents and Settings\<Windows login/user name>\Application Data\Mozilla\Firefox\Profiles\<profile folder>\webappsstore.sqlite

Firefox (Windows Vista and above):

C:\Users\<Windows login/user name>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile folder>\webappsstore.sqlite


%APPDATA%\Mozilla\Firefox\Profiles\<profile folder>\webappsstore.sqlite

Firefox on linux:

~/.mozilla/firefox/<profile folder>/webappsstore.sqlite

Firefox on mac:

~/Library/Application Support/Firefox/Profiles/<profile folder>/webappsstore.sqlite


~/Library/Mozilla/Firefox/Profiles/<profile folder>/webappsstore.sqlite


Chrome stores in separate files inside the Local Storage directory.

Chrome on windows:

%LocalAppData%\Google\Chrome\User Data\Default\Local Storage\

Chrome on linux:

~/.config/google-chrome/Default/Local Storage/

Chrome on mac:

~/Library/Application Support/Google/Chrome/<Profile>/Local Storage/


~/Library/Application Support/Google/Chrome/Default/Local Storage/

Internet explorer:

I am a bit unsure, but think this will do the trick

%userprofile%\AppData\LocalLow\Microsoft\Internet Explorer\DOMStorage


As said by OammieR:


or as said by Kevin Hakanson:



@boxspah 2014-12-25 14:07:57

Can you kindly include a source of all this information?

@NatureShade 2014-12-25 16:00:46

@DominatorX i have added sources, but i am unsure about ie

@Franklin Yu 2018-03-26 15:08:21

This is only about localStorage right? How about sessionStorage mentioned by OP?

@baptx 2018-10-05 09:32:28

@FranklinYu have a look here:…

@OammieR 2011-12-29 02:57:55

I found this (Opera)


and another from

Where does Firefox store javascript/HTML localStorage?

@Kevin Hakanson 2013-03-29 20:50:54

The data for Opera (version 12.14 on Windows 7) was located under C:\Users\Administrator\AppData\Local\Opera\Opera\pstorage\

A psindex.dat contained the index to the actual data files. I visited TodoMVC and the quirksmode HTML5 Test - storage to get data saved.

<?xml version="1.0" encoding="utf-8"?>
  <section id="BA27342AD231CFCE350305FA85EB6ED1D2C57ABC">
    <value id="Type" xml:space="preserve">localstorage</value>
    <value id="Origin" xml:space="preserve"></value>
    <value id="DataFile" xml:space="preserve">pstorage\00\07\00000000</value>
  <section id="DAA00EFF4F10589343DE5A9AD5C47BD8F28FFFD4">
    <value id="Type" xml:space="preserve">localstorage</value>
    <value id="Origin" xml:space="preserve"></value>
    <value id="DataFile" xml:space="preserve">pstorage\00\0F\00000000</value>

The quirksmode test page let you interactively use the localstorage APIs, so I effectively executed the following code:


For Firefox see Where does firefox store javascript/HTML localStorage? and for Chrome see How is HTML5 WebStorage data physically stored?.

Opera seems to base64 encode the JavaScript unicode strings in the pstorage\00\0F\00000000 file.


Below are the Base64 values above, also encoded as hex and as a string (where \0 represents String.fromCharCode(0)).

Base64: TgBhAG0AZQA=
Hex: 4E0061006D006500
String: N\0a\0m\0e

Base64: VgBhAGwAdQBlAA==
Hex: 560061006C0075006500
String: V\0a\0l\0u\0e\0 

@testndtv 2011-12-26 11:22:09

LcalStorage and Session storage are stored as per the browser specific paths (like we have for Cookies)....Also it is kind of limited to the Sandboxed environment of the application. So, only the domain which sets them can read or access it.

Again also remember that only the user has control over expiry of these storage.

Related Questions

Sponsored Content

22 Answered Questions

[SOLVED] Storing Objects in HTML5 localStorage

8 Answered Questions

13 Answered Questions

[SOLVED] What is the max size of localStorage values?

11 Answered Questions

[SOLVED] Clearing localStorage in javascript?

2 Answered Questions

6 Answered Questions

[SOLVED] localStorage vs sessionStorage vs cookies

5 Answered Questions

[SOLVED] How to view or edit localStorage

2 Answered Questions

[SOLVED] Scope of sessionStorage and localStorage

Sponsored Content