TapToConvert All conversions

Home / File types / .xpm

XPM file: what it is and how to open it

XPM image. Here is what a .xpm file contains, how to open one on any device, and a viewer that opens it right in your browser.

Open a .xpm file hereChoose fileRead in your browser. Nothing is uploaded.

What the viewer shows

  • Whether the file matches the .xpm signature
  • The first bytes as hex
  • A preview when your browser can display it

What is a .xpm file?

A .xpm file is an XPM image. Its registered MIME type is image/x-xpixmap, which places it in the image family of formats.

XPM stands for X PixMap.

XPM is a binary format: the contents are not readable text, so opening it in a text editor shows scrambled characters.

Files of this type usually begin with the bytes 2F 2A 20 58 50 4D 20 2A 2F. That signature is how programs recognise the format even when the extension is wrong or missing.

XPM file format details

Extension.xpm
FormatXPM image
MIME typeimage/x-xpixmap, image/x-xpm
CategoryImage
Text or binaryBinary
File signature2F 2A 20 58 50 4D 20 2A 2F
Registered with IANANo
Other extensionsNone

How to open XPM files

WindowsThe Photos app handles common image formats; for this one you may need an image editor. GIMP is free and opens many formats.
MacPreview opens most image formats. If it cannot, a dedicated image editor usually can.
iPhone and iPadPhotos and the Files app show common image types. Less common ones may need an app, or conversion to JPG or PNG.
AndroidGoogle Photos and gallery apps show common images. Other formats may need a viewer app.

Can you convert a .xpm file?

TapToConvert does not convert XPM files yet. If you can export the file from its program as a common image format, the image converter can turn it into anything else.

XPM file FAQ

What is a .xpm file?

A .xpm file is an XPM image, with the MIME type image/x-xpixmap.

How do I open a .xpm file?

With the program that created it. The viewer on this page shows what is inside without installing anything.

Is a .xpm file safe to open?

XPM files hold data rather than programs, but any file from an unknown source can be crafted to exploit the software that opens it. Keep that software up to date. The viewer on this page only reads the bytes and never runs anything.

What is the MIME type of .xpm?

image/x-xpixmap, and it is also seen as image/x-xpm. Web servers send this type so browsers know how to handle the file.

Is XPM a text or binary format?

Binary. Its contents are not readable as text.

File type facts come from the IANA media type registry, the mime-db project and the freedesktop.org shared MIME database.

Similar file types

Try MP4 to MP3, HEIC, merge PDF or compress video.