How to open a SQLite .db file
Identify and inspect a SQLite database safely.
Step-by-step instructions
- Make a copy of the database. If it belongs to a running application, use a consistent backup rather than copying only the main file while writes are active.
- Open DB Browser for SQLite and select Open Database. Choose the copied .db, .sqlite or .sqlite3 file.
- Use Database Structure to inspect tables and Browse Data to view records. A file extension alone does not guarantee SQLite format.
- For a quick read-only inspection, use the online viewer. Encrypted files require compatible software and the correct key.
SQL example
Adapt example table names to your database.
SELECT name FROM sqlite_schema WHERE type = 'table';