Amiga Disk File (ADF) magic bytes (.adf)
.adf file signature: 44 4F 53 | application/x-amiga-disk-format
Category: Disk Images
Amiga Disk File (ADF) is a disk image format used with Commodore Amiga computers, originally created for the Amiga ecosystem and now maintained through community support and archival use. It is commonly used to store floppy disk images for emulation, software preservation, and transfer of classic Amiga games and utilities. As a legacy format, it is generally safe, though files from untrusted sources should still be handled cautiously.
Magic Bytes
Offset 0
44 4F 53
Sources: Apache Tika, Gary Kessler
All Known Signatures
2 signature variants are documented for .adf files across multiple sources.
| Hex Signature | Offset | Sources |
|---|---|---|
| 44 4F 53 | 0 | Apache Tika, Gary Kessler |
| 52 45 56 4E 55 4D 3A 2C | 0 | Gary Kessler |
Validation Code
How to validate .adf files in Python
def is_adf(file_path: str) -> bool:
"""Check if file is a valid ADF by magic bytes."""
signature = bytes([0x44, 0x4F, 0x53])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .adf files in Node.js
function isADF(buffer: Buffer): boolean {
const signature = Buffer.from([0x44, 0x4F, 0x53]);
return buffer.subarray(0, 3).equals(signature);
}
How to validate .adf files in Go
func IsADF(data []byte) bool {
signature := []byte{0x44, 0x4F, 0x53}
if len(data) < 3 {
return false
}
return bytes.Equal(data[:3], signature)
}
API Endpoint
/api/v1/adf
curl https://filesignature.org/api/v1/adf
See the full API documentation for all endpoints and parameters.
Related Formats
Frequently Asked Questions
What is a .adf file?
A .adf file is an Amiga Disk File (ADF) file. Amiga Disk File (ADF) is a disk image format used with Commodore Amiga computers, originally created for the Amiga ecosystem and now maintained through community support and archival use. It is commonly used to store floppy disk images for emulation, software preservation, and transfer of classic Amiga games and utilities. As a legacy format, it is generally safe, though files from untrusted sources should still be handled cautiously.
What are the magic bytes for .adf files?
The magic bytes for Amiga Disk File (ADF) (.adf) files are 44 4F 53 at byte offset 0. These bytes identify the file format more reliably than the extension alone.
How do I validate a .adf file?
To validate a .adf file, read the first bytes of the file and compare them against the known magic bytes (44 4F 53) at offset 0. This is more reliable than checking the file extension alone, as extensions can be renamed.
What is the MIME type for .adf files?
The primary MIME type for .adf files is application/x-amiga-disk-format.
Is it safe to open .adf files?
Amiga Disk File (ADF) (.adf) 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.