JPG to PPM Converter

Turn a JPG photo into a plain RGB PPM for Netpbm tools and image-processing code.

or drop files here

JP

JPG Format

JPEG image

A lossy raster image format defined by the Joint Photographic Experts Group (ISO/IEC 10918-1), designed for photographs. .jpg and .jpeg are the same format.

  • lossy compression
  • adjustable quality
  • no alpha transparency
PP

PPM Format

Portable Pixmap

The color member of the Netpbm family of formats. Each pixel stores red, green and blue values, in a plain text or binary encoding.

  • RGB only, no alpha
  • 8-bit or 16-bit samples
  • plain text or binary encoding

How to convert JPG to PPM

Follow these steps to convert JPG to PPM online.

    1

    Choose your JPG file, or several at once.

    2

    Wait while the converter turns each file into PPM.

    3

    Download each new PPM file. Your original file isn't changed.

Before converting JPG to PPM

  • PPM stores raw RGB pixels, so the file is much larger than the JPG.
  • The JPG's metadata is dropped, and PPM has no alpha channel.
  • The JPG's compression artifacts are written into the PPM as they are.

Understanding JPG to PPM

What is a JPG file?

Its name honors the Joint Photographic Experts Group, a committee that started in 1986. ITU-T T.81 (1992) holds the core specification, and ISO/IEC 10918-1 followed in 1994. Baseline JPEG is lossy. It transforms 8x8 pixel blocks with a discrete cosine transform, then packs the result with Huffman coding. Color channels get 8 bits each, and there is no alpha channel or layer support. Quality usually runs on a 0 to 100 scale, yet one number can mean different results in different programs. Both .jpg and .jpeg name this format. US patents on it lapsed in October 2006.

Programs that open JPG files

  • Windows, Mac and Linux: ImageMagick reads JPG from the command line, and GIMP imports it for editing.
  • Web and Mobile: Chrome displays JPG on both, Firefox on the web and Safari on phones.

JPG and PPM compared

PPM is the color member of the Netpbm family. Each pixel carries red, green and blue samples, in a binary form that starts with P6 or a plain-text form that starts with P3. The maximum sample value can run from 1 to 65535, and PPM has no alpha channel. The media type image/x-portable-pixmap is conventional but not registered with IANA, and a raw PPM can hold a sequence of images with no separators.

The browser decodes your JPG and the page writes the pixels out with ImageMagick. Compression is gone, so the file balloons. Metadata is dropped, and quality lost to JPEG stays lost.

Other ways to convert JPG to PPM

  • Netpbm: jpegtopnm photo.jpg > photo.ppm handles color input. A grayscale JPG yields PGM, not PPM.
  • GIMP: load the JPG, use File > Export As with a .ppm name, and select ASCII or raw data formatting.
  • ImageMagick: magick photo.jpg photo.ppm converts by extension and writes color PPM.

Problems with JPG files

JPEG export cannot keep transparent pixels, so for transparency use a format that has alpha. Some older photo frames reject progressive JPEG, and an export with progressive mode disabled fixes that. Equal quality values in two editors need not give equal compression or equal looks. Layers do not survive in a JPEG, so keep your project file for later edits.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert a JPG to PPM?

Why is my PPM file much larger than the JPG?

What is the PPM file called?

Does the PPM get back the quality JPEG lost?

Does the PPM keep EXIF data?

Why use PPM at all?

Does PPM support transparency?

Can I do a whole folder of JPGs in one go?