Introduction
MacBinary joins the data fork and the resource fork of a classic Mac OS file, with its
HFS details, into one file, so that it survives transfer and storage on systems without
HFS. Files usually end in .bin or .macbin. The original dates
from 1985; MacBinary II followed, and MacBinary III arrived in 1996. Unlike
BinHex, which is text, it is binary.
Structure
The file starts with a 128-byte header, which holds among other things the file name of up to 63 bytes, the file type and creator, Finder flags, the lengths of the data and resource forks and the creation and modification dates, counted from 1904. The forks follow the header.
Not described
This page is a first outline. The layout is not yet described in full here.
Known, not yet covered
- Reference: the full header, the padding of the forks and the differences between versions I, II and III.
- Viewer: the site has no viewer for this format.
Also used for
- GGML model file – The model format of ggml and whisper.cpp from before GGUF.
- Odyssey 2 and Videopac ROM image – Cartridge ROM image for the Magnavox Odyssey2 and Philips Videopac.
- PyTorch model (pytorch_model.bin) – Tensors saved by torch.save: a pickle and raw data in a ZIP archive.
Links
Software
- macbinary – command of Mac OS X that encodes and decodes these files (macOS)
- Fetch – Mac file transfer program that handles MacBinary files
- Transmit – Mac file transfer program that handles MacBinary files
Reference
- MacBinary – Wikipedia’s account of the versions
- lhasa: macbinary.c – source code that checks the header fields (C)