PPM to JPG Converter

Add a .ppm, written in digits or in bytes, and get a small JPG to send or post.

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. The .ppm's numbers are read, digits or bytes
  2. The picture is stored as a JPG
  3. You save the JPG

What it does

16-bit files too

A PPM can hold more than 256 levels for each color. Those files open as well, brought down to the 256 levels a JPG keeps.

Limits A PPM cut short, or with a color above the top value its header gives, gets an error instead of a guessed picture.

Why is your PPM so big, and how small can it get?

Partly it's down to how the file is spelled. As a JPG, it shrinks to a sliver either way.

Why can two PPMs of one picture differ so much in size?

A PPM stores a color picture with nothing squeezed: three numbers for every pixel, its red, green and blue. It comes in two spellings. One keeps each number in a single byte, which looks like gibberish in a text editor. The other writes every number out in digits, with spaces between them, so Notepad shows the whole picture as columns of figures.

The digits cost room. Our 128 by 96 test photo took about three and a half times as much written in digits as in bytes, for exactly the same pixels.

Our photo's JPG was a small fraction of either PPM

PPM

In digits 128.4 KB
In bytes 36.9 KB

JPG

From either 5.7 KB

File size, KB

FluffyBench made a JPG from each PPM; both came out at the size shown. How we measured

Either kind gives the same JPG, byte for byte, so it makes no difference which one your program wrote.

Your PPM, converted

Quality starts at 92, which is what our test JPG was made with.

  1. Pick the .ppm in Choose images.

  2. Convert 1 to JPG is the button to press next.

  3. Keep the JPG: it’s the arrow button on its card.

    The finished card for the plain-text PPM of a mountain photo, its size before and after the arrow, with the Download button outlined.
    The finished card for the plain-text PPM of a mountain photo, its size before and after the arrow, with the Download button outlined.

Must every color stay as the program wrote it?

Yes: you'll compare the picture against another, or keep editing it.

FluffyBench's PPM to PNG converter

A PNG keeps every pixel exactly. On our photo it came out only a little smaller than the PPM in bytes.

Search FluffyBench