iLoveConverter
Categories 11 categories

XPM File Format

X11 Pixmap category

XPM (X11 Pixmap) is an image written as C source code — plain ASCII text that compilers and editors ingest directly, the classic icon format of Linux desktops and legacy X11 apps.

Typical use: Convert PNG or SVG output to XPM to feed icon themes and legacy toolkits.

About the XPM format

XPM (X11 Pixmap) is an image format that is literally C source code: pixels are listed as character-to-color mappings inside an ASCII array. Compilers, text editors and version control all treat it as plain text, which is why Linux desktop icons and legacy X11 application assets have used it for decades.

XPM is limited to 256 colors per image and stores no alpha beyond a designated transparent character, so it is a niche target: mainly icon themes, window-manager decorations and retro programming projects.

Strengths

  • ✓ Plain text — diffs and greps
  • ✓ Compiles straight into C programs
  • ✓ Tiny for small flat icons

Limitations

  • ✗ 256 colors maximum
  • ✗ Poor alpha (one transparent color)
Compression
None (ASCII text)
Transparency
Single transparent color
Animation
Not supported
Metadata
Not supported
Best for
Linux icons, X11 themes

Convert XPM to…

48 direct directions plus 12 workflows, sorted A–Z; 🔥 marks popular targets.

Convert other files to XPM…

Frequently asked questions

What is a XPM file?

XPM (X11 Pixmap) is an image written as C source code — plain ASCII text that compilers and editors ingest directly, the classic icon format of Linux desktops and legacy X11 apps.

How do I convert XPM files online?

Pick a target format from the "Convert XPM to…" list below, drop your file and hit convert. Everything runs in your browser — no install, no upload, no watermark, no limits.

Is it safe to convert XPM files here?

Yes. Every conversion is performed by your own device inside the browser — files never leave for a server, and the page keeps working even offline.

Which formats can XPM convert to?

This page lists all 60 directions across documents, images, audio, video, spreadsheets and archives — each one is its own free converter page.