Microsoft Access Snapshot Viewer file
application/octet-stream
Magic Bytes
Offset: 0
4D 53 46 54 02 00 01 00
Microsoft Access Snapshot Viewer file (SNP) is a proprietary format developed by Microsoft for capturing static copies of database reports. It allows users to view and distribute complex report layouts without requiring a local installation of the Microsoft Access database engine. Although largely superseded by modern portable document standards such as PDF, this legacy format remains essential for viewing historical database records and enterprise information archives.
Validation Code
How to validate .snp files in Python
Python
def is_snp(file_path: str) -> bool:
"""Check if file is a valid SNP by magic bytes."""
signature = bytes([0x4D, 0x53, 0x46, 0x54, 0x02, 0x00, 0x01, 0x00])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .snp files in Node.js
Node.js
function isSNP(buffer: Buffer): boolean {
const signature = Buffer.from([0x4D, 0x53, 0x46, 0x54, 0x02, 0x00, 0x01, 0x00]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsSNP(data []byte) bool {
signature := []byte{0x4D, 0x53, 0x46, 0x54, 0x02, 0x00, 0x01, 0x00}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/snp
curl https://filesignature.org/api/v1/snp