PGM Image (.PGM)
PGM (Portable Graymap Format) is a grayscale image format in the Netpbm family, storing single-channel pixel intensity values. Like other Netpbm formats, it supports both ASCII (human-readable) and binary (compact) encoding modes. PGM is commonly used in academic and scientific contexts where simplicity and ease of programmatic manipulation are priorities.
Advantages of PGM Image
What the PGM format does well, and why you might choose it.
- Very simple specification that is trivial to parse and generate
- Lossless storage of grayscale image data
- No external library dependencies required for reading or writing
Limitations of PGM Image
What the PGMformat doesn't do well, and when to choose another format.
- No compression results in large file sizes
- Limited to single-channel grayscale images only
- Not supported by web browsers or most consumer software
What PGM files are used for
- Computer vision research and academic image processing
- Grayscale image data interchange in scientific computing
- Input and output format for command-line image manipulation tools
Convert to PGM
The most common formats people convert to PGM, ready to convert in seconds.
Convert PGM to other formats
Convert PGM Image files into the format you actually need.
Frequently asked questions about PGM
What is a .PGM file?
PGM (Portable Graymap Format) is a grayscale image format in the Netpbm family, storing single-channel pixel intensity values. Like other Netpbm formats, it supports both ASCII (human-readable) and binary (compact) encoding modes. PGM is commonly used in academic and scientific contexts where simplicity and ease of programmatic manipulation are priorities.
What is the MIME type of PGM?
The official MIME type for PGM files is image/x-portable-graymap. This is the value web servers and applications use to identify the format when transferring files.
What category does PGM belong to?
PGM is a Image Converter format. Files in this category share common conversion paths and use cases.
How do I open a .PGM file?
PGM files are typically opened by software that natively supports the PGM Imageformat. If you don't have a compatible application, the most reliable approach is to convert the file to a more universal format using the converters listed above. Most PGM Image files convert to widely-supported alternatives in seconds.
Have a PGM file you need to convert?
Free, instant, no signup. Files deleted within an hour of upload.
Convert PGM to JPG