PGM to PBM

Convert Portable Graymap (.pgm) to Portable Bitmap (.pbm).

Source Portable Graymap: PGM (Portable Graymap) is Netpbm's grayscale member: a minimal header plus an 8- or 16-bit pixel matrix, with an ASCII variant humans can literally read. Computer-vision coursework and algorithm prototypes (edge detection, thresholding) love it for zero friction. Convert to PNG for lossless general use, to JPEG for compact sharing, or batch to TIFF for pro tools.

Target Portable Bitmap: PBM (Portable Bitmap) is the simplest member of the Netpbm family: a text header followed by pure black-and-white pixels, so a dozen lines of code can read or write it. Teaching materials, bitmap fonts, fax pipelines, and OCR preprocessing use it as a no-frills stepping stone. Convert to PNG or JPEG for general use, or batch-convert to PDF to bind multipage scans.

1Select a source file
Supported: .PGM
2Target format
.pgm .pbm
Large or complex conversions may take 1-2 minutes. The result downloads automatically when ready. Do not close or refresh the page.