How to Open and Edit a SQLite Database on iPhone
Short answer: to open a SQLite database (.db, .sqlite, .sqlite3) on an iPhone without a computer, use SQLite Editor & DB Viewer. It browses every table, runs SQL queries, edits rows, and works offline with no account.
When you would do this on a phone
- Inspecting a database file someone sent you.
- Checking an app's data while away from your desk.
- Learning SQL with real tables instead of screenshots.
- Looking at an exported dataset before moving it anywhere else.
How to open a SQLite database on iPhone
- Install the app from the App Store.
- Open the
.db,.sqliteor.sqlite3file from Files, iCloud Drive or the share sheet. - Browse the tables, rows, columns and full schema.
- Search across tables and values, or write a query in the SQL editor.
What a good mobile SQLite tool should do
- Open common file types from Files and iCloud.
- Show the schema, not only the rows.
- Run SQL with syntax highlighting.
- Build queries visually if you do not want to type SQL: pick tables, columns and filters and the app writes the query.
- Edit rows inline and commit changes safely.
- Import CSV, JSON and Excel into a table, and export tables or query results to CSV.
- Stay local. Your data should not leave the device.
SQLite Editor & DB Viewer does all of the above, and also includes 26 interactive SQL lessons, from SELECT and WHERE to JOIN, which makes it usable for learning as well as inspection.
Frequently asked questions
Can I edit a SQLite file on an iPhone? Yes. You can edit rows inline, add or delete records and commit the changes.
Can I import a spreadsheet into SQLite on iPhone? Yes. CSV, JSON and Excel files can be imported into a table.
Is my database uploaded anywhere? No. It runs locally and offline.
I do not know SQL. Can I still use it? Yes. The visual Query Builder writes the SQL for you.
Download SQLite Editor & DB Viewer on the App Store
On Android: SQLite Editor & DB Viewer on Google Play. Free to download, same features, works offline.