fileformer
search⌘KtranslateENexpand_moreupload_fileConvert
Converters8 file families · 44 direct conversions
What changes in a conversionarrow_forward
home / image / tiff

Convert TIFF Image Free

.tif is a linked list of tag directories

A TIFF starts with 8 bytes: the byte order, the number 42, and where the first Image File Directory (IFD) is. Each IFD is a sorted list of numbered tags (width, compression, where the strips are) plus a pointer to the next IFD, so one file can hold many pages, thumbnails and EXIF blocks. Open a TIFF, or one of the two written here, to follow the chain. Every page is decoded by this page’s own LZW, PackBits and Deflate code, not the browser, which can’t show TIFF at all except in Safari.

folder_openOpen .tif / .tiff3-page sample (II)Tiled, faulty sample (MM)downloadDownload
archive-3page.tif: little-endian, LZW + PackBits + preview, written here
file header, this file
490
491
2A2
003
964
605
006
007
byte order“II” = Intel, little-endian: least significant byte first
magic42, written in that byte order (2A 00)
first IFDoffset 24,726 (0x6096)
49 49 2A 00little-endian TIFF
4D 4D 00 2Abig-endian TIFF
49 49 2B 00BigTIFF (LE)

The IFD chain

click a directory to inspect it
IFD 0@24,726
360 × 240LZW · RGB · 20 tags
arrow_forwardnext → 35,080
IFD 1@35,080
420 × 240PackBits · BlackIsZero · 19 tags
arrow_forwardnext → 51,726
IFD 2@51,726
90 × 60reduced-resolution preview · none · RGB · 15 tags
blocknext = 0 (end)
decoding…
pixels360 × 240 · 3 × 8-bit
resolution300 dpi
print size1.20 × 0.80 in
layoutstrips of 16 rows
stored image bytes24.7 KB
vs uncompressed9.5% of 259.2 KB
IFD 0 · offset 24,72620 entries · sorted ascending
tagnametypecountvalue
256ImageWidthSHORT1360
257ImageLengthSHORT1240
258BitsPerSampleSHORT38, 8, 8 @24,972
259CompressionSHORT15 = LZW
262PhotometricInterpretationSHORT12 = RGB
269DocumentNameASCII25“scans/archive-box-12.tif” @24,978
270ImageDescriptionASCII49“Page 1: colour photo, LZW + horizontal predictor” @25,004
273StripOffsetsLONG158, 1702, 3882, 5942, 8106, 10190 … (15) @25,054
277SamplesPerPixelSHORT13
278RowsPerStripSHORT116
279StripByteCountsLONG151693, 2180, 2059, 2163, 2084, 2165 … (15) @25,114
282XResolutionRATIONAL1300/1 = 300 @25,174
283YResolutionRATIONAL1300/1 = 300 @25,182
284PlanarConfigurationSHORT11 = chunky (RGBRGB…)
296ResolutionUnitSHORT12 = inch
297PageNumberSHORT20, 2
305SoftwareASCII23“FileFormer TIFF writer” @25,190
306DateTimeASCII20“2026:10:03 12:00:00” @25,214
315ArtistASCII11“FileFormer” @25,234
317PredictorSHORT12 = horizontal differencing

Where every byte is referenced from

52.0 KB · 53 referenced ranges
headerdirectoriestag valuesimage strips / tilesnot referenced by any tag
check_circleLittle-endian classic TIFF.32-bit offsets cap the file at 4 GB; this one is 52.0 KB.
check_circleIFD chain ends cleanly.3 directories in the main chain, last next-pointer 0.
check_circleTags sorted in every directory.Ascending order, as TIFF 6.0 requires.
check_circleEvery byte is accounted for.Header, directories, values and image data cover the file.
infoMetadata that travels with the file.Artist.
check_circle1 reduced-resolution preview(s).NewSubfileType bit 0 marks them, so readers skip them when counting pages; they can go stale if a tool edits only the main image.
compression lab · real TIFFs written here, read back by the decoder above

