SQLite .db + -wal Uncheckpointed Merger & WAL Frame Inspector
Copied a SQLite database off a mobile app or server and noticed your newest rows are trapped inside database.db-wal? Most browser SQLite viewers ignore -wal files. Drop both files here to verify WAL salts/checksums, inspect committed transactions, and merge them into a single clean .sqlite file (PRAGMA wal_checkpoint in browser) 100% locally.
.db / .sqlite).db-wal)| Frame # | Target Page # | DB Size After Commit | Salt Match | Checksum | Applied |
|---|
Merge Uncheckpointed SQLite .db & .db-wal Files Without Installing sqlite3
Android apps, iOS containers, Electron apps, and production web backends almost always run SQLite in WAL mode. When you pull a backup copy of app.db plus app.db-wal without stopping the app or running PRAGMA wal_checkpoint(TRUNCATE), standard web SQLite viewers only open the stale .db file and miss every recent transaction sitting in the WAL.
This client-side tool implements the official SQLite WAL binary specification (magic 0x377f0682/0x377f0683, salt matching, and cumulative 32-bit s0/s1 frame checksums) in pure JavaScript—safely checkpointing all valid committed frames onto your base database and letting you open the merged .sqlite directly in our SQLite Explorer.
Browser WAL Merger vs. sqlite3 CLI / DB Browser
| Criteria | QuickCoderHub (In-Browser) | sqlite3 PRAGMA wal_checkpoint CLI |
|---|---|---|
| Zero Install | Checkpoints .db + -wal right in Chrome/Edge/Firefox | Requires local sqlite3 or DB Browser install |
| Forensic Frame Inspection | Displays every frame's page number, commit boundary, salt & checksum status | CLI checkpoints silently without listing individual frames |
| Database Privacy | 100% browser-local; database never uploaded | Local CLI |
Frequently Asked Questions
What if I only have the .db-wal file without the base .db?
You can still drop just the .db-wal file above to inspect its header, page size, checkpoint sequence, and frame commit count—though reconstructing a complete queryable database requires the matching base .db.
Why does the merger optionally reset header bytes 18–19 from `2` (WAL) to `1` (Rollback)?
Some minimal single-file SQLite WASM readers refuse to open databases whose header bytes 18–19 still declare WAL mode (`0x02, 0x02`) when no `-wal` file is attached. Switching those two bytes to `0x01, 0x01` after checkpointing ensures universal compatibility.
What happens if a WAL file contains frames from an older checkpoint salt?
SQLite reuses WAL file space across checkpoints by incrementing Salt-1. Any frame whose Salt-1/Salt-2 does not match the current WAL header marks the exact end of valid new transactions and is automatically ignored.
Is my SQLite database uploaded to any server?
Never. All binary verification and page merging run 100% client-side in your browser.