PBM to JPG Converter

Add a black-and-white .pbm and get a JPG for the form or site that will take nothing else.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

How it works
  1. Each bit is read as a black or a white pixel
  2. The picture is written as a JPG at Quality 92
  3. You save the JPG

What it does

Header note left out

A program can write a note into a PBM's first lines, after a # sign, such as its own name. The JPG doesn't carry it over.

Limits A plain-text PBM with any digit other than 0 or 1 gets an error, and so does a file that ends before its last row.

Why is the JPG of your PBM bigger than the PBM?

A PBM spends one bit on a pixel. A JPG spends far more on every sharp edge, and a black-and-white picture is nothing but edges.

Why does a black-and-white picture grow as a JPG?

A PBM is about the leanest picture file there is. Each pixel is a single bit, black or white, so eight pixels fit in one byte. A line drawing, a signature or a mask that tells a program which pixels to keep needs no third shade, and a PBM spends no room on one.

A JPG works from the opposite idea. It was made for photos, where colors drift gently from one pixel to the next, and it saves room by describing those gentle changes in broad strokes. A jump from pure black to pure white is the least gentle thing a picture can hold, and a JPG needs a lot of description to get anywhere near it.

Our black-and-white Earth came out five times larger as a JPG

PBM 1.2 KB
PNG 3.0 KB
JPG 6.0 KB

File size, KB

All three hold the same 96 by 96 pixel bitmap. FluffyBench made the PNG and the JPG at its starting settings. How we measured

Even with all that room, the edges don't come out clean. Where black meets white, the JPG leaves a thin haze of gray. In our bitmap 2,755 of the 9,216 pixels, about three in ten, came back slightly off pure black or white, the worst by 11 steps on the 0 to 255 scale. That's too faint to notice at a glance, but the picture is no longer just two colors.

So send the JPG where nothing else is accepted, and keep the .pbm as your copy.

Turning the bitmap into a JPG

Our JPG was made with Settings as they start, and yours can be too.

  1. Tap or click Choose images and pick the bitmap.

  2. Start the conversion with Convert 1 to JPG.

  3. Save the JPG with the download arrow on its card.

    The finished card for the black-and-white Earth, its file size before and after the arrow, with the Download button outlined.
    The finished card for the black-and-white Earth, its file size before and after the arrow, with the Download button outlined.

Is there a better copy to send?

The site, app or person will also take a PNG.

FluffyBench's PBM to PNG converter

A PNG copies every pixel exactly, so the bitmap stays pure black and white.

Search FluffyBench