Free online converter for converting files to XBM.
We ensure quality, convenience, and support for all formats.
| Data type | Image |
| MIME type | image/x-xbitmap |
| Developer | X Consortium / X Window System ecosystem |
| Primary use cases | X11 cursors and icon bitmaps; clip masks; tile/stipple patterns for drawing and UI assets |
XBM is a very simple 1-bit (black-and-white) bitmap format from the X Window System, stored as C source with #define width/height and a byte array.
| Data type | Image |
| MIME type | image/x-xbitmap |
| Compression | None |
| Color depth | 1 bit per pixel (1 bpp) |
| Color space | Monochrome (1-bit; foreground/background only) |
| Transparency support | No |
| Animation support | No |
| EXIF / Metadata support | No |
| Metadata | No standard metadata blocks (commonly only width/height and optional hotspot defines) |
| Structure type | #define constants → static byte array initializer (C syntax) |
| Standard / Specification | No single formal specification; format is defined by X11 bitmap utilities and Xlib functions (XReadBitmapFile / XWriteBitmapFile) and widely documented references |
| Typical file size | Usually small for tiny icons/cursors, but textual hex representation adds noticeable overhead vs raw bitmap bytes |
The XBM file format offers several advantages that make it suitable for common use cases.
The XBM file format has certain limitations that may affect its use in specific scenarios.
XBM images are widely supported and can be viewed on most devices and platforms.
Avoid compiling or including untrusted XBM as C code. Even when parsing, treat as untrusted input: malformed content can trigger bugs in decoders; prefer converting to safer modern formats for distribution.
Open / publicly documented de facto format (no formal modern standard; defined by X11 tooling and common practice)