Add a .pbm and get a PNG of the same black-and-white picture that any phone or computer opens.
FluffyShieldProtected workspace
From
To
Loading the tool…
The tool didn't load. Reload the page, or check whether an extension or network filter blocks .
Free · No upload · No sign-up · No usage quotas
PNG options here: browser or advanced encoder; RGBA, RGB, grayscale or indexed color; 8- or 16-bit; Fast, Balanced or Maximum compression; interlacing. Which PNG settings are worth changing?
How it works
The .pbm's digits or bits are read
→Each pixel becomes black or white
→The pixels are saved as a PNG
What it does
Two colors, exactly
Every pixel of the PNG is pure black or pure white. Pillow, an image library we used as a second reader, decoded our test PBMs to the very same pixels.
Pixels that differed, plain-text photo: 0 of 12,288 pixels changed
Digits or packed bits
A PBM written out in digits and one packed into bytes open the same way. Our two copies of one photo, one of each kind, gave the same PNG.
Limits A PBM ending before its last row gets an error, not half a picture.
What do the 0s and 1s in your PBM become?
Pixels, one for each digit, black or white just as the PBM format sets out.
FluffyBench · 2 min read · Measured on test bitmaps
Which digit makes a black pixel in a PBM?
A plain-text PBM holds a short header, then rows of 0s and 1s, one digit for each pixel. Netpbm's description of the format says 1 is black and 0 is white, as if each 1 were a dot of ink on white paper, and FluffyBench reads every PBM that way.
Digits and pixels
Every 1 in the file is a black pixel in the PNG, and every 0 a white one. How we measured
Saving the bitmap as a PNG
Have the .pbm ready; Settings can stay as they are.
Choose images opens your files: select the .pbm there.
Press Convert 1 to PNG.
Look at the small picture on the finished card.
If black and white are where you expect, take the PNG with the arrow below it.