Skip to content

E57 (.e57)

.e57 file signature | model/e57

ASTM E57 3D file format

Safe

Magic Bytes

Offset 0
41 53 54 4D 2D 45 35 37

Sources: Apache Tika, Wikipedia

Extension

.e57

MIME Type

model/e57

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .e57 files in Python

Python
def is_e57(file_path: str) -> bool:
    """Check if file is a valid E57 by magic bytes."""
    signature = bytes([0x41, 0x53, 0x54, 0x4D, 0x2D, 0x45, 0x35, 0x37])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .e57 files in Node.js

Node.js
function isE57(buffer: Buffer): boolean {
  const signature = Buffer.from([0x41, 0x53, 0x54, 0x4D, 0x2D, 0x45, 0x35, 0x37]);
  return buffer.subarray(0, 8).equals(signature);
}

How to validate .e57 files in Go

Go
func IsE57(data []byte) bool {
    signature := []byte{0x41, 0x53, 0x54, 0x4D, 0x2D, 0x45, 0x35, 0x37}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

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

See the full API documentation for all endpoints and parameters.

Frequently Asked Questions

What is a .e57 file?

A .e57 file is a E57 file. ASTM E57 3D file format

What are the magic bytes for .e57 files?

The magic bytes for E57 files are 41 53 54 4D 2D 45 35 37 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .e57 file?

To validate a .e57 file, read the first bytes of the file and compare them against the known magic bytes (41 53 54 4D 2D 45 35 37) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .e57 files?

The primary MIME type for .e57 files is model/e57.

Is it safe to open .e57 files?

E57 (.e57) 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.