# Convert PGM to XBM

> Convert PGM to XBM online for free. Runs entirely in your browser, so your files never leave your device. Fast batch conversion, no sign-up, no watermarks.

URL: https://www.converterrr.com/pgm-to-xbm

- Runs in the browser with ImageMagick: files are not uploaded, and no credits are used.
- Engines: ImageMagick (browser), ImageMagick (cloud).
- API: available. `POST /api/v1/jobs` with `"output_format": "xbm"` (paid plans).
- More: [Image converter](https://www.converterrr.com/image-converter), [PGM converter](https://www.converterrr.com/pgm-converter).

## How to convert PGM to XBM

1. **Add your PGM files.** Drag and drop PGM files onto the converter, paste them, or click to browse. You can add several at once.
2. **Choose XBM.** XBM is already selected. Open Options if you want to change quality, size or metadata.
3. **Convert.** Click Convert. Your files are converted right in your browser in seconds.
4. **Download your XBM.** Download each XBM file, or everything at once as a ZIP.

## Good to know

- PGM files are typically used for grayscale image processing, while XBM is best for X11 icons and cursors.
- This conversion runs on ImageMagick, running locally in your browser — nothing is uploaded and it works even on slow connections.

## PGM vs XBM

|  | PGM | XBM |
| --- | --- | --- |
| Full name | Portable Graymap | X BitMap |
| Type | Image | Image |
| Extensions | .pgm | .xbm |
| MIME type | image/x-portable-graymap | image/x-xbitmap |
| Best for | grayscale image processing | X11 icons and cursors |
| Properties | lossless | legacy format |

**PGM:** PGM is the grayscale member of the Netpbm family: uncompressed, simple and easy to parse.

**XBM:** XBM stores monochrome bitmaps as C source code and was used for X11 cursors and icons.

The other way around: [convert XBM to PGM](https://www.converterrr.com/xbm-to-pgm).

## Related conversions

- [XBM to PGM](https://www.converterrr.com/xbm-to-pgm) (in the browser)
- [PGM to PNG](https://www.converterrr.com/pgm-to-png) (in the browser)
- [PNG to XBM](https://www.converterrr.com/png-to-xbm) (in the browser)
- [PGM to JPG](https://www.converterrr.com/pgm-to-jpg) (in the browser)
- [JPG to XBM](https://www.converterrr.com/jpg-to-xbm) (in the browser)
- [PGM to WebP](https://www.converterrr.com/pgm-to-webp) (in the browser)
- [WebP to XBM](https://www.converterrr.com/webp-to-xbm) (in the browser)
- [PGM to JPEG](https://www.converterrr.com/pgm-to-jpeg) (in the browser)
- [HEIC to XBM](https://www.converterrr.com/heic-to-xbm) (in the browser)
- [PGM to PDF](https://www.converterrr.com/pgm-to-pdf) (cloud)
- [JPEG to XBM](https://www.converterrr.com/jpeg-to-xbm) (in the browser)
- [PGM to GIF](https://www.converterrr.com/pgm-to-gif) (in the browser)

## Convert PGM to other formats

[PGM to PNG](https://www.converterrr.com/pgm-to-png), [PGM to JPG](https://www.converterrr.com/pgm-to-jpg), [PGM to WebP](https://www.converterrr.com/pgm-to-webp), [PGM to JPEG](https://www.converterrr.com/pgm-to-jpeg), [PGM to PDF](https://www.converterrr.com/pgm-to-pdf), [PGM to GIF](https://www.converterrr.com/pgm-to-gif), [PGM to AVIF](https://www.converterrr.com/pgm-to-avif), [PGM to SVG](https://www.converterrr.com/pgm-to-svg), [PGM to ICO](https://www.converterrr.com/pgm-to-ico), [PGM to TIFF](https://www.converterrr.com/pgm-to-tiff), [PGM to BMP](https://www.converterrr.com/pgm-to-bmp), [PGM to PSD](https://www.converterrr.com/pgm-to-psd), [PGM to EPS](https://www.converterrr.com/pgm-to-eps), [PGM to JXL](https://www.converterrr.com/pgm-to-jxl), [PGM to TGA](https://www.converterrr.com/pgm-to-tga), [PGM to DDS](https://www.converterrr.com/pgm-to-dds), [PGM to EXR](https://www.converterrr.com/pgm-to-exr), [PGM to HDR](https://www.converterrr.com/pgm-to-hdr), [PGM to JP2](https://www.converterrr.com/pgm-to-jp2), [PGM to CUR](https://www.converterrr.com/pgm-to-cur), [PGM to PPM](https://www.converterrr.com/pgm-to-ppm), [PGM to QOI](https://www.converterrr.com/pgm-to-qoi), [PGM to PCX](https://www.converterrr.com/pgm-to-pcx), [PGM to PBM](https://www.converterrr.com/pgm-to-pbm)

## Convert other formats to XBM

[PNG to XBM](https://www.converterrr.com/png-to-xbm), [JPG to XBM](https://www.converterrr.com/jpg-to-xbm), [WebP to XBM](https://www.converterrr.com/webp-to-xbm), [HEIC to XBM](https://www.converterrr.com/heic-to-xbm), [JPEG to XBM](https://www.converterrr.com/jpeg-to-xbm), [GIF to XBM](https://www.converterrr.com/gif-to-xbm), [AVIF to XBM](https://www.converterrr.com/avif-to-xbm), [SVG to XBM](https://www.converterrr.com/svg-to-xbm), [ICO to XBM](https://www.converterrr.com/ico-to-xbm), [TIFF to XBM](https://www.converterrr.com/tiff-to-xbm), [BMP to XBM](https://www.converterrr.com/bmp-to-xbm), [HEIF to XBM](https://www.converterrr.com/heif-to-xbm), [PSD to XBM](https://www.converterrr.com/psd-to-xbm), [EPS to XBM](https://www.converterrr.com/eps-to-xbm), [AI to XBM](https://www.converterrr.com/ai-to-xbm), [JXL to XBM](https://www.converterrr.com/jxl-to-xbm), [CR2 to XBM](https://www.converterrr.com/cr2-to-xbm), [NEF to XBM](https://www.converterrr.com/nef-to-xbm), [DNG to XBM](https://www.converterrr.com/dng-to-xbm), [CR3 to XBM](https://www.converterrr.com/cr3-to-xbm), [ARW to XBM](https://www.converterrr.com/arw-to-xbm), [TGA to XBM](https://www.converterrr.com/tga-to-xbm), [DDS to XBM](https://www.converterrr.com/dds-to-xbm), [EXR to XBM](https://www.converterrr.com/exr-to-xbm)

## PGM to XBM: frequently asked questions

### How do I convert PGM to XBM?

Drop your PGM file onto the converter above, make sure XBM is selected, and click Convert. When it's done, download the XBM file — it usually takes a few seconds.

### Is it safe to convert PGM to XBM here?

Yes. PGM to XBM conversion happens entirely inside your browser using WebAssembly, so your file is never uploaded to any server.

### Is the PGM to XBM converter free?

Yes — free with no watermark. Signed-out visitors can convert 25 files a day, and a free account raises that to 250.

### Will converting PGM to XBM reduce quality?

No — XBM preserves the content of your PGM file as faithfully as the format allows.

### Can I convert multiple PGM files at once?

Yes. Add up to 5 files at a time without an account, 10 with a free account and up to 500 on paid plans, then download them individually or as a single ZIP.

### Can I convert XBM back to PGM?

Yes — use our XBM to PGM converter. Note that converting back and forth between formats can't recover detail lost to lossy compression.
