XPM Image — A .xpm file is a XPM Image. It is a raster or vector image format used for photos, web assets and design work.
Quick facts
What is .xpm
A .xpm file is a XPM Image. It is a raster or vector image format used for photos, web assets and design work.
In the mime-db registry it maps to image/x-xpixmap. When serving .xpm over HTTP, set the Content-Type header as shown in Developer info below.
Related entities: it maps to image/x-xpixmap and is used by X PixMap among others — and is delivered over HTTP via the Content-Type header.
How to open .xpm files
Developer info
When served over HTTP, responses should set the following header:
Content-Type: image/x-xpixmap
Common software that reads/writes .xpm:
Relation chain
Related extensions
Related MIME types
Related programming languages
Common uses
How to edit .xpm files
How to create .xpm files
Frequently asked questions
Common options include Photoshop, GIMP, Paint. You can also open many of these files with built-in viewers or a browser.
Create a new file in any text editor or the app that owns the format and save it with the .xpm extension.
image/x-xpixmap is the media type identifier used for .xpm files during network transfer (for example in the HTTP Content-Type header).
Sources & standards
Updated 2026-08-18
Explore this reference