TOAST
application/octet-stream
Magic Bytes
Offset: 0
45 52 02 00 00 00
TOAST is a proprietary disk image file format developed by Roxio for use with its Toast optical disc authoring software on macOS. It is primarily utilized to store exact copies of CD or DVD media, facilitating the burning of discs and the distribution of software installers or multimedia content. Now considered a legacy format, it remains compatible with modern Roxio tools and can often be converted to standard ISO images for broader platform interoperability and long-term data preservation.
Validation Code
How to validate .toast files in Python
Python
def is_toast(file_path: str) -> bool:
"""Check if file is a valid TOAST by magic bytes."""
signature = bytes([0x45, 0x52, 0x02, 0x00, 0x00, 0x00])
with open(file_path, "rb") as f:
return f.read(6) == signature
How to validate .toast files in Node.js
Node.js
function isTOAST(buffer: Buffer): boolean {
const signature = Buffer.from([0x45, 0x52, 0x02, 0x00, 0x00, 0x00]);
return buffer.subarray(0, 6).equals(signature);
}
Go
func IsTOAST(data []byte) bool {
signature := []byte{0x45, 0x52, 0x02, 0x00, 0x00, 0x00}
if len(data) < 6 {
return false
}
return bytes.Equal(data[:6], signature)
}
API Endpoint
GET
/api/v1/toast
curl https://filesignature.org/api/v1/toast