Introduction
An .mdb file is a database made by
Microsoft Access, the
desktop database in Microsoft Office. One file holds the tables and their data, and
usually also the queries, forms and reports built on them. The storage engine behind it
is called Jet.
Access 2007 introduced a newer version of the engine, ACE, and a new extension,
.accdb, which adds features such as multi-valued fields, attachments and
stronger encryption. Older Access versions cannot open .accdb files. The
formats are proprietary; what is known of the page layout comes from the open-source
MDB Tools and Jackcess projects.
Structure
The file is a series of fixed-size pages: 2,048 bytes in Jet 3 (Access 97) and 4,096
bytes in Jet 4 (Access 2000 to 2003) and ACE. The first page is the header. From byte 4
it holds the text Standard Jet DB in an .mdb file or
Standard ACE DB in an .accdb file, and a version number
follows. Much of the rest of the header is obscured with a fixed key.
Other pages hold table definitions, data rows, indexes and the map of which pages
belong to which table. A system table, MSysObjects, lists every table,
query, form and report in the file. While a database is open, Access keeps a lock file
beside it (.ldb or .laccdb).
What reverse engineering has found is on two pages: header, pages and rows and table definitions.
Not described
Microsoft has never published the Jet and ACE formats. The pages follow MDB Tools’
HACKING.md
(re-read in full on 2026-11-13), which is reverse engineering and says itself what it does not know.
Known, not yet covered
- Reference: the text-index collation rules beyond the basic alphabetic encoding: the weight tables of the “general” and “general legacy” families, their tailorings per locale, weight sequences, repeat marks and prolonged sound marks, and the worked key examples. HACKING.md narrates them at length and the MDB Tools and Jackcess sources hold the tables; the key encoding section only summarises them.
- Reference: the property value types of the
LvPropdata records (the notes point to MDB Tools’props.c), and the exact encodings of Access 2007 and later Office encryption (the notes only say a structure whose length sits at299).
Unknown
- Reference: page type
08; the row-offset flag2000; column flag08; index flags04,10,20,40; the meaning of index flag80; what the Jet 3file_flagrecords (which writers); and the several fields MDB Tools lists as unknown or always zero. - Reference: the exact scale of the Currency type, which the notes do not give, and
the layout of Microsoft Money (
MSISAM) files’ own encryption.
Links
Software
- Microsoft Access – Microsoft’s desktop database, which makes and opens these files (Windows)
- DBeaver – database tool that can open Access files through a driver (Windows, macOS, Linux)
Developers
- MDB Tools – library and command-line tools for
.mdband.accdbfiles (C) - Jackcess – reads and writes Access databases (Java)
- UCanAccess – JDBC driver built on Jackcess (Java)
Reference
- MDB Tools HACKING notes – the reverse-engineered description of the file format