XPM Converter

Convert XPM X pixmap images to PNG, JPG, SVG, ICO for free online

Drop files here. 1 GB maximum file size or Sign Up
Facebook Amazon Microsoft Tesla Nestle Walmart L'Oreal

Full Format Palette

Convert XPM to 104+ formats or import images as XPM — 284 conversion directions for maximum choice.

Beautifully Simple

Upload, select a format, convert. Three steps turn an obscure X11 pixmap into a standard image ready for anything.

Batch Pixmap Processing

Converting a collection of XPM icons? Upload them all and convert the full set in a single batch.

Text-Based Image Format

XPM stores pixel data as human-readable C source code with color definitions. Convertio parses this structure for pixel-perfect output.

Automatic Cleanup

Uploaded pixmaps are deleted from servers after conversion. Outputs are removed within 24 hours — your data is never retained.

Platform Independent

Convert XPM files from Windows, macOS, Linux, or mobile — Convertio works in any browser on any operating system.

How to convert XPM file

1

Upload your XPM pixmap from your Computer, Google Drive, Dropbox, or enter a URL to the file.

2

Choose the format to convert to — PNG, JPG, SVG, ICO, BMP, or any of 104+ targets.

3

Confirm the file and format are correctly selected before starting the conversion.

4

Press Convert and download the output image when the conversion wraps up.

About format

XPM (X PixMap) is a color image format for the X Window System, developed by Arnaud Le Hors at GROUPE BULL beginning in 1989 as the color successor to the monochrome XBM format. Like XBM, XPM files are valid C source code — each file defines the image as a static array of character strings, where the header strings specify width, height, number of colors, and characters per pixel, the color definition strings map character codes to color values (supporting X11 color names, hexadecimal RGB, and symbolic color types like 'background' and 'foreground'), and the pixel strings encode each row as a sequence of character codes that index the color palette. This ASCII art representation makes XPM images human-readable: one can often see the image content directly in the text of the source file. The format went through three revisions: XPM1 (1989, compatible with X10), XPM2 (simplified syntax), and XPM3 (1991, the current version with the static char* syntax and extended color specification). XPM was the standard format for X Window application icons, splash screens, pixmap buttons, and themed UI elements throughout the 1990s and 2000s. One advantage is the combined benefits of being a valid C source file and a color image: XPM files can be compiled into applications, edited in any text editor, processed by text tools, and version-controlled, while supporting up to 256 colors with transparency (using the 'None' color keyword). The X11 ecosystem's reliance on XPM ensures broad tool support. XPM files are handled by all X11 toolkits, ImageMagick, GIMP, and web browsers (legacy support).
Initial release: 1989

Frequently Asked Questions

Why convert XPM to a modern format?

XPM is a text-based X11 pixmap format mainly used in Unix environments. Converting to PNG or JPG produces images usable on any platform.

What tools open XPM natively?

GIMP, ImageMagick, and X Window applications display XPM files. Any text editor can also read the raw XPM source as it is plain C code.

Does converting XPM keep the color palette?

Yes. Convertio maps the XPM color definitions to the output format faithfully, preserving the full color palette of the original pixmap.

Can I batch convert XPM files on convertio.co?

Yes. Upload a set of XPM icons or graphics and convert them all in a single session — no repeated uploads needed.

Is XPM conversion free?

Standard volumes convert for free. Premium plans add more capacity for users processing large sets of X11 graphics.

XPM conversion quality rating

4.7 (4,217 votes)
You need to convert and download at least 1 file to provide feedback!