What's in my DB?

Drop a database file and see what is inside it: the header, a map of every page, and any page decoded down to the byte. It all happens in your browser; the file never leaves your device.

Drop a database file here: a SQLite .db (with its -wal or -journal), a PostgreSQL relation file, a MySQL .ibd, LevelDB and RocksDB files (.sst, .ldb, MANIFEST, .log), a CockroachDB store's files, an Elasticsearch shard's Lucene files, a MongoDB data directory, or a Redis dump.rdb or AOF.

Read in your browser, a page at a time. Nothing is uploaded.

Or open the sample PostgreSQL table, the sample MySQL tablespace, the sample RocksDB database, the sample CockroachDB store, the sample Elasticsearch shards , the sample MongoDB data directory or the sample Redis files.

Engines

SQLiteLiveOpen any .db file and see its header, every page, b-tree and record; watch SQL compile to bytecode; read about every opcode and pragma.PostgreSQLLiveDrop a table's files and see its 8 KB pages: tuple headers and MVCC, HOT chains, TOAST, B-tree indexes, the visibility map and the free space map.LevelDB / RocksDBLiveOpen SST files, the MANIFEST and the write-ahead log: every block and key with its sequence number, the levels of the LSM tree, every write batch.CockroachDBLiveOpen a store's Pebble files: columnar SST blocks, keys with MVCC timestamps, blob files, the WAL and the MANIFEST, and the SQL rows rebuilt from them.ElasticsearchLiveOpen a shard's Lucene segments and translog: the commit, stored _source, every term and posting, doc values, BKD points, soft deletes, and the documents rebuilt from them.RedisLiveOpen RDB snapshots and append-only files: every key and value of every type Redis 8 writes, the bytes behind it down to listpack entries, and the AOF replayed over its base.MongoDBLiveOpen a data directory's WiredTiger files: collections and BSON documents, every index key, B-tree pages and cells, and the journal replayed over the last checkpoint.MySQL (InnoDB)LiveOpen an .ibd tablespace and see its pages, the table definition it carries, every B+tree and record, and the deleted rows still on its pages.

For SQLite, today

File viewerHeader, schema, a map of every page, b-tree shapes and records with their column names.EXPLAIN visualizerSQLite runs in the page: type SQL and see its bytecode, with jumps drawn, and the query plan as a tree.The file formatPages, b-trees, records, varints, overflow, the freelist, the WAL and the rollback journal, with diagrams.

For PostgreSQL

File viewerDrop a table's files and see tuple headers and MVCC, HOT chains, TOAST, B-tree pages, the visibility map and the free space map.The storage formatRelation files and forks, line pointers, hint bits and freezing, HOT updates, TOAST, B-trees with posting lists.

For MySQL (InnoDB)

File viewerDrop an .ibd and see its pages, the table definition it carries and every record with column names, deleted rows included.The file formatExtents and segments, INDEX pages, records read backwards from their origin, hidden columns, LOBs and instant ALTER.Page typesEvery InnoDB page type and what it holds.

For LevelDB and RocksDB

File viewerDrop SST files, the MANIFEST and the write-ahead log: every block and key with its sequence number, the levels of the LSM tree, every write batch.The formatsThe LSM tree, SST blocks and prefix compression, internal keys, the footer, the log and the MANIFEST.

For CockroachDB

Store viewerDrop a store's files: Pebble's columnar SST blocks, keys with MVCC timestamps, blob files, the WAL, and SQL rows rebuilt from them.How it is storedRows as keys, MVCC versions, values and column families, the schema in system tables, and Pebble's files.

For Elasticsearch

Shard viewerDrop a shard's Lucene files and translog: segments, stored _source, every term and posting, doc values, BKD points, and the documents rebuilt from them.How it is storedSegments and commit points, stored fields, the inverted index, doc values, points, soft deletes and the translog.

For MongoDB

Data directory viewerDrop a dbPath: collections and documents, every index key, WiredTiger's pages and cells, and the journal replayed.How it is storedWiredTiger's files, pages and compression, BSON by record ID, KeyString index keys, the catalog and the journal.

For Redis

RDB and AOF viewerDrop dump.rdb or an appendonlydir: every key and value, the bytes behind it, and the AOF replayed over its base.How it is storedRDB records, listpacks, intsets, quicklists, templates, TTLs, streams, roaring bitmaps, modules and the AOF.

And a reference: all 191 VDBE opcodes, 170 with a real example program, and all 74 pragmas, with what each returns on a real database.