View PGM files in your browser

Netpbm's grayscale image, the format of robot maps, depth images and image courses. Open one right here at full size and keep it as PNG. Nothing leaves your device.

Or drop it anywhere on this page

What you'll see

Your file opens at actual size, or shrunk to fit your screen.

map.pgm

PGM • 4000 × 4000 • 8 bit • 15.3 MB

  • Actual size, or shrunk to fit
  • Drag to pan • Pinch or scroll to zoom
  • Fullscreen
  • Export • Save as PNG or JPEG

About PGM

PGM is the gray member of Netpbm, which Jef Poskanzer began in 1988. Robots running ROS save their maps in it, OpenCV and image courses read and write it, and depth cameras and lab tools save frames in it.

A PGM is a short text header with the width, the height and the brightest value, then a gray level for each pixel, in bytes or written as numbers. Up to 255 a pixel takes one byte, and up to 65535 two.

No browser shows PGM. Filepeek decodes it itself, 16 bit levels scaled to the screen, and Export saves it as PNG or JPEG.

Portable Graymap

Format

MIME type
image/x-portable-graymap
Made by
Jef Poskanzer
Released
1988

Inside the file

Pixels
Gray levels
Depth
8 or 16 bits
Header
A line of text
Pixels as
Bytes or numbers

Opens in every browser

No browser shows PGM by itself. Filepeek decodes it in Chrome, Edge, Firefox and Safari.

  • YouChromeOpens through Filepeek
  • YouEdgeOpens through Filepeek
  • YouFirefoxOpens through Filepeek
  • YouSafariOpens through Filepeek

Questions

How do I open a PGM file?

Drop it on this page or press Peek a PGM. It opens at full size, with nothing to install.

How do I convert PGM to PNG?

Open it, then choose Export and Save as PNG.

Does it open 16 bit PGMs?

Yes. A brightest value over 255 means two bytes a pixel, and each level is scaled to the screen.

Is my image uploaded?

No. It opens inside your browser and never leaves your device.

More image formats

All supported file types

Opens in a new tab

EXIF

Verify

License

Signature