Audio Interchange File (.aiff)
.aiff file signature | audio/x-aiff
Audio Interchange File Format
Magic Bytes
Offset 0
46 4F 52 4D 00
Sources: Apache Tika, Gary Kessler
All Known Signatures
5 signature variants are documented for .aiff files across multiple sources.
| Hex Signature | Offset | Sources |
|---|---|---|
| 46 4F 52 4D 00 | 0 | Apache Tika, Gary Kessler |
| 46 4F 52 4D 2E 2E 2E 2E 41 49 46 46 | 0 | Apache Tika |
| 46 4F 52 4D 2E 2E 2E 2E 41 49 46 43 | 0 | Apache Tika |
| 46 4F 52 4D 2E 2E 2E 2E 38 53 56 58 | 0 | Apache Tika |
| 46 4F 52 4D 41 49 46 46 | 0 | Wikipedia |
Extension
.aiff
MIME Type
audio/x-aiff
Byte Offset
0
Risk Level
Safe
Validation Code
How to validate .aiff files in Python
def is_aiff(file_path: str) -> bool:
"""Check if file is a valid AIFF by magic bytes."""
signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x00])
with open(file_path, "rb") as f:
return f.read(5) == signature
How to validate .aiff files in Node.js
function isAIFF(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x00]);
return buffer.subarray(0, 5).equals(signature);
}
How to validate .aiff files in Go
func IsAIFF(data []byte) bool {
signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x00}
if len(data) < 5 {
return false
}
return bytes.Equal(data[:5], signature)
}
API Endpoint
/api/v1/aiff
curl https://filesignature.org/api/v1/aiff
See the full API documentation for all endpoints and parameters.
Frequently Asked Questions
What is a .aiff file?
A .aiff file is a Audio Interchange File file. Audio Interchange File Format
What are the magic bytes for .aiff files?
The magic bytes for Audio Interchange File files are 46 4F 52 4D 00 at byte offset 0. These bytes uniquely identify the file format regardless of the file extension.
How do I validate a .aiff file?
To validate a .aiff file, read the first bytes of the file and compare them against the known magic bytes (46 4F 52 4D 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 .aiff files?
The primary MIME type for .aiff files is audio/x-aiff.
Is it safe to open .aiff files?
Audio Interchange File (.aiff) 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.