Monochrome Picture TIFF bitmap file (.mp)
.mp file signature | application/octet-stream
Monochrome Picture TIFF bitmap file is a monochrome bitmap image format based on the Tagged Image File Format (TIFF) specification, originally developed by Aldus and later maintained by Adobe. It is used for storing black-and-white graphics, scanned documents, fax images, and other simple raster artwork in archival and desktop publishing workflows. As a legacy image variant, it is generally low risk, though any raster file should be handled cautiously when received from untrusted sources.
Magic Bytes
Offset 0
0C ED
Sources: Gary Kessler
Extension
.mp
MIME Type
application/octet-stream
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .mp files in Python
def is_mp(file_path: str) -> bool:
"""Check if file is a valid MP by magic bytes."""
signature = bytes([0x0C, 0xED])
with open(file_path, "rb") as f:
return f.read(2) == signature
How to validate .mp files in Node.js
function isMP(buffer: Buffer): boolean {
const signature = Buffer.from([0x0C, 0xED]);
return buffer.subarray(0, 2).equals(signature);
}
How to validate .mp files in Go
func IsMP(data []byte) bool {
signature := []byte{0x0C, 0xED}
if len(data) < 2 {
return false
}
return bytes.Equal(data[:2], signature)
}
API Endpoint
/api/v1/mp
curl https://filesignature.org/api/v1/mp
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .mp file?
A .mp file is a Monochrome Picture TIFF bitmap file file. Monochrome Picture TIFF bitmap file is a monochrome bitmap image format based on the Tagged Image File Format (TIFF) specification, originally developed by Aldus and later maintained by Adobe. It is used for storing black-and-white graphics, scanned documents, fax images, and other simple raster artwork in archival and desktop publishing workflows. As a legacy image variant, it is generally low risk, though any raster file should be handled cautiously when received from untrusted sources.
What are the magic bytes for .mp files?
The magic bytes for Monochrome Picture TIFF bitmap file files are 0C ED at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .mp file?
To validate a .mp file, read the first bytes of the file and compare them against the known magic bytes (0C ED) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .mp files?
There is no officially registered MIME type for .mp files. Systems typically use application/octet-stream as a generic fallback when handling this format.
Is it safe to open .mp files?
Monochrome Picture TIFF bitmap file (.mp) files are generally safe to open. They are classified as low risk because they primarily contain data rather than executable code. However, always ensure files come from a trusted source.