ToolFeather
Image & MediaRuns in your browser

PNG to PPM Converter

Export PNGs as Netpbm files — binary or ASCII PPM, grayscale PGM, 1-bit PBM, or PAM with alpha — the simplest image formats to read from your own code.

Quick presets

PNG to PPM Converter

Output · PPM
Only shrinks — smaller images are left as they are.

🔒 Processed on your device with the browser's own image engine — nothing is uploaded, and re-encoding strips EXIF metadata such as GPS location.

Files
–
–
Original
–
–
Result
–
–
Change
–
–
Your converted image appears here with a before / after slider.
Drop files on the left — or tap a sample above.
PNG vs PPM / PGM / PBM — what changes
  • PNGLossless (Deflate) · 1–16 bits per channel, palette or true colour · alpha: Full 8-bit alpha
  • PPM / PGM / PBMNone (binary or ASCII text) · 1-bit (PBM), gray (PGM) or RGB (PPM), up to 16 bits per sample · alpha: Only in PAM (P7)
  • TipChoose P3 (ASCII) when you want to inspect or hand-edit pixel values in a text editor; it's about 3–4× larger than binary P6.
  • PrivacyFiles never leave your device; re-encoding drops EXIF/GPS metadata.

Format facts checked October 2026.

Runs in your browser — nothing you enter is uploaded or stored.

ToolFeather · PNG → PPM
Scratchpad auto-saved
Stored in this browser (localStorage)
Step-by-step~40s read

How it works — in four simple steps

No signup and nothing to install — it all runs in your browser.

1

Add PNG files

Drop, choose or paste them — or press the sample preset above.

2

Set the PPM / PGM / PBM options

Choose P3 (ASCII) when you want to inspect or hand-edit pixel values in a text editor; it's about 3–4× larger than binary P6.

3

Convert

Press Convert — results appear with a before/after slider, sizes and format details.

4

Download

Save each file or everything as a ZIP.

Pro tip

Choose P3 (ASCII) when you want to inspect or hand-edit pixel values in a text editor; it's about 3–4× larger than binary P6.

Features

Every Netpbm flavour

Binary or ASCII PPM, grayscale PGM, 1-bit PBM, or PAM with alpha.

Batch + before/after

Convert many files at once, compare with the slider, download individually or as a ZIP.

Nothing uploaded

Decoding and encoding run in your browser tab; the files never leave your device.

About the PNG to PPM Converter

Netpbm is the go-to format when you write your own image code: parsing a PPM takes a dozen lines in C, Python or Rust. Students, computer-vision researchers and embedded developers convert PNGs to PPM/PGM to load test images without an image library.

The PNG is decoded by your browser, alpha included.

The file is written by our own Netpbm encoder: binary P6 (PPM), P5 (PGM, luminance from Rec. 601 weights), P4 (PBM, packed bits, 1 = black) or P7 (PAM with RGB_ALPHA), or the plain-text P3 variant with lines kept under 70 characters as the specification recommends.

PNG vs PPM / PGM / PBM compared

PropertyPNGPPM / PGM / PBM
Origin / standardW3C 1996 · ISO/IEC 15948Netpbm (Jef Poskanzer, 1988)
CompressionLossless (Deflate)None (binary or ASCII text)
TransparencyFull 8-bit alphaOnly in PAM (P7)
Colour depth1–16 bits per channel, palette or true colour1-bit (PBM), gray (PGM) or RGB (PPM), up to 16 bits per sample
Animation / pagesAPNG extensionNo
Maximum size2³¹ − 1 px (practically memory-bound)No fixed limit
Typical useScreenshots, UI, logos, web graphicsComputer vision, graphics courses, scientific tools
Opens inEverythingGIMP, ImageMagick, IrfanView, Photoshop — not browsers

Measured on our sample

What this page produced from its built-in sample (a 960 × 640 PNG), with each preset:

SettingInputOutputNotes
Default settings557.0 KB · 960 × 6401.76 MB · 960 × 640binary PPM
PGM grayscale557.0 KB · 960 × 640600.0 KB · 960 × 640binary PGM (grayscale) Saved as PGM — this browser can't encode PPM.

Measured with this page’s converter in Chromium (October 2026). Press the sample preset above to reproduce; your own images will differ with their content.

Things to know

Frequently asked questions

4 answers
How do I read a PPM file in Python?
Pillow opens P6/P5/P4 directly (Image.open), or parse it yourself: read the header 'P6 width height 255', then width × height × 3 bytes of RGB.
What is PAM?
Portable Arbitrary Map (P7): the Netpbm variant with a key-value header that supports alpha (TUPLTYPE RGB_ALPHA). Fewer programs read it than PPM.
Can I open a PPM on Windows or a Mac?
Not with the built-in viewers — use GIMP, IrfanView, XnView, Photoshop or ImageMagick, or convert it back with PPM to PNG.
Is my image uploaded?
No. PNG files are decoded and the PPM is created entirely in your browser — nothing is sent to a server, and EXIF/GPS metadata isn't copied.