en

PPM to PNG

Convert Netpbm images (PPM, PGM, PBM) to PNG locally - lossless, no upload, right in the browser.

Your files

    Running locally on your device ...

    0%

    Your files never left your device

      Is my file uploaded?

      No. Everything runs in your browser - your file never leaves your device. How this is verifiable

      No upload100% local
      Your content stays with youno third-party access
      Servers in GermanyGDPR by design
      Independently auditedTLS A+ · HTTP headers A+

      PPM, PGM and PBM belong to the Netpbm family - deliberately simple raster formats from the Unix world that almost every scientific, graphics or image-processing tool can write. Their structure is about as plain as it gets: a tiny header of a magic number, width, height and maximum value, followed by the raw pixel data. That very simplicity makes them popular as an intermediate format - but useless for viewing or sharing, because hardly any image viewer or browser opens them. PNG, by contrast, is universal, lossless and displays everywhere.

      This tool reads all six Netpbm variants: the binary ones (P6 colour, P5 grayscale, P4 black-and-white) as well as the text-based ASCII forms (P3, P2, P1), including comments in the header and a maximum brightness other than 255, which is scaled correctly to 8 bit. Grayscale is spread across RGB and the result is an opaque PNG. The conversion runs entirely locally in your browser with a lean JavaScript decoder - no upload, even offline, and with no third-party library. Very large images are capped to protect memory.

      You will meet this when a program such as ImageMagick, GIMP, a renderer or a research tool has emitted an image as PPM, PGM or PBM and you now want to view it, drop it into a document or simply pass it on. PNG is lossless and transparency-capable - ideal for exactly this pixel-for-pixel faithful transfer. For plain photos where file size matters, a JPG is the more compact choice afterwards.

      Specifications

      Specifications
      Input formatsPPM, PGM, PBM, PNM
      Output formatPNG
      Batch processingYes
      ProcessingLocally in your browser (JavaScript)
      File uploadNone

      In 3 steps

      1. Drop or tap your PPM, PGM or PBM file.
      2. The decoder reads the header and pixel data.
      3. Download the PNG (several as a ZIP).

      Limitations: The Netpbm formats PPM, PGM and PBM are supported in binary (P6/P5/P4) and ASCII form (P3/P2/P1); 16-bit values are scaled to 8 bit. Netpbm has no transparency - the PNG is opaque. Very large images are capped, and a file without a valid Netpbm header is rejected honestly rather than producing a blank image.

      FAQ

      What are PPM, PGM and PBM?

      The Netpbm formats: PPM stores colour, PGM grayscale, PBM pure black-and-white. They have a very simple structure and are a popular intermediate format in image processing.

      Are my files uploaded?

      No. The conversion happens entirely locally in the browser - even offline.

      Are both the binary and the ASCII form supported?

      Yes. Both are read: the binary variants P6/P5/P4 and the text-based P3/P2/P1.

      Is quality preserved?

      Yes. PNG is lossless; the pixels are taken one to one. 16-bit values are scaled to 8 bit.

      Does the PNG have transparency?

      No. Netpbm has no alpha channel, so the resulting PNG is fully opaque.

      Related tools