Audio Interchange File Format (.aiff)
.aiff file signature | audio/aiff
Audio Interchange File Format (AIFF) is an uncompressed audio file format developed by Apple Inc. for storing high-quality digital sound. It is commonly used for music production, audio editing, sample libraries, and interchange between recording applications and operating systems. AIFF is a legacy format from the Macintosh era and is generally safe to open, though files from untrusted sources should still be handled with standard caution.
Magic Bytes
Offset 0
46 4F 52 4D
All Known Signatures
4 signature variants are documented for .aiff files across multiple sources.
| Hex Signature | Offset | Sources |
|---|---|---|
| 46 4F 52 4D | 0 | Apple AIFF 1.3 Specification (IFF container) |
| 46 4F 52 4D 00 | 0 | Apache Tika, Gary Kessler |
| 41 49 46 46 | 0 | Wikipedia, Neil Harvey FileSignatures |
| 46 4F 52 4D 2E 2E 2E 2E 38 53 56 58 | 0 | Apache Tika |
Extension
.aiff
MIME Type
audio/aiff, 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])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .aiff files in Node.js
function isAIFF(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D]);
return buffer.subarray(0, 4).equals(signature);
}
How to validate .aiff files in Go
func IsAIFF(data []byte) bool {
signature := []byte{0x46, 0x4F, 0x52, 0x4D}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
/api/v1/aiff
curl https://filesignature.org/api/v1/aiff
See the full API documentation for all endpoints and parameters.
Related Formats
Frequently Asked Questions
What is a .aiff file?
A .aiff file is a Audio Interchange File Format file. Audio Interchange File Format (AIFF) is an uncompressed audio file format developed by Apple Inc. for storing high-quality digital sound. It is commonly used for music production, audio editing, sample libraries, and interchange between recording applications and operating systems. AIFF is a legacy format from the Macintosh era and is generally safe to open, though files from untrusted sources should still be handled with standard caution.
What are the magic bytes for .aiff files?
The magic bytes for Audio Interchange File Format files are 46 4F 52 4D 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) 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/aiff. Additional MIME types include: audio/aiff, audio/x-aiff.
Is it safe to open .aiff files?
Audio Interchange File Format (.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.