Convert AVIF to XBM

Turn AVIF images into XBM. An X11 bitmap in black and white only, written as C source text.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop AVIF files on the dialor turn it to pick what to do

A black and white bitmap as C source.The AVIF becomes an X11 bitmap with two tones only. You get one file.

  1. What you get

    An XBM file, which is an X BitMap: a monochrome image written as C source text. The result is one file.

    The image is black and white only. XBM has no place for other colors, so the picture is reduced to two tones.

  2. What it leaves behind

    AVIF can hold HDR and transparency. The result is black and white only, so neither carries over.

    If the AVIF is an animation, the output uses only its first frame. The other frames are not included.

  3. Going back

    XBM is plain text, so the file can be read as C source. To turn an XBM into an AVIF again, use XBM to AVIF. The result is a new AVIF made from the two-tone image, not the original picture.

AVIF and XBM.What each format is.

The formats

From · AVIF

AVIF

AV1-based images with better compression than WebP and support for HDR and alpha.

Extensions
.avif
MIME type
image/avif
Kind
Images
To · XBM

X BitMap

X BitMap, monochrome images as C source.

Extensions
.xbm
MIME type
image/x-xbitmap
Kind
Images

In your code.The same AVIF to XBM conversion through the API, for your app or your agent.

terminal
$ cv convert photo.avif photo.xbm
$ cv convert photo.avif photo.xbm

Questions.What people ask about AVIF to XBM.

01OF 04

No. The XBM is black and white only.

Only the first frame is converted. The rest of the animation is dropped.

C source text that describes a monochrome image. The format is the X11 bitmap.

No. The XBM holds only a black and white version of the image, so XBM to AVIF makes a new file from that.

More conversions.Other ways in and out of AVIF and XBM.