BigTIFF files; Tagged Image File Format files >4 GB (.tiff)
.tiff file signature | image/tiff
Tagged Image File Format file (littleendian, i.e., LSB first in the byte; Intel)
Magic Bytes
Offset 0
49 49 2A 00
Sources: Apache Tika, Wikipedia, Gary Kessler
All Known Signatures
5 signature variants are documented for .tiff files across multiple sources.
| Hex Signature | Offset | Sources |
|---|---|---|
| 49 49 2A 00 | 0 | Apache Tika, Wikipedia, Gary Kessler |
| 4D 4D 00 2A | 0 | Apache Tika, Gary Kessler |
| 4D 4D 00 2B | 0 | Apache Tika, Gary Kessler |
| 49 49 2B 00 | 0 | Wikipedia |
| 49 20 49 | 0 | Gary Kessler |
Extension
.tiff
MIME Type
image/tiff
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .tiff files in Python
def is_tiff(file_path: str) -> bool:
"""Check if file is a valid TIFF by magic bytes."""
signature = bytes([0x49, 0x49, 0x2A, 0x00])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .tiff files in Node.js
function isTIFF(buffer: Buffer): boolean {
const signature = Buffer.from([0x49, 0x49, 0x2A, 0x00]);
return buffer.subarray(0, 4).equals(signature);
}
How to validate .tiff files in Go
func IsTIFF(data []byte) bool {
signature := []byte{0x49, 0x49, 0x2A, 0x00}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
/api/v1/tiff
curl https://filesignature.org/api/v1/tiff
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .tiff file?
A .tiff file is a BigTIFF files; Tagged Image File Format files >4 GB file. Tagged Image File Format file (littleendian, i.e., LSB first in the byte; Intel)
What are the magic bytes for .tiff files?
The magic bytes for BigTIFF files; Tagged Image File Format files >4 GB files are 49 49 2A 00 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .tiff file?
To validate a .tiff file, read the first bytes of the file and compare them against the known magic bytes (49 49 2A 00) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .tiff files?
The primary MIME type for .tiff files is image/tiff.
Is it safe to open .tiff files?
BigTIFF files; Tagged Image File Format files >4 GB (.tiff) 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.