Open SQLite files and run SQL queries
- Free
- No sign-up
- No upload
- Batch
- Works offline
Tool facts
- Opens
DBSQLITESQLITE3DB3CSVTSVTXTXLSXXLSMXLSODSJSON- Saves as
CSVJSONSQLITE- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- Yes, several files at once
- Offline use
- Works without a connection once this page has loaded
- Built with
- WebAssembly, sql.js, Papa Parse, and SheetJS
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
- Limits
- No fixed file size limit; very large files depend on your device's memory and may fail on phones.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About SQLite Viewer
SQLite Viewer opens SQLite database files (.db, .sqlite, .sqlite3) in your browser and lets you run any SQL query against them. It lists every table and view with its row count, shows the CREATE statements of tables and indexes, and displays the rows of a table with one click. Queries run on a full SQLite 3 engine compiled to WebAssembly (sql.js), so joins, window functions, CTEs, JSON functions and PRAGMA statements all work as they do in the sqlite3 command line.
You can also turn CSV, TSV, Excel (xlsx, xls, ods) and JSON files into tables and query them with SQL: column names are cleaned up and column types (INTEGER, REAL or TEXT) are guessed from the data. Query results can be exported as CSV or JSON or copied, and the whole database, including your changes, can be downloaded as a .sqlite file. Everything runs locally; the database is never uploaded.
SQLite Viewer runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use SQLite Viewer
- Drop a .db or .sqlite file to open it, or drop CSV, Excel or JSON files to import them as tables (a sample countries table is loaded to start with).
- Click a table under Tables to see its first 100 rows and its schema.
- Write a query in the SQL query box or pick one from Example queries, then click Run or press Ctrl+Enter (Cmd+Enter on Mac).
- Export the result with Export CSV, Export JSON or Copy CSV, or click Download database to save the whole database as .sqlite.
Frequently asked questions
Is my database uploaded to a server?
No. The file is read into your browser's memory and queried by SQLite compiled to WebAssembly. No data leaves your device, so it is safe to use with private or production data.
Are changes saved to my original file?
No. The database is an in-memory copy. INSERT, UPDATE, DELETE and CREATE statements change only that copy; click Download database to save the modified database as a new .sqlite file. Reloading the page discards all changes.
How big can the database be?
The whole file has to fit in browser memory, which in practice means up to a few hundred megabytes on a desktop computer and less on phones. Only the first 1,000 rows of a result are displayed, but exports always contain every row.
How are CSV and JSON files turned into tables?
The file name becomes the table name and the header row or object keys become column names, with spaces and symbols replaced by underscores. A column whose values are all whole numbers becomes INTEGER, all numbers becomes REAL, anything else TEXT; empty cells are stored as NULL. Each Excel sheet becomes its own table, and a JSON object with several arrays becomes one table per array.
Why do I get "file is not a database"?
The file is not an SQLite 3 database or it is encrypted (for example with SQLCipher, as used by some apps). Encrypted databases cannot be opened without their key. Other formats such as Microsoft Access .mdb or MySQL dump files are not SQLite databases either.