.LOCALSTORAGE

LOCALSTORAGE File

Browser Local Storage Database
Ask a question
QUICK ANSWER

A .localstorage file is a SQLite database your browser created to store website data - preferences, session tokens, cached values - for one specific website. Open it with DB Browser for SQLite to read its contents. Do not manually edit or delete it; deleting one clears that site's saved data and may log you out.

Developer: WebKit Open Source Project (Apple); adopted by Google Chrome, Opera and others Category: Data Files Open standard MIME: application/octet-stream
OPENS ON Windows macOS Linux iOS
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Jul 30, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the LOCALSTORAGE file format?

A .localstorage file is the on-disk database a web browser creates to implement HTML5 Web Storage (localStorage) - a key-value store that lets websites persist data between sessions. LOCALSTORAGE files perform a similar function to cookies, although the Web Storage specification defines a broader and more capable set of storage operations.

LOCALSTORAGE file uniqueness

Data stored in LOCALSTORAGE files is not deleted when the browser closes. Such data is saved on the user's computer; the web server has no automatic access to it. LOCALSTORAGE data can only be read and written via JavaScript by the same domain that created it, providing origin isolation. LOCALSTORAGE files are typically larger than cookie files.

Which web browsers use LOCALSTORAGE files?

LOCALSTORAGE is supported by all modern browsers. Early support arrived around 2008-2009 in Chrome 4, Firefox 3.5, Safari 4, Opera 10.5, and Internet Explorer 8. Mobile support followed in Android Browser and iOS Safari.

Size limits

The HTML5 spec recommends a 5 MB per-origin limit. Desktop browsers typically allow:

  • 5 MB in Safari,
  • 10 MB in Chrome and Firefox.

Mobile browsers generally enforce a tighter 2-5 MB limit per origin.

Storage format

Older WebKit-based browsers (Safari and early Chrome) stored LOCALSTORAGE data as a SQLite database with an ItemTable mapping keys to values. Google Chrome migrated its localStorage backend from SQLite to LevelDB around Chrome 28 (2013) - modern Chrome keeps these files in a leveldb/ subfolder under Local Storage in the user profile. Some Electron apps and older Chromium-based browsers still write .localstorage SQLite files.

Security & safety

RISK: LOW

.localstorage files are passive SQLite databases containing website data (preferences, session tokens, cached values). They may contain sensitive data such as session tokens or personal information stored by websites. Do not share or expose these files. Deleting them clears localStorage for the affected origin (you may be logged out of websites).

Format details

in a nutshell
FULL NAMEBrowser Local Storage Databaseaka WebKit Local Storage file, Chrome Local Storage
DEVELOPERWebKit Open Source Project (Apple); adopted by Google Chrome, Opera and otherssince 2008 (WebKit/Safari 4 beta; Chrome 1.0)
CATEGORYData Files
MIME TYPEapplication/octet-stream
TYPESQLite database (browser-internal storage)
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102030405060708090a0b0c0d0e0f
HEX
53514C69746520666F726D6174203300
ASCII
SQLite format 3·
Standard SQLite3 file header; identical to any SQLite database.

Programs that open LOCALSTORAGE files

Windows3 apps
Google Chrome Free Chrome manages its own .localstorage files automatically; to inspect data use DevTools > Application > Local Storage.
DB Browser for SQLite Open-source File > Open Database, select the .localstorage file; browse the ItemTable to see key-value pairs.
SQLiteDirectx / SQLite Expert Personal Free Open the file directly as a SQLite database to read/edit the ItemTable.
macOS3 apps
Google Chrome Free Manages .localstorage automatically; inspect via DevTools > Application > Local Storage.
Safari Built-in Safari manages its own .localstorage files; inspect via Web Inspector > Storage > Local Storage.
DB Browser for SQLite Open-source File > Open Database to inspect the SQLite contents.
Linux2 apps
Google Chrome Free Manages files automatically; use DevTools > Application > Local Storage to inspect.
DB Browser for SQLite Open-source Open the .localstorage file to read the ItemTable.
iOS1 app
Safari Built-in Safari manages localStorage internally; not directly accessible to users on iOS.

Technical details

deep spec
Container (WebKit/Safari/older Chrome)SQLite 3 database file
SQLite magic bytes`SQLite format 3` + NUL (hex 53 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33 00) at offset 0
Internal SQLite table`ItemTable (key TEXT, value TEXT)` - one row per localStorage key-value pair; one database file per origin
Per-origin isolationOne file per origin (scheme + host + port); cross-origin access is blocked by the browser same-origin policy
Storage limit5 MB per origin (HTML5 recommendation); desktop browsers enforce 5-10 MB in practice
Data persistenceData survives browser close and OS restart; cleared only by explicit site script or user action in browser settings
JavaScript APIRead/write exclusively via `localStorage.getItem()` / `localStorage.setItem()`; no direct file-level access by web pages
EncryptionNone; all stored values are plaintext in the SQLite database or LevelDB entries
Chrome backend migrationChrome switched localStorage from SQLite (.localstorage files) to LevelDB around Chrome 28 (2013); modern installs use LevelDB
Chrome file location (Windows)`%LOCALAPPDATA%\Google\Chrome\User Data\Default\Local Storage\leveldb\`
Safari file location (macOS)`~/Library/Safari/LocalStorage/` - one SQLite `.localstorage` file per origin
Electron appsMany Electron-based desktop apps still write SQLite `.localstorage` files in their per-app user data directory
Released2008 (WebKit/Safari 4 beta; Chrome 1.0)
Open standardYes · royalty-free
Specificationhtml.spec.whatwg.org

Community Q&A

asked by users
Ask a quick question
Get help from people who work with LOCALSTORAGE files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about LOCALSTORAGE files.

Frequently asked questions

What is a .localstorage file and can I delete it?
It is a SQLite database where your browser stores website data (preferences, session info). You can delete it - the browser will recreate it - but you may lose saved settings or be logged out of that website.
How do I open a .localstorage file?
Open it with DB Browser for SQLite (free, open-source). It is a standard SQLite database containing a table called ItemTable with key-value pairs.
Why did Chrome stop creating .localstorage files?
Around Chrome 28 (2013) Google migrated the localStorage backend from SQLite to LevelDB for performance. Modern Chrome stores localStorage in a LevelDB folder, not individual .localstorage files.
What data does a .localstorage file contain?
Key-value pairs saved by JavaScript on a specific website - anything from user preferences and theme choices to session tokens and cached API data. The maximum is 5 MB per origin.
Is it safe to share a .localstorage file?
No - it may contain session tokens or personal data. Keep it private.

References

1WHATWG - Web Storage specificationhtml.spec.whatwg.org
2WebKit - Storage architecture deep divedocs.webkit.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.DATProgram Data File (generic)
4.JPGJPEG Image
5.RPMSGRestricted Permission Message
6.EXEWindows Executable (Portable Executable)
7.PARTPartial Download File
8.ICSiCalendar data file
9.JSONJavaScript Object Notation file
10.BINCD/DVD Disc Image (BIN/CUE)

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z