.PPM

PPM File

Portable Pixmap (Netpbm color image)
Ask a question
QUICK ANSWER

A PPM file is a Portable Pixmap - an uncompressed RGB color image from the Netpbm family. Open it with the free GIMP, IrfanView, or XnView on any platform. Files are large because PPM stores every pixel with no compression; convert to PNG or JPG to save space and share the image.

Developer: Jef Poskanzer (Netpbm / Pbmplus project) Category: Raster Image Files Open standard MIME: image/x-portable-pixmap
OPENS ON Windows macOS Linux
Related: .JPG · .PNG · .TIF · .ECW

On this page

19k+ extensions indexed
Last reviewed Jun 29, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the PPM file format?

.ppm is an image format used for storing raster graphics. It supports 24-bit color and exists in two variants: a human-readable ASCII form (P3) and a compact raw binary form (P6). PPM files store images along with a plain-text header that records image dimensions and the maximum color value (typically 255). PPM files do not use compression, so images saved in this format are larger than compressed alternatives such as PNG. The binary P6 variant is more space-efficient than its ASCII counterpart, but both remain uncompressed and produce large files for high-resolution content.

PNM

PNM (portable anymap) is a portable image standard implemented in three image formats:

  • .PBM - monochrome (1-bit black and white image)
  • .PGM - greyscale (up to 65,535 shades of grey)
  • .ppm - full color

All three formats are part of the Netpbm toolkit, originally created by Jef Poskanzer, and are widely used as an intermediate step in image processing pipelines.

Security & safety

RISK: LOW

PPM is a passive, fully-documented raster image - header plus pixel data, no scripts or executable content, so opening one is safe. The only practical cautions are non-malware: files are large because PPM is uncompressed (convert to PNG to save space), and a malformed/oversized header could make a naive parser allocate a huge buffer, so use a maintained viewer. There is no metadata/EXIF privacy concern as the format carries none.

Format details

in a nutshell
FULL NAMEPortable Pixmap (Netpbm color image)
DEVELOPERJef Poskanzer (Netpbm / Pbmplus project)since 1988 (Pbmplus toolkit, later Netpbm)
MIME TYPEimage/x-portable-pixmap
TYPEUncompressed Netpbm raster bitmap; ASCII (P3) or raw binary (P6) variant
STANDARDOpen · royalty-free
This extension is also used by…
  • Adobe Photoshop Proof Settings - Rarely, .ppm denotes an Adobe colour-proof settings file rather than a Netpbm image.
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
5033
ASCII
P3
The file begins with a two-byte "magic number": "P3" (50 33) for the human-readable ASCII variant or "P6" (50 36) for the raw binary variant. After the magic number comes whitespace, the width and height in ASCII decimal, and the maximum colour value (e.g. 255), then the pixel data. The sibling formats use P1/P4 (PBM bitmap) and P2/P5 (PGM greyscale); PPM is the colour (RGB) member.

Programs that open PPM files

Windows4 apps
GIMP Open-source File > Open the .ppm directly; GIMP reads P3 and P6, then export to PNG/JPG via File > Export As.
IrfanView Free Open the .ppm to view instantly; use File > Save As or batch-convert to PNG/JPG.
ImageMagick Open-source Command line: 'magick input.ppm output.png' to view-convert; 'magick identify' to inspect.
XnView MP Free Open or browse PPM files; XnConvert (same maker) batch-converts folders of PPM to PNG/JPG.
macOS3 apps
GIMP Open-source Open the .ppm and export to a standard format; reads both PPM variants.
Preview Built-in macOS Preview opens many PPM files directly by double-clicking; export via File > Export.
ImageMagick Open-source Install via Homebrew, then 'magick in.ppm out.png' to convert/view.
Linux3 apps
GIMP Open-source Open the .ppm directly; export to PNG/JPG.
Netpbm Open-source The reference toolkit: 'ppmtopng', 'pnmtojpeg', 'pnmtopng' convert PPM to other formats; 'display' shows it.
ImageMagick / GraphicsMagick Open-source 'display in.ppm' to view; 'convert in.ppm out.png' to transcode.

Technical details

deep spec
MIME typeimage/x-portable-pixmap
Magic bytes"P3" (hex 50 33) for the ASCII variant or "P6" (hex 50 36) for the binary variant, at file offset 0
VariantsASCII (P3) - human-readable text pixels; binary (P6) - compact raw bytes
Color modelRGB (red, green, blue), 3 channels per pixel
Bit depth per channel8-bit (max sample value 255) or 16-bit (max sample value 65535)
Total color depth24-bit at 8 bpc; 48-bit at 16 bpc
CompressionNone - all pixels stored uncompressed
Header formatPlain-text ASCII header containing the magic number, image width, height, and maximum sample value
Pixel encodingP3: three whitespace-separated integers per pixel (R G B); P6: three raw binary bytes per channel
Comment supportHeader lines beginning with # are treated as comments and ignored by parsers
Maximum sample valueAny integer from 1 to 65535; 255 (8-bit) and 65535 (16-bit) are the most common
DeveloperJef Poskanzer; maintained as the Netpbm open-source project
Format familyNetpbm PNM suite - color member alongside PBM (monochrome bitmap) and PGM (greyscale)
Released1988 (Pbmplus toolkit, later Netpbm)
Open standardYes · royalty-free
Specificationnetpbm.sourceforge.net

PPM conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with PPM files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about PPM files.

Frequently asked questions

What program opens a PPM file?
The free GIMP, IrfanView and XnView all open PPM (both the P3 ASCII and P6 binary variants) on Windows; GIMP and Preview work on macOS; GIMP, Netpbm and ImageMagick on Linux.
How do I convert a PPM to PNG or JPG?
Open it in IrfanView, XnConvert, GIMP or ImageMagick and Save As / Export to PNG or JPG. For many files at once, IrfanView's and XnConvert's batch mode, or ImageMagick's 'mogrify -format png *.ppm', convert a whole folder.
What's the difference between PPM, PGM and PBM?
They're the same Netpbm family: PBM is 1-bit black-and-white, PGM is greyscale, and PPM is full RGB colour. PNM/PAM are umbrella names covering all three.
What's the difference between P3 and P6 PPM?
P3 stores pixels as human-readable ASCII numbers (you can open it in a text editor) - larger but inspectable. P6 stores the same pixels as raw bytes - smaller and faster. Both are valid PPM.
Why is my PPM file so large?
PPM uses no compression at all - it stores every pixel in full. Converting to PNG (lossless) or JPG (lossy) shrinks it dramatically with no or little quality change.
Can I open a PPM in a text editor?
Only the P3 (ASCII) variant meaningfully - you'll see the header and pixel numbers, not an image. P6 (binary) PPMs are raw bytes and look like gibberish in a text editor; use an image viewer instead.

References

1Netpbm - PPM format specificationnetpbm.sourceforge.net
2Netpbm project homenetpbm.sourceforge.net

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.MDMarkdown Document
3.CRDOWNLOADChrome Partial Download File
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

Related extensions

.JPGJPEG Image
.PNGPortable Network Graphics
.TIFTagged Image File Format
.ECWEnhanced Compression Wavelet (ECW) image
.AVIFAV1 Image File Format (AVIF)
.JP2JPEG 2000 Image (ISO/IEC 15444-1)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z