ICO vs PPM: technical differences
To convert ICO to PPM, drop your ICO 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 about as plain as image formats get: a short header and then raw RGB bytes. Pixohub writes binary P6 at 8 bits per channel. There is no alpha, so an icon's transparent background becomes white and its soft edges are blended against white. The file size is exactly width × height × 3 bytes plus the header, about 192 KB for a 256 × 256 icon.
This is a niche conversion. Netpbm itself ships an ICO reader (winicontopam, and the older winicontoppm), and on a command line that is the better choice, because it can write every size and keep the alpha as a separate channel. This page is for quickly getting one icon into PPM without installing anything.
As with every ICO conversion here, Pixohub converts one embedded image, the largest, and that is the only size in the PPM.
| ICO (Windows Icon) | PPM (Portable Pixmap (Netpbm)) | |
|---|---|---|
| Compression | Embedded BMP or PNG images | None (raw binary P6 or ASCII P3) |
| Colour depth | Up to 32-bit RGBA per embedded size | 8 or 16 bits per channel, RGB only |
| Transparency | Yes (alpha or 1-bit mask) | None |
| Animation | None | None |
| Metadata | None | Comment lines in the header only |
| Typical file size | Small — usually a few sizes from 16×16 to 256×256 | Very large — exactly width × height × 3 bytes plus a header |
| Support | Windows and browsers (favicons) | Image-processing libraries, Netpbm, GIMP; not browsers |
When to convert ICO to PPM
Small test images for image-processing code
Icons make handy small, colourful test inputs for hand-written filters or compression code. A PPM loads with a few lines of C and no libraries.
Coursework that reads and writes PPM
Graphics and programming courses often use PPM as the image format. Converting a familiar icon gives students a recognisable image to process.
What converting ICO to PPM keeps and loses
What you keep
- Exact colours of the icon's opaque pixels
- The decoded entry's pixel dimensions
What you lose
- Transparency (blended onto white)
- All other sizes in the ICO
- Compression (PPM is raw)
Our test: ICO to PPM on two real files
Both PPMs are 147 KB: 256 × 192 × 3 bytes plus a 15-byte header (P6, the dimensions and 255). The graphic's transparency was flattened onto white, after which its pixels matched our white-background reference exactly.
The photo scored PSNR 33.57 dB because its Display P3 profile was converted to sRGB as it was drawn; PPM is lossless, so nothing else changed. Both conversions took under a second (964 ms and 963 ms), much like every other lossless ICO target, since writing raw bytes costs almost nothing.
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 | ICO in | PPM out | Pixels vs original | Transparency | Camera EXIF | Time |
|---|---|---|---|---|---|---|
| Photo, 256 × 192 | 73 KB | 147 KB (2.0× larger) | SSIM 1.000 · 33.6 dB | None in source | None in source | 1.0 s |
| Graphic, 256 × 192, transparent | 40 KB | 147 KB (3.7× larger) | Identical pixels | Flattened onto white | None in source | 1.0 s |
Last updated
Apps and sites that work with ICO and PPM
Netpbm's winicontopam
Netpbm reads ICO itself: winicontopam extracts every image from the file, with alpha, as a PAM stream, and the Netpbm tools can turn those into PPM. On a machine where Netpbm is installed, it's the better route when you need all the sizes.
Python, OpenCV and C
Pillow and OpenCV read P6 PPM files directly, and a loader in C fits in a dozen lines. Small, colourful icons make good test inputs for hand-written filters, because results are quick to check by eye. Our 256 × 192 icons came to 147 KB each, small enough to commit as test fixtures.
Viewing the PPM
GIMP, IrfanView and XnView open PPM files, and macOS users can inspect them in GIMP. Windows Photos doesn't open PPM, so double-clicking the file on a PC may show nothing until you pick another program. ImageMagick's display command also opens PPM on Linux.
Common ICO to PPM problems and fixes
Your program needs the transparency mask
PPM has no alpha channel, so the mask is gone and transparent pixels are white. If your code needs the mask, convert with ICO to PNG and read the PNG's alpha, or use winicontopam, which writes alpha as a separate plane. The white is baked into the pixel values, so it can't be separated again later.
Only one size was converted
Pixohub converts the largest entry, so a 16 × 16 version, if the icon has one, isn't in the PPM. Extract it with winicontopam, or open the ICO in GIMP, select that size's layer and export it as PPM. GIMP's PPM export asks for raw or ASCII; choose raw for P6.
Your loader rejects the header
The header is the minimal P6 form with no comment lines, 15 bytes for our 256 × 192 icon. If a loader still fails, it may expect ASCII P3; convert with Netpbm's pnmtoplainpnm, or extend the loader to accept binary P6. P3 files are several times larger and slower to parse.
How this converter works
Pixohub decodes your ICO and encodes the PPM entirely inside your browser. 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.