PGM converter, in your browser.
Convert PGM files to PNG, JPG, WebP and PDF. Everything on this page is converted in your browser, so your files never leave your device.
Drop files hereTap to choose files
or choose from your computer paste with Ctrl⌘ V
from Photos or Files
Ready · several at once0 bytes uploaded, ever
- No account, no email
- Batch and ZIP download
- Free
Convert PGM to…
About PGM
PGM is the greyscale member of the Netpbm family: a text header and then one brightness value per pixel, uncompressed. It is used in image-processing courses, computer vision datasets and Unix pipelines where a minimal format helps.
PGM files are uncompressed and greyscale only, and few everyday apps open them. PGM is a trivial greyscale format that any program can read.
- Stands for
- Portable Graymap
- Type
- Raster image
- Compression
- None
- Transparency
- No
- Animation
- No
- Introduced
- 1988, by Jef Poskanzer
- Opens in
- GIMP, ImageMagick, IrfanView and Unix graphics tools; not browsers
- Best for
- Greyscale images in scientific and command-line tools
- File extension
- .pgm
- MIME type
- image/x-portable-graymap
Questions
How do I open a PGM file?
PGM opens in: GIMP, ImageMagick, IrfanView and Unix graphics tools; not browsers. If your device or app cannot open it, convert it to PNG or JPG above.
What can I convert PGM to?
ToAny converts PGM to PNG, JPG, WebP and PDF.
Can I convert other files to PGM?
No. ToAny reads PGM files and converts them to other formats, but it does not create PGM.
Are my files uploaded?
No. Every PGM conversion listed here runs inside your browser. The files stay on your device.
Other image formats
- JPG JPG converter The universal photo format: small files, opens everywhere, no transparency.
- PNG PNG converter Lossless images with transparency; best for screenshots, logos and graphics.
- WEBP WebP converter Google's web image format: smaller than JPG and PNG, with transparency and animation.
- HEIC HEIC converter The photo format iPhones save by default; half the size of JPG but not opened by many apps.
- AVIF AVIF converter A modern format with the best compression of all; supported by current browsers, few desktop apps.
- GIF GIF converter Short looping animations and simple graphics, limited to 256 colours.
- BMP BMP converter An uncompressed Windows bitmap: large files, universally readable.
- TIFF TIFF converter A lossless format used in print, scanning and archiving.
- ICO ICO converter The Windows and favicon icon format; holds several sizes in one file.
- SVG SVG converter Vector graphics that stay sharp at any size.
- JXL JXL converter JPEG XL: a next-generation format with excellent quality per byte.
- PSD PSD converter Adobe Photoshop's layered project file.
- APNG APNG converter Animated images like GIF, with full colour and smooth transparency.
- QOI QOI converter The Quite OK Image format: lossless, simple and very fast to read and write, used by games and tools.
- TGA TGA converter The Truevision Targa format that game engines and 3D tools use for textures.
- PPM PPM converter The portable pixmap: a plain colour image that Unix tools and research code read and write.
- PBM PBM converter The portable bitmap: a plain black-and-white image.
- PAM PAM converter The portable arbitrary map: the Netpbm format that also carries transparency.
- JP2 JP2 converter JPEG 2000: a wavelet-based format used in medical imaging, archives and digital cinema.
- ICNS ICNS converter The macOS app and folder icon format; holds several sizes in one file.
- CUR CUR converter The Windows mouse cursor format: an icon file with a click point.
- ANI ANI converter The Windows animated mouse cursor format; only its first frame can be converted.
- KRA KRA converter The layered painting file Krita saves; the flattened picture stored inside it is what converts.
- ORA ORA converter The open layered image format used by Krita, GIMP and MyPaint; the flattened picture stored inside it is what converts.
- FF FF converter The farbfeld format: 16-bit RGBA pixels with a tiny header, used by suckless tools.
- WBMP WBMP converter The one-bit-per-pixel image format of old WAP phones.
- AF AF converter The single document format of Affinity 3, which replaces .afphoto, .afdesign and .afpub; the preview saved inside it is what converts.
- AFPHOTO AFPHOTO converter The photo-editing project file Affinity Photo saves; the preview saved inside it is what converts.
- AFDESIGN AFDESIGN converter The vector design file Affinity Designer saves; the preview saved inside it is what converts.
- AFPUB AFPUB converter The page-layout file Affinity Publisher saves; the preview saved inside it is what converts.
- EXR EXR converter The high-dynamic-range format of film, VFX and 3D renders: floating-point light values, far brighter than a screen can show.
- HDR HDR converter The Radiance high-dynamic-range format used for light probes, environment maps and lighting studies.