Introduction
StuffIt was the standard archiver on the classic Mac OS. Raymond Lau wrote the first
version in 1987, and it was later sold by Aladdin Systems. Mac software, fonts and
documents were passed around as .sit files for well over a decade, often
inside a BinHex .hqx file for sending by email. Unlike most archivers,
StuffIt kept each file’s Mac resource fork, type and creator codes, which classic Mac
files needed.
The format was never published, and later versions changed it more than once; the
newer StuffIt X format uses the extension .sitx. Free tools read most files
through reverse engineering.
Structure
Two main layouts share the .sit extension:
- Classic StuffIt, from the early versions up to 4.x: the file
starts with
SIT!, followed by the number of entries and the archive length, and the textrLauat offset 10. Each entry then has a header with the Mac file name, type and creator, the compression method and sizes of the data and resource forks, followed by the two forks. - StuffIt 5: the file starts with readable text beginning
StuffIt (c)1997-and naming Aladdin Systems, then a binary header and entries for files and folders.
The headers and methods page gives every field that reverse engineering has identified, and says which are still unknown.
Not described
Re-checked on 2026-11-13 against the XADMaster wiki pages and the library’s parser and decoder source.
Known, not yet covered
- Reference: the five built-in code length tables of method 13, the Arsenic model constants and randomisation table, the decoders for methods 5 (dynamic LZH), 8 (Miller–Wegman), 14 (“Installer”), and the DES-based password decryption (all in XADMaster source, which is public). The methods section describes methods 1, 2, 3, 13 and 15 in outline.
- Reference: StuffIt X (
.sitx), a different, newer format that XADMaster also parses (XADStuffItX*files), is not on these pages.
Unknown
- Reference: the fields the notes and source mark “?” or “unknown” in the headers (archive header bytes 15–21, the 16-bit value “always 0x0986?”, entry bytes 5 and 8 and others), and the meaning of the entry version.
Links
Software
- The Unarchiver – free extractor that opens most StuffIt archives (macOS)
- StuffIt Expander – the original free extractor (classic Mac OS, macOS, Windows)
Developers
- XADMaster – The Unarchiver’s library, with StuffIt decoders (Objective-C)
Reference
- StuffIt format – reverse-engineered notes on the classic format, in the XADMaster wiki
- StuffIt 5 format – the same for StuffIt 5 archives