Same pixels, six lossless TIFFs

The first decodable page of the loaded file (scaled to at most 480 px wide) is written six ways by this page’s TIFF writer. Predictor 2 stores each sample as the difference from its left neighbour, which turns smooth gradients into long runs of small numbers that LZW and Deflate compress far better. Each file is decoded again and compared pixel for pixel. A PNG of the same pixels is shown for scale.

Writing six TIFFs…

Reference

tagnamewhat it says
256 · 100ImageWidthpixels per row
257 · 101ImageLengthrows (TIFF says “length” for height)
258 · 102BitsPerSampleper channel: 1, 8, 16, 32…
259 · 103Compressioncodec for the strips or tiles (table on the right)
262 · 106PhotometricInterpretationwhat samples mean: 0/1 grey, 2 RGB, 3 palette, 5 CMYK, 6 YCbCr
273 · 111StripOffsetswhere each strip starts
278 · 116RowsPerStriprows in each strip (last may be short)
279 · 117StripByteCountsstored size of each strip
282 · 11AXResolutionpixels per unit, as a RATIONAL
296 · 128ResolutionUnit1 none, 2 inch, 3 cm
284 · 11CPlanarConfiguration1 RGBRGB…, 2 separate planes
317 · 13DPredictor2 = horizontal differencing before LZW/Deflate
322 · 142TileWidthtile size, a multiple of 16
324 · 144TileOffsetstiles instead of strips, left-to-right, top-to-bottom
338 · 152ExtraSampleschannel after colour: 1 premultiplied alpha, 2 straight alpha
254 · FENewSubfileTypebit 0 preview, bit 1 page of multi-page, bit 2 mask
34665 · 8769ExifIFDpointer to the EXIF directory
34853 · 8825GPSInfopointer to the GPS directory
34675 · 8773ICCProfileembedded colour profile
33550 · 830EModelPixelScaleGeoTIFF: ground size of a pixel
1nonedecoded
2CCITT 1D RLE-
3CCITT Group 3-
4CCITT Group 4 (fax)-
5LZWdecoded
6old-style JPEG-
7JPEG (DCT)-
8Deflatedecoded
32773PackBitsdecoded
34712JPEG 2000-
50000Zstandard-
50001WebP-
MIMEimage/tiff (RFC 3302); image/tiff-fx for fax profiles
Extensions.tif, .tiff; raw formats DNG, NEF, CR2, ARW, ORF are TIFF-structured
Magic bytes49 49 2A 00 or 4D 4D 00 2A; BigTIFF 49 49 2B 00 08 00 00 00
Entry12 bytes: tag, type, count, value-or-offset (values ≤ 4 bytes sit inline); BigTIFF 20 bytes
Size limit4 GB for classic TIFF (32-bit offsets); BigTIFF 64-bit
Pagesany number of IFDs in the chain; SubIFDs hang previews or raw data off one page
Browsersonly Safari renders TIFF in an img element; everything else needs a decoder like the one on this page
StandardsTIFF 6.0 (Aldus/Adobe 1992), TIFF/EP (ISO 12234-2), TIFF/IT (ISO 12639), DNG, GeoTIFF (OGC), BigTIFF
1986TIFFAldus and Microsoft publish TIFF for desktop scanners.
1988TIFF 5.0Adds LZW compression and palette colour.
1992TIFF 6.0Tiles, JPEG, CMYK and YCbCr. Still the current baseline.
1994AdobeBuys Aldus and with it the TIFF specification.
2003LZW freeThe Unisys LZW patent expires in the US; LZW TIFFs stop needing a licence.
2004DNGAdobe’s raw format, built as a TIFF with extra tags.
2011BigTIFFlibtiff 4.0 ships 64-bit offsets for files over 4 GB.

Doing something with a TIFF