Data

SQLite Viewer — Open .db and .sqlite Files Online

Open a SQLite database file to browse tables, inspect the schema and run read-only SQL, all in your browser.

Runs entirely in your browser — nothing you paste is uploaded or stored.

Open a SQLite database file. It is read in your browser and never uploaded.

Drag a file here, or

What is sqlite viewer?

SQLite stores an entire database in a single file, and it turns up everywhere: mobile apps, browsers, desktop software, test fixtures and data exports. Looking inside one normally means installing a database tool. This viewer opens a .db, .sqlite or .sqlite3 file right in your browser using the real SQLite engine, compiled to WebAssembly. You can browse every table and view with sorting and paging, read the schema and the CREATE statements, and run your own SQL queries and export the results as CSV. The file is read on your device and is never uploaded, so it is safe to use on private data. The database is opened read-only, which means that browsing or querying it can never change your file.

When to use it

  • Looking inside the database of a mobile or desktop app, a browser profile or a game save without installing a database client.
  • Checking what a test fixture or a data export actually contains before using it.
  • Running a quick query, such as a count or a join, against a file someone sent you.
  • Understanding an unfamiliar schema by reading its tables, columns, keys and indexes.
  • Exporting a table or a query result to CSV for a spreadsheet.

How to use this tool

  1. Choose a SQLite file or drop it onto the page. Click "Load example" to open a small sample database instead.
  2. Pick a table or view on the left. The Data tab shows its rows, and clicking a column heading sorts by that column.
  3. Open the Structure tab to see the columns, their types and keys, and the CREATE statement.
  4. Open the SQL tab, write a query and press Run, or Ctrl or Command with Enter. Copy or download the result as CSV.

Example

A small sample database with two tables, an index and a view.

Input

CREATE TABLE customers (id INTEGER PRIMARY KEY, name TEXT NOT NULL, city TEXT);
CREATE TABLE orders (id INTEGER PRIMARY KEY, customer_id INTEGER REFERENCES customers(id), total REAL, placed_on TEXT);
INSERT INTO customers (name, city) VALUES ('Alice Johnson', 'Berlin'), ('Bob Smith', 'Austin'), ('Carol Diaz', 'Madrid');
INSERT INTO orders (customer_id, total, placed_on) VALUES (1, 120.50, '2026-01-12'), (1, 35.00, '2026-02-03'), (2, 89.99, '2026-02-19'), (3, 240.00, '2026-03-01');
CREATE INDEX idx_orders_customer ON orders(customer_id);
CREATE VIEW order_totals AS SELECT c.name, COUNT(o.id) AS orders, SUM(o.total) AS spent FROM customers c LEFT JOIN orders o ON o.customer_id = c.id GROUP BY c.id;

Output

A sidebar listing customers (3 rows), orders (4 rows) and the order_totals view, with the customers table open. Running SELECT * FROM order_totals returns three rows, one per customer, with their order counts and totals.

This is the SQL that builds the sample database, so you can see exactly what "Load example" opens.

A real SQLite engine in the page

The viewer uses sql.js, the official SQLite source compiled to WebAssembly, so queries behave exactly as they do in any other SQLite tool, including the same error messages and the same SQL dialect. It is a download of roughly 700 KB, fetched from this site only when you open a file or the example, and never before.

Browsing a table does not copy all its rows into the page. Each page of rows is a query with LIMIT and OFFSET, and sorting is done by SQLite with an ORDER BY, so only the rows you are looking at are ever drawn. Counting the rows in each table when a file opens does have to scan them, so a database with very large tables takes a moment longer to open.

Frequently asked questions

Is my database uploaded anywhere?

No. The file is read into your browser's memory and queried there by SQLite compiled to WebAssembly. Nothing is sent to a server, which makes it suitable for databases containing personal or confidential data. The engine itself loads only when you open a file.

Can I change the data or save the database?

No. The database is opened read-only, so inserts, updates, deletes and schema changes are refused with an error, and your original file is never modified. This tool is for looking and querying, not editing. To change data, use a desktop SQLite tool on a copy of the file.

Which files can it open?

SQLite 3 database files, usually named .db, .sqlite, .sqlite3 or .db3. It checks the file's header, so a SQL dump, a CSV, a journal or a database from another system such as MySQL is rejected with an explanation. Encrypted databases, such as those protected with SQLCipher, cannot be opened.

How large a database can it open?

Up to 150 MB. The whole file has to be copied into the page's memory, so very large databases are better opened in a desktop tool. Only one page of rows is drawn at a time, and query results are capped at 5,000 rows to keep the page responsive. The row count beside a result says when it was cut short.

What do NULL and blob cells mean?

NULL is SQLite's marker for no value, and it is shown in italics so you can tell it apart from an empty string. A blob is binary data such as an image or a serialised object, and it is shown as its size in bytes rather than as unreadable characters.

Can I run any SQL?

Any SQL that SQLite accepts, including joins, aggregates, window functions, common table expressions and PRAGMA statements that read information. Several statements separated by semicolons run in order, and the result of the last one that returns rows is shown. Statements that would write fail because the database is read-only.

Why did a query return an error?

The message comes straight from SQLite, so it names the problem, such as a syntax error near a word or a table or column that does not exist. Table and column names that contain spaces or capital letters need double quotes in your own queries. The Data tab handles that for you.

Find these tools useful? A coffee helps keep them free and ad-light.

Buy me a coffee