AIFF

audio/x-aiff

Safe

Magic Bytes

Offset: 0
46 4F 52 4D 2E 2E 2E 2E 41 49 46 46

Audio Interchange File Format (AIFF) is a standard for storing uncompressed, lossless sound data developed by Apple Inc. based on the Electronic Arts Interchange File Format. It is predominantly used in professional audio engineering, recording studios, and digital audio workstations for high-fidelity sound manipulation. Although largely superseded by compressed formats like MP3 and AAC in consumer markets, AIFF remains a stable, legacy standard that is generally considered safe from malicious code execution.

Extension

.aiff

MIME Type

audio/x-aiff

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .aiff files in Python

Python
def is_aiff(file_path: str) -> bool:
    """Check if file is a valid AIFF by magic bytes."""
    signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x2E, 0x2E, 0x2E, 0x2E, 0x41, 0x49, 0x46, 0x46])
    with open(file_path, "rb") as f:
        return f.read(12) == signature

How to validate .aiff files in Node.js

Node.js
function isAIFF(buffer: Buffer): boolean {
  const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x2E, 0x2E, 0x2E, 0x2E, 0x41, 0x49, 0x46, 0x46]);
  return buffer.subarray(0, 12).equals(signature);
}
Go
func IsAIFF(data []byte) bool {
    signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x2E, 0x2E, 0x2E, 0x2E, 0x41, 0x49, 0x46, 0x46}
    if len(data) < 12 {
        return false
    }
    return bytes.Equal(data[:12], signature)
}

API Endpoint

GET /api/v1/aiff
curl https://filesignature.org/api/v1/aiff

Related Formats