Convert PNM to XPM

Convert PNM files to XPM locally, completely free and with maximum privacy.

Drag and drop your files here

or click to browse local files (large files supported, limited only by browser RAM)

Upload Files

Platform Statistics

---
Files Converted
---
Data Processed
---
Unique Sessions
---
Avg. Conversion Time
Sponsored:Want to reach thousands of developers, designers, and creators daily? Sponsor this spot! Contact ads@gregorium.com for details. Learn more

How to convert PNM to XPM

  1. Drop your .pnm files above, or click Upload Files. You can add many files at once.
  2. XPM is already selected as the output. Open the settings (gear icon) to fine-tune the result.
  3. Click Convert All. ImageMagick runs inside your browser through WebAssembly; nothing is uploaded.
  4. Download your .xpm files as soon as each one finishes.

What to know about PNM to XPM conversion

  • XPM is best for icons embedded in C source code for X11 applications, and opens in GIMP, ImageMagick and text editors.

PNM vs XPM

FeaturePNM (Netpbm Portable Anymap)XPM (X PixMap)
Compressionuncompresseduncompressed
TransparencyNoYes
AnimationNoNo
Best forimage processing pipelines and scientific codeicons embedded in C source code for X11 applications
Opens inGIMP, ImageMagick and Netpbm toolsGIMP, ImageMagick and text editors

PNM (Netpbm Portable Anymap): The generic Netpbm format family (PBM, PGM, PPM) for simple uncompressed bitmaps, graymaps and pixmaps.

XPM (X PixMap): A text-based image format from the X Window System, often embedded in C source code for icons.

Conversion options

  • Resize by width, height or both (aspect ratio is preserved)
  • Filters: grayscale, sepia, blur and sharpen
  • Custom output file name

Frequently asked questions

Is it safe to convert PNM to XPM here?

Yes. Your files are processed entirely on your own device by WebAssembly code running in the browser. They are never uploaded, so nobody else can see them, and the converter keeps working even if your connection drops after the page loads.

Is there a file size limit?

There is no server-side limit. The only limit is the memory available to your browser, typically 1.5–4 GB on desktop computers.

Can I convert several PNM files at once?

Yes. Add as many files as you like; they are converted in parallel according to your device's CPU cores, and you can apply the same settings to all of them.

Related conversions