Adobe encapsulated PostScript file magic bytes (.eps)
.eps file signature: C5 D0 D3 C6 | application/postscript
Category: Images
Encapsulated PostScript (EPS) is a graphics file format developed by Adobe and based on the PostScript page description language. It is used for vector illustrations, logos, layout exchange, and print production workflows, and is commonly supported by desktop publishing and illustration applications. As a legacy format, EPS may contain executable PostScript instructions, so files from untrusted sources should be opened with caution in software that properly restricts script execution.
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 |
Validation Code
How to validate .eps files in 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
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
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
/api/v1/eps
curl https://filesignature.org/api/v1/eps
See the full API documentation for all endpoints and parameters.
Related Formats
Frequently Asked Questions
What is a .eps file?
A .eps file is an Adobe encapsulated PostScript file. Encapsulated PostScript (EPS) is a graphics file format developed by Adobe and based on the PostScript page description language. It is used for vector illustrations, logos, layout exchange, and print production workflows, and is commonly supported by desktop publishing and illustration applications. As a legacy format, EPS may contain executable PostScript instructions, so files from untrusted sources should be opened with caution in software that properly restricts script execution.
What are the magic bytes for .eps files?
The magic bytes for Adobe encapsulated PostScript file (.eps) files are C5 D0 D3 C6 at byte offset 0. These bytes identify the file format more reliably than the extension alone.
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.