Home/PGM Converter

PGM Converter

Convert Portable Graymap files to 13 formats and create PGM files from 13 formats — free, private and right in your browser.

What Is PGM?

Portable Graymap (PGM) was created by the Netpbm project in 1988 and is used for grayscale images for computer vision and scientific work. PGM is the grayscale member of the Netpbm family, widely used in computer vision and image-processing courses. Its main advantage is dead-simple grayscale pixels any program can parse; the downside is that no color and no compression.

CompressionLossless
Color depth8-bit grayscale
TransparencyNo
AnimationNo
Opens inGIMP, ImageMagick, IrfanView, Python (Pillow, OpenCV), MATLAB

Most Useful PGM Conversions

Converting PGM to JPG, WebP, PNG covers almost every need: JPG is the most compatible, WebP is the most efficient for websites, and PNG is lossless.

Tips for Working With PGM

Color is converted to grayscale using standard luminance weights.

Frequently Asked Questions

What is a PGM file?

PGM (Portable Graymap) is a format created by the Netpbm project in 1988, used for grayscale images for computer vision and scientific work. PGM is the grayscale member of the Netpbm family, widely used in computer vision and image-processing courses.

How do I open a PGM file?

PGM files open in GIMP, ImageMagick, IrfanView, Python (Pillow, OpenCV) and MATLAB. If you don't have any of these, convert the PGM to JPG or PNG with FxtImg.

What is the best format to convert PGM to?

For most people JPG, followed by WebP or PNG. Pick JPG for the widest compatibility and smallest photo files.

Is it safe to convert PGM files online with FxtImg?

Yes. FxtImg converts PGM files inside your browser; the file is never uploaded, so nobody else can see it.