Where does Google Chrome save LocalStorage from Extensions?

35

16

I just had to format my Windows 7 system and start over, I made some backups of certain files/folders though and I am trying to find out where Google Chrome stores users data that extensions save, like which folder(s) I could look in to maybe recover some data for a certain extension I had?

JasonDavis

Posted 2012-11-19T04:44:02.080

Reputation: 4 852

Answers

32

Looks like it's %LocalAppData%\Google\Chrome\User Data\Default\Local Storage.

This looks about right...
(click for larger version)

ThatGraemeGuy

Posted 2012-11-19T04:44:02.080

Reputation: 3 088

7for linux ~/.config/google-chrome/Default/Local Storage – Amit G – 2015-01-27T11:38:01.127

1Is this documented? If I backup this folder and try to restore it next time, would it work? – Pacerier – 2015-03-18T16:20:56.823

3

For my developed extension loaded as CRX, the localstorage is on the \Local Storage\leveldb directory on the .ldb files. This post contains info about that files https://superuser.com/questions/1065771/what-embedded-database-format-is-used-by-this-chrome-extension

– edmundo096 – 2017-09-17T18:03:10.840

7

As an update, the folder in the marked answer was no longer working for me. First I found out where the folder my Chrome profile was being stored by going to chrome://version and opening the location for Profile Path.

Once there, the local storage items I set in my location were stored in:

\Local Extension Settings\__extensionID__

NoR

Posted 2012-11-19T04:44:02.080

Reputation: 171

Could you share more please? – Alex S – 2015-08-23T18:21:09.097

@AlexS Sure, what would you like me to expand on? – NoR – 2015-08-26T18:21:42.660

@NoR, Odd, Local Extension Settings folder is empty for me..... – Pacerier – 2015-10-12T07:03:47.370

4+1 for stating that chrome://version gives you your Profile Path. PS: In January 2017 on macOS LocalStorage SQLite DBs can be found in <chrome_profilepath>/Local Storage. – einjohn – 2017-01-22T17:07:02.780

6

On Mac OS X it's stored in your Chrome user profile directory:

~/Library/Application Support/Google/Chrome/<user-profile>/Local Storage/

commonly, the default with only one profile, that is:

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

Update: Thanks to @Barmar's comment that this has changed.

LocalStorage is now saved in the leveldb subdirectory as a set of .ldb files. The default path is now:

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

On my system the leveldb directory was created on Oct 8 2017 which is about a month after the 61.0.3163 release.

Stephen P

Posted 2012-11-19T04:44:02.080

Reputation: 346

1It looks like this has changed a bit now. None of the files in that directory have been modified since 2017, but there's now a subdirectory leveldb with a bunch of .ldb files. Unfortunately, it's no longer set up as separate files for each domain. – Barmar – 2019-05-08T15:09:11.433

3

Some data from the extensions can be found in Local Storage folders (for each profile), these files have .localstorage/.localstorage-journal extensions and are in SQLite format. However, it's best to back up all files within Local Storage folder. See: How do I open `.localstorage` files from Local Storage folder?

Some other data are stored in LevelDB format under IndexedDB folders (for each profile). The file extension is .ldb, however, all files are needed from the *.indexeddb.leveldb folders in order to have consistent data.

See also:

kenorb

Posted 2012-11-19T04:44:02.080

Reputation: 16 795

1

On Windows XP, Vista and 7 (at least) this will be the path:
C:\Documents and Settings\administrator\Local Settings\Application Data\Google\Chrome\User Data\Default\Local Storage

Make sure you adapt the user part ("administrator") of the path to reflect your username.

user456967

Posted 2012-11-19T04:44:02.080

Reputation: 11

0

It seems that the path in Answer is not working any more, use this path on Win7,8,10

C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\databases

Reza

Posted 2012-11-19T04:44:02.080

Reputation: 592