PNG to PPM Converter

Convert a PNG into a Netpbm PPM file in your browser; transparency is dropped.

or drop files here

PN

PNG Format

Portable Network Graphics

A lossless raster image format developed in the mid-1990s as a patent-free replacement for GIF and standardized as ISO/IEC 15948 and a W3C Recommendation.

  • Lossless compression
  • Alpha transparency
  • 8-bit and 16-bit channels
  • Supported by every browser
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
  • Part of Netpbm

How to convert PNG to PPM

Follow these steps to convert PNG to PPM online.

    1

    Choose your PNG 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.

What to know before converting PNG to PPM

  • PPM has no alpha channel, so a PNG's transparency is not kept.
  • The picture passes through 8 bits per channel, so a 16-bit PNG loses depth.
  • EXIF, ICC and XMP data are dropped.
  • An animated PNG gives its first frame only.

Understanding PNG for PPM output

What is a PNG file?

PNG stands for Portable Network Graphics. It came out of the 1990s effort to replace GIF without patent worries, and today it is both a W3C Recommendation and ISO/IEC 15948. The format is lossless, can carry an alpha channel and allows either 8 or 16 bits for each color channel.

Programs that open PNG files

For PPM output, open the PNG in:

  • Windows, Mac and Linux: GIMP opens PNG files for editing, and ImageMagick reads PNG as well.
  • Web: Chrome and Firefox display PNG in a page.
  • Mobile: Safari and Chrome display PNG on phones.

PPM has a narrower audience, so use an imaging tool rather than expecting a phone gallery to show it.

PNG and PPM compared

  • Compression: PNG is lossless and compact. PPM stores samples with little compression, so files can be large.
  • Transparency: PNG has alpha. PPM has none.
  • Depth: PNG allows 8 and 16 bits per channel. PPM allows 8 or 16, and this page writes 8.
  • Encoding: a binary PPM begins with P6, and the rarer plain-text form with P3.
  • Family: PPM is the color member of Netpbm, next to grayscale PGM and black-and-white PBM.
  • Samples: each PPM pixel carries red, green and blue samples, and the maximum sample value can range from 1 to 65535.

The PNG is read into 8-bit RGBA pixels by the browser, then ImageMagick compiled to WebAssembly writes the PPM. Metadata stays behind.

Other ways to convert PNG to PPM

  • ImageMagick: run magick diagram.png diagram.ppm. The output ending selects the format.
  • Netpbm: run pngtopam -mix -background=white diagram.png > diagram.ppm to compose transparency onto white. A grayscale PNG produces PGM instead and a black-and-white one PBM, so check the file header.

Problems with PNG files

  • A logo gained a background: the PNG's alpha channel cannot be stored in PPM, so flatten onto a chosen color first.
  • A 16-bit PNG lost depth: the page writes eight bits per channel.
  • An animated PNG became a still: the page uses the first frame and ignores the rest.
  • Colors changed: the embedded profile is dropped.
  • You worry about the PNG's compression level: PNG compression is lossless, so lowering the setting never costs pixel fidelity.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert a PNG to a PPM?

What becomes of transparent areas?

Does a deep-color PNG stay deep?

Are the ICC profile and EXIF data copied?

Why is the PPM so much bigger than my PNG?

What is the difference between PPM, PGM and PBM?

What if the PNG is animated?

Can I convert several PNG files at once?