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?
6 Answers
Looks like it's %LocalAppData%\Google\Chrome\User Data\Default\Local Storage.
- 24,204
- 14
- 90
- 93
- 3,754
- 1
- 29
- 28
-
8for linux ~/.config/google-chrome/Default/Local Storage – Amit G Jan 27 '15 at 11:38
-
1Is this documented? If I backup this folder and try to restore it next time, would it work? – Pacerier Mar 18 '15 at 16:20
-
3For 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 Sep 17 '17 at 18:03
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__
- 231
- 2
- 2
-
-
-
-
5+1 for stating that `chrome://version` gives you your Profile Path. PS: In January 2017 on macOS LocalStorage SQLite DBs can be found in `
/Local Storage`. – einjohn Jan 22 '17 at 17:07
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.
- 395
- 3
- 10
-
2It 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 May 08 '19 at 15:09
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:
- 24,736
- 27
- 129
- 199
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.
- 3,950
- 23
- 29
- 11
- 1
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
- 712
- 1
- 8
- 16
