How to convert PGM to PNG
- Add your .PGM file - drop it in the box above or click to browse.
- Convert it to .PNG in a few seconds.
- Download your new .PNG file.
What to expect
- Conversion is fully lossless - PNG stores the same pixel values as the source
.pgmwith no quality loss. - PNG compression is efficient on grayscale data; expect the output file to be 5-15× smaller than the original
.pgm. - IrfanView may reduce a 16-bit
.pgmto 8-bit on export; use GIMP or ImageMagick if full bit depth must be preserved.
Frequently asked questions
Will the PNG look different from the PGM?
No - both formats are lossless, so all gray values are identical in the output PNG.
Does PGM to PNG conversion keep 16-bit depth?
GIMP and ImageMagick both output 16-bit grayscale PNG from a 16-bit
.pgm; IrfanView may reduce it to 8-bit.Will the output PNG be in colour?
No - PGM is grayscale only, so the PNG is also grayscale; this is correct behaviour, not an error.
Can I batch-convert a folder of PGM files?
Yes - use XnConvert (drag in the folder) or ImageMagick:
magick mogrify -format png -path ./out *.pgm.Programs that convert PGM: Adobe Photoshop · Bryce · PhotoFiltre Studio · PolyTrans|CAD+DCC · reaConverter · Xara Page & Layout Designer · Ability Photopaint · Bryce for Mac