Convert Image to XBM

Create an X11 one-bit bitmap as C source, with a black-and-white pixel preview.

Free. No signup.

Drop your image here

Drag and drop, or choose a file below

JPG · PNG · WEBP
Up to 250 MB · One image at a time
Each image: up to 16 megapixels and 8192 px per side

Adjust the effect

There is no dithering or alpha in the output. XBM uses fixed picvelio_width, picvelio_height and picvelio_bits identifiers; rename them if combining several assets. An embedded display library may expect different polarity or bit order, so check its importer.

Original

Choose an image or try the sample to see your preview here.

100% local processing

How to use

  1. 01

    Choose an image or try the local sample.

  2. 02

    Set the threshold, optionally invert black and white, then inspect small details before export.

  3. 03

    Review the result and download the file.

Details and tips

How it works

Transparency is composited on white. Encoded RGB luma below the threshold becomes a 1 bit; inversion swaps that decision. Each scanline uses ceil(width / 8) bytes, with the leftmost pixel in the least significant bit and unused tail bits set to zero.

Made for everyday images

Prepare monochrome icons and X11 bitmap fixtures. For a 9-pixel-wide image each row consumes two bytes, even though the second byte contains only one pixel.

Frequently asked questions

Are images uploaded?

No. Processing, previews and downloads stay on your device.

What are the limits?

JPG, PNG and WebP, up to 250 MB, 8192 pixels per side and 16 million pixels. Expanded output must also fit these limits. Animation uses one still frame.