Generic JPEG Image file (.jpe)
.jpe file signature | image/jpeg
Joint Photographic Experts Group JPEG images are a raster image format standardized by the Joint Photographic Experts Group and maintained through ISO/IEC and ITU-T specifications. They are commonly used for photographs, web graphics, digital cameras, and image sharing across operating systems and devices. JPEG is a long-standing format that uses lossy compression, so repeated editing can reduce quality, but it is generally safe to open in standard viewers.
Magic Bytes
Offset 0
FF D8 FF
Sources: Apache Tika
All Known Signatures
3 signature variants are documented for .jpe files across multiple sources.
| Hex Signature | Offset | Sources |
|---|---|---|
| FF D8 FF | 0 | Apache Tika |
| FF D8 | 0 | Gary Kessler |
| FF D8 FF E0 4A 46 49 46 00 | 0 | Gary Kessler |
Extension
.jpe
MIME Type
image/jpeg
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .jpe files in Python
def is_jpe(file_path: str) -> bool:
"""Check if file is a valid JPE by magic bytes."""
signature = bytes([0xFF, 0xD8, 0xFF])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .jpe files in Node.js
function isJPE(buffer: Buffer): boolean {
const signature = Buffer.from([0xFF, 0xD8, 0xFF]);
return buffer.subarray(0, 3).equals(signature);
}
How to validate .jpe files in Go
func IsJPE(data []byte) bool {
signature := []byte{0xFF, 0xD8, 0xFF}
if len(data) < 3 {
return false
}
return bytes.Equal(data[:3], signature)
}
API Endpoint
/api/v1/jpe
curl https://filesignature.org/api/v1/jpe
See the full API documentation for all endpoints and parameters.
Related Formats
Frequently Asked Questions
What is a .jpe file?
A .jpe file is a Generic JPEG Image file file. Joint Photographic Experts Group JPEG images are a raster image format standardized by the Joint Photographic Experts Group and maintained through ISO/IEC and ITU-T specifications. They are commonly used for photographs, web graphics, digital cameras, and image sharing across operating systems and devices. JPEG is a long-standing format that uses lossy compression, so repeated editing can reduce quality, but it is generally safe to open in standard viewers.
What are the magic bytes for .jpe files?
The magic bytes for Generic JPEG Image file files are FF D8 FF at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .jpe file?
To validate a .jpe file, read the first bytes of the file and compare them against the known magic bytes (FF D8 FF) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .jpe files?
The primary MIME type for .jpe files is image/jpeg.
Is it safe to open .jpe files?
Generic JPEG Image file (.jpe) 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.