Electronic Arts'Interchange Format Files
application/octet-stream
Magic Bytes
Offset: 0
46 4F 52 4D 49 4C 42 4D
The Interchange File Format (IFF) is a general-purpose data storage structure developed by Electronic Arts to facilitate data exchange across different programs, notably on Commodore Amiga systems. This specific implementation utilizes the InterLeaved BitMap (ILBM) chunk standard to store planar graphics and uncompressed bitmap images. While considered a legacy format today, it remains historically significant within retro computing circles and is still readable by specialized graphic conversion utilities.
Validation Code
How to validate .iff files in Python
Python
def is_iff(file_path: str) -> bool:
"""Check if file is a valid IFF by magic bytes."""
signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x49, 0x4C, 0x42, 0x4D])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .iff files in Node.js
Node.js
function isIFF(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x49, 0x4C, 0x42, 0x4D]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsIFF(data []byte) bool {
signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x49, 0x4C, 0x42, 0x4D}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/iff
curl https://filesignature.org/api/v1/iff