SQLite 3 File Signature & Magic Bytes (.sqlite)
SQLite 3 is the most widely deployed embedded relational database in the world, storing tables, indices, triggers and views inside a single cross-platform file. Every unencrypted SQLite 3 database begins with the 16-byte null-terminated ASCII string SQLite format 3\0 (53 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33 00).
Signature & identification summary
| Detected format name | SQLite database |
|---|---|
| Hexadecimal magic bytes | 53 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33 00 |
| ASCII / marker preview | SQLite format 3. |
| Byte offset | 0 |
| MIME type | application/vnd.sqlite3 |
| Common extensions & aliases | .sqlite, .sqlite3, .db |
Check whether your file really is SQLite.
Drop any file into File Sniff’s free local browser checker to verify its 53 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33 00 signature and spot misleading extensions—without uploading a single byte.
Container & byte-layout notes
Bytes 16–17 store the database page size in big-endian (typically 4,096 bytes). Hundreds of desktop and mobile app formats—Apple Photos libraries, Messages chat.db, browser history/cookies, Lightroom catalogues (.lrcat) and GeoPackage maps (.gpkg)—are SQLite 3 databases under custom extensions.
Extension mismatches & common pitfalls
Note that encrypted SQLCipher databases replace the header with random salt bytes and will not show SQLite format 3\0 until decrypted.
Which apps open SQLite files?
| Platform | Compatible applications & tools |
|---|---|
| Mac (macOS) | sqlite3 CLI (built into macOS), DB Browser for SQLite, TablePlus, DataGrip |
| iPhone & iPad | SQLite viewer apps, Pythonista / a-Shell |
| Windows | DB Browser for SQLite, DBeaver, TablePlus, sqlite3.exe |
Free local tools & related guides
- Check whether a file really is SQLite
- Inspect raw bytes in the Hex Viewer
- Guide: How to identify an unknown file type
- Guide: File Signatures & Magic Bytes Guide
Inspect files & folders natively
on Mac, iPhone & iPad.
The native File Sniff app scans entire folders, spots extension mismatches, repairs extensions with Undo on Mac, and exports CSV or JSON reports locally.