PGM to PNG

Convert PGM (Portable Graymap) grayscale images to PNG.

Learn more in the docs →

About this converter

Grayscale Support

Converts 8-bit and 16-bit grayscale PGM images to PNG.

ASCII & Binary

Supports both P2 (ASCII) and P5 (binary) PGM formats.

Universal Output

PNG works in all browsers and image editors.

Frequently Asked Questions

What is a PGM file?

PGM (Portable Graymap) is a grayscale image format from the Netpbm family. It stores 8-bit or 16-bit grayscale values and is commonly used in scientific imaging.

Why convert PGM to PNG?

PNG is universally supported by web browsers and image editors. PGM is mainly used in specialized scientific and image processing applications.

What about 16-bit PGM files?

This tool reads 16-bit PGM files and converts them to 8-bit PNG (the standard web format). The values are scaled proportionally to preserve relative brightness.