Skip to content
UniKit

SQLite file viewer

Pick a .db / .sqlite file and parse it locally by the real SQLite file format: the 100-byte header (page size, page count, text encoding, schema cookie, library version), the tables, indexes, views and triggers scanned from the sqlite_master B-tree (with their rootpage and SQL), the columns parsed out of the CREATE statements, and optionally the real per-table row counts taken from B-tree leaf cells. No SQL is executed and no row data is read; failures report the byte offset and page number.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Pick a .db / .sqlite file. It is read locally in your browser and never uploaded; the tool only reads, it never writes to the file.

Pick a file first.

Result

These are the real numbers from this run — copy them straight out.

Pick a file and set the options; the result shows up here.

What this tool does

  • Start with the structure of a .db / .sqlite file: which tables, indexes, views and triggers exist and what their rootpage is
  • Check a database page size, text encoding, schema cookie and the library version that created it without installing the sqlite3 CLI
  • Verify column names and declared types before a migration, or confirm which columns an index really covers (in order)

Example

Input

A three-page SQLite file (512 B pages, sqlite_master holding table users and index idx_users_name, users with two rows)

Output

SQLite format 3 · page size 512 B · 3 pages · UTF-8
usable 512 B · reserved 0 B · schema format 4 · schema cookie 1 · freelist 0 pages
user version 0 · application id 0x0 · library 3045000 · read/write version 1/1

objects (2)
  table users · root page 2 · on users · rows 2
    columns: id INTEGER, name TEXT
  index idx_users_name · root page 3 · on users
    columns: name

That is the real report produced by parsing this file with row counting enabled (the test fixture is hand-written in the SQLite file format).

Frequently asked questions

Can it run SQL or modify data?

No, deliberately: this tool embeds no SQLite engine at all — it only reads the file header and the sqlite_master B-tree to report structure plus real row counts. It does not decode rows, export CSV or write files, and it never modifies the source file. To actually run read-only SQL use the sibling sqlite-reader tool (sql.js WebAssembly engine) or the local sqlite3 CLI.

Where do the row counts come from?

With "count rows per table" enabled the tool walks each table B-tree from its rootpage and counts the cells on leaf pages (one cell is one row in SQLite), reporting the number of pages it visited too. If it needs more than the 20000-page budget it stops early and marks the counts as partial instead of pretending they are complete.

Does it support .duckdb or encrypted databases?

No. DuckDB uses its own storage format (not SQLite), and an encrypted database (SQLCipher) has encrypted pages that cannot be parsed. Files that do not start with "SQLite format 3" fail immediately and report the first mismatching byte; WAL (-wal) files are not parsed either, so let the database close cleanly when you need the latest data.

What about very long SQL statements?

They are fine. When a sqlite_master record is too large for one page SQLite spills it into overflow pages, and the parser follows that chain to reassemble the whole record (a broken chain reports invalid-overflow with an offset). So long CREATE TABLE or CREATE TRIGGER statements are shown in full.

Keywords:sqlite_masterrootpagesqlite viewer

Related tools