Material Exchange Formatfile (.mxf)
.mxf file signature | application/octet-stream
Material Exchange Format file
Magic Bytes
Offset 0
06 0E 2B 34 02 05 01 01 0D 01 02 01 01 02
Sources: Wikipedia, Gary Kessler
All Known Signatures
2 signature variants are documented for .mxf files across multiple sources.
| Hex Signature | Offset | Sources |
|---|---|---|
| 06 0E 2B 34 02 05 01 01 0D 01 02 01 01 02 | 0 | Wikipedia, Gary Kessler |
| 3C 43 54 72 61 6E 73 54 69 6D 65 6C 69 6E 65 3E | 0 | Gary Kessler |
Extension
.mxf
MIME Type
application/octet-stream
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .mxf files in Python
def is_mxf(file_path: str) -> bool:
"""Check if file is a valid MXF by magic bytes."""
signature = bytes([0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02])
with open(file_path, "rb") as f:
return f.read(14) == signature
How to validate .mxf files in Node.js
function isMXF(buffer: Buffer): boolean {
const signature = Buffer.from([0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02]);
return buffer.subarray(0, 14).equals(signature);
}
How to validate .mxf files in Go
func IsMXF(data []byte) bool {
signature := []byte{0x06, 0x0E, 0x2B, 0x34, 0x02, 0x05, 0x01, 0x01, 0x0D, 0x01, 0x02, 0x01, 0x01, 0x02}
if len(data) < 14 {
return false
}
return bytes.Equal(data[:14], signature)
}
API Endpoint
/api/v1/mxf
curl https://filesignature.org/api/v1/mxf
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .mxf file?
A .mxf file is a Material Exchange Formatfile file. Material Exchange Format file
What are the magic bytes for .mxf files?
The magic bytes for Material Exchange Formatfile files are 06 0E 2B 34 02 05 01 01 0D 01 02 01 01 02 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .mxf file?
To validate a .mxf file, read the first bytes of the file and compare them against the known magic bytes (06 0E 2B 34 02 05 01 01 0D 01 02 01 01 02) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .mxf files?
There is no officially registered MIME type for .mxf files. Systems typically use application/octet-stream as a generic fallback when handling this format.
Is it safe to open .mxf files?
Material Exchange Formatfile (.mxf) 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.