XBM is a bitmap stored as C source code — literally an array of hex bytes that a C compiler includes. It was the original X11 icon format, and it still compiles.
Typical use: Convert XBM icons to PNG for viewing, or emit XBM when embedded firmware/Unix code needs a compiled-in bitmap.
About the XBM format
XBM is the most honest image format ever shipped: the "file" is a C source array of hex bytes, compiled straight into X11 applications as cursor and icon bitmaps. Rendered, it is 1-bit black and white — the ancestors of every pixel-art cursor you still use.
Because it compiles, XBM never died: firmware UIs, embedded icons and retro Unix tooling still want it. Converting a PNG down to XBM gives embeddable, compilable art; the other direction previews what the C array actually draws.
Strengths
- ✓ Compiles directly into C/C++ programs
- ✓ Zero-payload format — text only
- ✓ Still required by embedded and Unix tooling
Limitations
- ✗ 1-bit black & white only
- ✗ Human-hostile representation
- ✗ X11 bit order trips up hand-rolled decoders
- Structure
- C #defines + hex byte array
- Types / schema
- 1-bit, X11 bit order
- Compatibility
- X11, C compilers, GTK
- Best for
- Compiled-in cursors and icons
Convert XBM to…
48 direct directions plus 12 workflows, sorted A–Z; 🔥 marks popular targets.
Cross-engine workflows
Convert other files to XBM…
Frequently asked questions
What is a XBM file?
XBM is a bitmap stored as C source code — literally an array of hex bytes that a C compiler includes. It was the original X11 icon format, and it still compiles.
How do I convert XBM files online?
Pick a target format from the "Convert XBM to…" list below, drop your file and hit convert. Everything runs in your browser — no install, no upload, no watermark, no limits.
Is it safe to convert XBM files here?
Yes. Every conversion is performed by your own device inside the browser — files never leave for a server, and the page keeps working even offline.
Which formats can XBM convert to?
This page lists all 60 directions across documents, images, audio, video, spreadsheets and archives — each one is its own free converter page.