XPM to PGM

Convert X PixMap (.xpm) to Portable Graymap (.pgm).

Source X PixMap: XPM (X PixMap) stores color icons as C arrays for direct compilation into X Window System applications - Unix desktop buttons and icons of the 1990s. Contemporary desktops have moved to PNG. Convert to PNG for general use, or to ICO when resurrecting the icon cross-platform.

Target 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.

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