Introduction
BIFF5 is the workbook format of Excel 5.0, released in 1993, and Excel 95. It was the first Excel format to hold several sheets in one workbook file, stored inside a compound file. Excel 97 replaced it with BIFF8 but kept an option to save in it, often labelled “Microsoft Excel 5.0/95 Workbook”.
Text is stored in single-byte characters of a Windows code page, written into each cell’s record.
Structure
The file is a compound file, which starts with the signature
D0 CF 11 E0 A1 B1 1A E1, holding a stream named Book. The
stream is a sequence of records, each a 2-byte type, a 2-byte length and the data, all
little-endian. It starts with the workbook globals: a BOF record (type
0x0809, version 0x0500), fonts, formats, cell styles and one
BOUNDSHEET record per sheet giving its name and the offset of its records, ending with
an EOF record. Each sheet follows as its own BOF to EOF block of row and cell records;
text cells use LABEL records that carry the text itself.
Not described
Known, not yet covered
- Reference: the BIFF5 field layouts of the records that changed in BIFF8 (FONT, FORMAT, XF, NAME and others), the BIFF5 formula tokens (Ptgs) and the fields of the BIFF5 chart records. The records page lists the records; the Excel 97 Developer’s Kit pages that give the layouts exist but have not been transcribed yet.
- Viewer: no viewer for BIFF5 files yet.
Unknown
- Reference: whether FORMULA is 0x0406 or 0x0006 and FONT 0x0231 or 0x0031 in BIFF5: the Developer’s Kit and [MS-XLS] give different numbers, and no BIFF5 file here settles it.
Variants
- Excel 5.0 and 95 workbook (BIFF5) – BIFF records in a compound file’s Book stream, single-byte text
- Excel 97–2003 workbook (BIFF8) – BIFF records in a Workbook stream, with Unicode text and a shared string table
Links
Software
- Microsoft Excel – Microsoft’s spreadsheet, which still opens BIFF5 workbooks (Windows, macOS)
- LibreOffice Calc – free office suite’s spreadsheet, which imports them (Windows, macOS, Linux)
Developers
- xlrd – library that reads BIFF5 and BIFF8 files (Python)