Skip to content

Adobe encapsulated PostScript file (.eps)

.eps file signature | application/postscript

Adobe encapsulated PostScript file(If this signature is not at the immediatebeginning of the file, it will occur earlyin the file, commonly at byte offset 30 [0x1E])

Safe

Magic Bytes

Offset 0
C5 D0 D3 C6

Sources: Apache Tika, Gary Kessler

All Known Signatures

6 signature variants are documented for .eps files across multiple sources.

Hex Signature Offset Sources
C5 D0 D3 C6 0 Apache Tika, Gary Kessler
25 21 50 53 2D 41 64 6F 62 65 2D 33 2E 30 20 45 50 53 46 2D 33 2E 30 0 Apache Tika, Wikipedia
25 21 0 Apache Tika
04 25 21 0 Apache Tika
25 21 50 53 2D 41 64 6F 62 65 2D 33 2E 31 20 45 50 53 46 2D 33 2E 30 0 Wikipedia
25 21 50 53 2D 41 64 6F 62 65 2D 33 2E 30 20 45 50 53 46 2D 33 20 30 0 Gary Kessler

Extension

.eps

MIME Type

application/postscript

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .eps files in Python

Python
def is_eps(file_path: str) -> bool:
    """Check if file is a valid EPS by magic bytes."""
    signature = bytes([0xC5, 0xD0, 0xD3, 0xC6])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .eps files in Node.js

Node.js
function isEPS(buffer: Buffer): boolean {
  const signature = Buffer.from([0xC5, 0xD0, 0xD3, 0xC6]);
  return buffer.subarray(0, 4).equals(signature);
}

How to validate .eps files in Go

Go
func IsEPS(data []byte) bool {
    signature := []byte{0xC5, 0xD0, 0xD3, 0xC6}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

See the full API documentation for all endpoints and parameters.

Frequently Asked Questions

What is a .eps file?

A .eps file is a Adobe encapsulated PostScript file file. Adobe encapsulated PostScript file(If this signature is not at the immediatebeginning of the file, it will occur earlyin the file, commonly at byte offset 30 [0x1E])

What are the magic bytes for .eps files?

The magic bytes for Adobe encapsulated PostScript file files are C5 D0 D3 C6 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.

How do I validate a .eps file?

To validate a .eps file, read the first bytes of the file and compare them against the known magic bytes (C5 D0 D3 C6) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.

What is the MIME type for .eps files?

The primary MIME type for .eps files is application/postscript.

Is it safe to open .eps files?

Adobe encapsulated PostScript file (.eps) 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.