MB

application/mathematica

Safe

Magic Bytes

Offset: 0
28 2A 2A

The Mathematica Binary (MB) format is a serialized data file type developed by Wolfram Research for use with the Wolfram Language and Mathematica software. It stores complex mathematical expressions and large datasets in an optimized binary structure, enabling faster input and output operations compared to standard text-based formats. While generally safe, this proprietary format is designed specifically for the Wolfram ecosystem and is rarely encountered outside scientific computing contexts.

Extension

.mb

MIME Type

application/mathematica

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .mb files in Python

Python
def is_mb(file_path: str) -> bool:
    """Check if file is a valid MB by magic bytes."""
    signature = bytes([0x28, 0x2A, 0x2A])
    with open(file_path, "rb") as f:
        return f.read(3) == signature

How to validate .mb files in Node.js

Node.js
function isMB(buffer: Buffer): boolean {
  const signature = Buffer.from([0x28, 0x2A, 0x2A]);
  return buffer.subarray(0, 3).equals(signature);
}
Go
func IsMB(data []byte) bool {
    signature := []byte{0x28, 0x2A, 0x2A}
    if len(data) < 3 {
        return false
    }
    return bytes.Equal(data[:3], signature)
}

API Endpoint

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

Related Formats