TIFF vs PPM: technical differences
To convert TIFF to PPM, drop your TIFF file into the converter above and download the PPM: the plain, uncompressed Netpbm format that image-processing scripts read. It is free, needs no sign-up, and runs in your browser, so the file is never uploaded.
PPM is the colour member of the Netpbm family: a short text header (P6, width, height, max value) followed by raw RGB bytes. Pixohub writes binary P6 at 8 bits per channel, so the file is exactly width × height × 3 bytes plus about 15 bytes of header. It is uncompressed, unambiguous and trivially easy to read from code. That is its only purpose, and it is a good one.
PPM's 16-bit mode (maxval up to 65535) could in principle preserve a 16-bit TIFF, but the browser canvas is 8-bit, so the output uses maxval 255 and 16-bit TIFFs are reduced. PPM has no alpha channel, so transparent regions are composited onto white. There is no colour-profile or metadata support beyond comment lines, and Pixohub writes none.
Compared with TIFF, PPM removes every decoding variable: no byte-order flag, no compression scheme, no strips or tiles, no extra samples. This is honestly a niche conversion. If you have a command line, Netpbm's own tifftopnm or ImageMagick will do it with 16-bit support. The value of this page is doing it quickly without installing anything.
| TIFF (Tagged Image File Format) | PPM (Portable Pixmap (Netpbm)) | |
|---|---|---|
| Compression | None, LZW, ZIP (lossless) or JPEG (lossy) — chosen per file | None (raw binary P6 or ASCII P3) |
| Colour depth | 8, 16 or 32 bits per channel; RGB, CMYK, Lab, greyscale | 8 or 16 bits per channel, RGB only |
| Transparency | Alpha channels supported | None |
| Animation | No (but can hold multiple pages) | None |
| Metadata | Rich tags: EXIF, IPTC, XMP, ICC profile | Comment lines in the header only |
| Typical file size | Large — uncompressed 8-bit RGB is about 3 bytes per pixel | Very large — exactly width × height × 3 bytes plus a header |
| Support | Print, scanning and pro editors; most browsers cannot display it | Image-processing libraries, Netpbm, GIMP; not browsers |
When to convert TIFF to PPM
Test inputs for image-processing code
Students and researchers writing filters, convolution kernels or compression experiments often read PPM because a loader is ten lines of C. Converting a standard TIFF test image (many classic test sets were distributed as TIFF) to PPM gives a ready input.
Feeding Netpbm or old Unix pipelines
Netpbm tools and many legacy scripts operate on PNM streams. A PPM avoids TIFF-reading issues, such as unsupported compression or tiles, at the start of the pipeline.
Embedded and hobby display projects
Microcontroller and LED-matrix projects sometimes load raw RGB data. A P6 PPM is raw RGB with a tiny header, easy to strip or parse on-device.
What converting TIFF to PPM keeps and loses
What you keep
- Exact 8-bit RGB pixel values of opaque images
- Pixel dimensions
What you lose
- Alpha transparency (flattened onto white)
- 16-bit precision; output maxval is 255
- All compression: the PPM is raw
- Metadata, ICC profile, DPI, extra pages and CMYK accuracy
Our test: TIFF to PPM on two real files
The PPMs are exact (identical, maxDiff 0) and their sizes are pure arithmetic: width × height × 3 bytes plus a header of 15 to 17 bytes. The 1600 × 1200 photo is 5.8 MB and the 800 × 600 graphic is 1.4 MB, no matter that the TIFFs were 4.3 MB and 595 KB.
The graphic's transparency is gone, because PPM has no alpha; it was flattened onto white, and after that flattening it matched the reference pixel for pixel. Both conversions finished in about a second (1,256 ms for the photo), most of it spent decoding the LZW TIFF.
Method: this converter in Chromium (Playwright 1.64.1) on an Apple M2 Mac, default 85% quality for lossy output. The photo is an iPhone 14 Pro Max shot scaled to 1600 × 1200, metadata intact; the graphic has a transparent background, soft shadow, gradients and text. SSIM and PSNR compare each result with the decoded original on white (how we test).
| Test file | TIFF in | PPM out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 1600 × 1200 | 4.3 MB | 5.8 MB (+35%) | Identical pixels | None in source | Removed | 1.3 s |
| Graphic, 800 × 600, transparent | 595 KB | 1.4 MB (2.4× larger) | Identical pixels | Flattened onto white | None in source | 0.9 s |
Last updated
Apps and sites that work with TIFF and PPM
Netpbm and ImageMagick
On Linux or macOS with Homebrew, Netpbm's tifftopnm and ImageMagick's magick convert TIFF to PPM on the command line, and both can keep 16 bits per channel. Use this page when you can't install them, for example on a locked-down lab PC.
Python, OpenCV and C code
Pillow and OpenCV's imread read PPM, and so can a dozen lines of C. That makes PPM a convenient test input for coursework that forbids image libraries. A P6 loader only has to read three header values and then copy width × height × 3 bytes, with no decompression step to get wrong.
Viewing PPM files
GIMP, IrfanView and XnView open PPM. Windows Photos does not, so double-clicking the converted file on a PC may not show anything until you open it in one of those. On a Mac, GIMP is the simplest free option for checking that the output looks right before feeding it to your own code.
Common TIFF to PPM problems and fixes
Your loader reads garbage after the header
Pixohub writes the minimal header: P6, a newline, width and height separated by one space, a newline, 255 and a newline, with no comment lines (17 bytes for our photo). If your loader still reads shifted or striped pixels, check that it opens the file in binary mode, which matters on Windows, and that it skips exactly one whitespace byte after 255.
A greyscale scan triples in size
PPM is colour only, so a greyscale TIFF is written with equal R, G and B values. For 8-bit greyscale, convert the PPM to PGM with Netpbm's ppmtopgm, or read just one channel in your own code. Our colour photo is a good reference point: 1600 × 1200 took 5.8 MB, and a greyscale PGM of the same size would be a third of that.
Values differ from what your TIFF library reads
If you compare the PPM with a 16-bit TIFF loaded through libtiff, Pillow or OpenCV, the numbers won't match: Pixohub's canvas is 8-bit, so the PPM has maxval 255 and every channel is reduced to 8 bits. For an 8-bit TIFF they match exactly, as both our test files did. Use tifftopnm from Netpbm when you need a 16-bit PPM for numerical work.
How this converter works
Pixohub decodes your TIFF and encodes the PPM entirely inside your browser, using a bundled TIFF decoder because browsers cannot open TIFF natively. Nothing is uploaded, so the conversion is private by design and as fast as your device.
Need more? Shrink the result with the image compressor, change its dimensions with the image resizer, or convert a whole folder at once with bulk format convert.