Introduction
BigTIFF is a variant of TIFF with 64-bit offsets and counts, so a file can be far larger than the 4 GB limit of classic TIFF. It is used for large scans, whole-slide microscope images, satellite and aerial images and other very large rasters. The tags, data types and compression methods are those of classic TIFF; only the header, the directories and the entries are wider.
BigTIFF files normally keep the .tif or .tiff extension.
LibTIFF has read and written them since version 4.0.
Structure
The header is 16 bytes: the byte order mark, II or MM, the
number 43, the size of an offset in bytes (always 8), two zero bytes, and the 8-byte
offset of the first image file directory (IFD).
An IFD starts with an 8-byte entry count. Each entry is 20 bytes: a 2-byte tag, a
2-byte data type, an 8-byte count and an 8-byte value or offset, so values of up to 8
bytes are stored in the entry itself. The directory ends with the 8-byte offset of the
next IFD, or zero. Three data types are added for 64-bit values: LONG8
(16), SLONG8 (17) and IFD8 (18).
0Header byte order, 43, offset size 8, zero, offset of the first IFD16 bytes…IFD repeated for each page or imagevaries+0Entry count8 bytes+8Entries tag, type, count, value or offset20 bytes each…Next IFD offset zero at the end8 bytes
…Strips or tiles the image data, found through the tagsvaries
Telling it apart
The file starts with 49 49 2B 00 (II, 43) or
4D 4D 00 2B (MM, 43), followed by the offset size 8. A
classic TIFF file has 42 in place of 43.
In the explorer
Drop a BigTIFF file on the page to open it. It is read exactly as a classic TIFF file is, with the 16-byte header, 8-byte entry counts and 20-byte entries, the types LONG8, SLONG8 and IFD8, and 64-bit offsets and counts. Every tab, picture and decoder of the explorer’s TIFF viewer works on it; what is not decoded is listed under Not described on the family page.
Not described
The gaps of this reference and of the viewer are the same for classic TIFF and BigTIFF, and are listed, as known and unknown, under Not described on the family page.
In this reference
- Header and directories – the 16-byte header, directories, 20-byte entries, data types and a byte-by-byte file
- Tags – every field with its type, count and default, including the 64-bit types for offsets
- Tag values – every code: compression schemes, colour spaces, orientation, flags and sample formats
- Image data – strips, tiles, sample packing, and PackBits, fax, LZW, Deflate and JPEG coding
Also used for
Variants
- Tagged Image File Format (classic) – the usual TIFF layout, with 32-bit offsets and files up to 4 GB
- BigTIFF – TIFF with 64-bit offsets, for files larger than 4 GB
Links
Software
- QGIS – free geographic information system that opens large GeoTIFF and BigTIFF rasters (Windows, macOS, Linux)
- ImageMagick – command-line tools that read and write TIFF, including BigTIFF (Windows, macOS, Linux)
Developers
Reference
- BigTIFF design – LibTIFF’s description of the layout