XPM to PFM Converter

Migrate XPM bitmaps to PFM format online and for free

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

Cross-Platform Access

Whether you are on a desktop, tablet, or phone — convert XPM to PFM from any device with a modern web browser.

Privacy Protected

Your XPM files are deleted immediately after conversion to PFM. Converted files are automatically removed from servers within 24 hours.

Browser-Based Tool

No software to download — convert XPM to PFM entirely in your web browser. Works on any device with an internet connection.

How to convert XPM to PFM

1

Select files from Computer, Google Drive, Dropbox, URL or by dragging it on the page.

2

Choose pfm or any other format you need as a result (more than 200 formats supported)

3

Let the file convert and you can download your pfm file right afterwards

About formats

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
PFM (Portable Float Map) is a floating-point raster image format devised by Paul Debevec around 2001, designed to store high-dynamic-range image data with the simplicity of the Netpbm family of formats. PFM extends the PBM/PGM/PPM philosophy — minimal header, raw data, no compression — to 32-bit IEEE floating-point samples, providing direct access to HDR pixel values without the encoding overhead of formats like OpenEXR or the limited range of Radiance HDR's RGBE encoding. The file structure is deliberately minimal: a two-character magic number ('Pf' for grayscale, 'PF' for color), width and height on the next line, a scale/endianness indicator (negative for little-endian, positive for big-endian, with magnitude indicating scale factor), and then the raw 32-bit float data for each pixel. PFM files store one float per pixel for grayscale or three floats (RGB) per pixel for color, with no compression, alpha channel, or metadata support. The format emerged from the HDR imaging research community where Debevec's work on image-based lighting and light stage capture required a simple, unambiguous way to store linear floating-point radiance values that could be easily exchanged between research tools. One advantage is absolute simplicity for HDR data: PFM can be read and written in a few lines of code in any language that supports IEEE floats, with no library dependencies — ideal for research prototyping and quick data exchange between custom tools. The format's widespread adoption in the computer vision and computational photography research community is another practical strength — optical flow benchmarks (Middlebury), depth estimation datasets, and radiance field captures commonly use PFM. The format is supported by ImageMagick, OpenCV, HDR Shop, and Luminance HDR.
Developer: Paul Debevec
Initial release: 2001

Frequently Asked Questions

What is the reason to convert XPM to PFM?

XPM is tied to X11/Linux desktops. Switching to PFM gives you floating-point image format for HDR workflows and broad support across platforms, browsers, and devices.

How do I open a PFM file?

Software that handles PFM includes ImageMagick, Photoshop, HDR imaging tools — giving you options on every major operating system.

What exactly is the XPM format?

XPM (color pixmap format for X Window System) originated in X11/Linux desktops. It has very limited modern application support but can be converted to modern formats on Convertio.

Is XPM to PFM conversion free?

Standard conversions are available for free on Convertio. Larger volumes or higher usage may benefit from a premium plan for additional capacity.

Does converting XPM to PFM affect quality?

Your image content stays intact during conversion. Any differences depend on PFM characteristics — such as color depth or compression method.

Can I convert multiple XPM files to PFM at once?

Absolutely. Batch upload your XPM images and convert them all to PFM in a single pass — no need to repeat the process for each file.