SQLite Schema Viewer

Inspect SQLite table schemas, indexes and foreign keys without a GUI

Ad placeholder (leaderboard)

The SQLite Schema Viewer reveals the complete structure of a SQLite database — its tables, columns, indexes, views and triggers — without opening a desktop GUI or typing .schema at a prompt. Because SQLite records every object’s definition in a built-in catalogue, the schema can be read directly from the file in the browser. This is ideal for understanding an unfamiliar database, reviewing migrations or documenting a data model.

How it works

SQLite stores its catalogue in a table named sqlite_master, whose b-tree always begins on page 1 of the file. The viewer reads the database header to find the page size, then walks that b-tree, decoding each record into five fields: type, name, tbl_name, rootpage and sql.

The sql field contains the original CREATE TABLE, CREATE INDEX, CREATE VIEW or CREATE TRIGGER statement exactly as it was written. The tool groups objects by type and renders each statement so you can read column definitions, types, default values and constraints verbatim.

For each table it also scans the statement for REFERENCES clauses and shows a foreign-key count, giving a quick sense of how tables relate. Internal objects whose names start with sqlite_ are filtered out so the view stays focused on the schema you authored.

Tips and notes

  • The CREATE statements are shown unmodified, so any CHECK constraints, DEFAULT values and COLLATE clauses are preserved.
  • A high foreign-key count on a table usually marks it as a join or fact table in the data model.
  • To inspect the actual data behind the schema, use the SQLite Database Viewer or export with the SQLite to CSV exporter.

Everything runs locally in your browser — no upload, no account, read-only.

Ad placeholder (rectangle)