In what form does Chrome save local storage?

I'm trying to figure out where and how Chrome saves local storage.

I found the following folder (in my home folder) that appears to contain local storage:

\AppData\Local\Google\Chrome\User Data\Default\Local Storage 

In this folder, I see files corresponding to different URLs (files contain URLs in their names). For each URL, I see two types of files:

  • LOCALSTORAGE file
  • LOCALSTORAGE-JOURNAL File

I am interested in the local storage of one particular website. For this website, the LOCALSTORAGE file contains only 6 KB, and the LOCALSTORAGE-JOURNAL does not contain anything (0 KB).

On the other hand, when I open the website of interest in Chrome and then press F12, I see 6 different URLs in the local storage, and if I click on one of them, I will see key-value pairs.

So, what I see in the folder and in the Chrome development tool is incompatible. Why is this? How can I find the contents of local storage in directories? Or is it impossible?

+8
google-chrome local-storage
source share
2 answers

The file is in SQL Lite format. Install SQL Lite, then enter the following commands:

 cd %LocalAppData%\Google\Chrome\User Data\Default\Local Storage sqlite3 *filename* select * from ItemTable; .quit 

The ItemTable table contains key-value pairs whose semantics depend on a particular website.

+15
source share

see the description of the localstorage file here it says: the LOCALSTORAGE extension indicates the application support file created by web browsers using WebKit, such as Google Chrome and Apple Safari. These files store browser settings or local data for browser extensions and allow extensions to store a local cache of user data saved in SQLite database format.

You can view localstorage files using a sql-lite browser, such as an open source program called sql-lite database browser

+3
source share

All Articles