View XPM files in your browser

The icon format of X11, written as C code. Open an XPM right here in its own colors and keep it as PNG. Nothing leaves your device.

Or drop it anywhere on this page

What you'll see

Your file opens at actual size, or shrunk to fit your screen.

terminal.xpm

XPM • 48 × 48 • 16 colors • 3 KB

  • Actual size, or shrunk to fit
  • Drag to pan • Pinch or scroll to zoom
  • Fullscreen
  • Export • Save as PNG or JPEG

About XPM

Daniel Dardailler and Colas Nahaboo made XPM at Groupe Bull in 1989 so X11 apps could keep color icons in their C source, and Arnaud Le Hors carried it on. Unix desktops, window managers and apps like Emacs and GIMP have used it since, and Linux apps still ship menu icons as XPM.

An XPM is a C array of strings: one with the size, the number of colors and how many characters a pixel takes, one for each color, by an X11 name like steelblue, in hex or None for clear, then a string for each row. XPM2 is the same lines without the C around them.

Filepeek reads it in your browser, colors by X11's names and its clear pixels over a checkerboard, and Export saves it as PNG or JPEG.

X PixMap

Format

MIME type
image/x-xpixmap
Made by
Groupe Bull's research center
Released
1989

Inside the file

Written as
C strings, plain text
Colors
X11 names, hex or None
Pixels
1 or more characters each
XPM2
The same lines without C

Opens in every browser

Filepeek decodes XPM in Chrome, Edge, Firefox and Safari. No browser shows it by itself.

  • YouChromeOpens through Filepeek
  • YouEdgeOpens through Filepeek
  • YouFirefoxOpens through Filepeek
  • YouSafariOpens through Filepeek

Apps that open XPM

  • WindowsGIMP, IrfanView and XnView
  • MacGIMP and GraphicConverter
  • iPhone and iPadNo app opens it
  • AndroidNo app opens it

Questions

Why does my XPM open as text in some apps?

An XPM is C code, so text editors and code tools show its lines. Filepeek reads those lines as the picture they describe.

How do I convert XPM to PNG?

Open it, then choose Export and Save as PNG, which keeps its clear pixels.

What do color names like steelblue mean?

They're X11's color names, the list CSS took its own from. Filepeek knows every one of them, numbered ones like gray75 and lightgoldenrod3 too.

More image formats

All supported file types

Opens in a new tab

EXIF

Verify

License

Signature