Microsoft Access file

application/x-msaccess

Safe

Magic Bytes

Offset: 0
00 01 00 00 53 74 61 6E

The Microsoft Access Database (MDB) is a proprietary file format developed by Microsoft as the default storage structure for versions of the Access desktop application prior to 2007. Utilizing the Jet Database Engine, this format stores data tables, queries, forms, and reporting tools within a single container for desktop-based information management. Although largely superseded by the newer ACCDB format, legacy MDB files remain in use but carry potential security risks regarding embedded VBA macros.

Extension

.mdb

MIME Type

application/x-msaccess

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .mdb files in Python

Python
def is_mdb(file_path: str) -> bool:
    """Check if file is a valid MDB by magic bytes."""
    signature = bytes([0x00, 0x01, 0x00, 0x00, 0x53, 0x74, 0x61, 0x6E])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .mdb files in Node.js

Node.js
function isMDB(buffer: Buffer): boolean {
  const signature = Buffer.from([0x00, 0x01, 0x00, 0x00, 0x53, 0x74, 0x61, 0x6E]);
  return buffer.subarray(0, 8).equals(signature);
}
Go
func IsMDB(data []byte) bool {
    signature := []byte{0x00, 0x01, 0x00, 0x00, 0x53, 0x74, 0x61, 0x6E}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

GET /api/v1/mdb
curl https://filesignature.org/api/v1/mdb

Related Formats