Free webp to jpg
Image MIME Reference
AVIF

AV1 Image File Format

image/avif
VS

X Bitmap (Legacy MIME Alias)

image/x-xbm
XBM

A complete technical comparison of AV1 Image File Format and X Bitmap (Legacy MIME Alias) — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

AVIF wins on browser support

Feature Support

Feature AVIF XBM
Transparency (Alpha) Yes Yes
Animation Support Yes ✕ No
Progressive Loading ✕ No ✕ No
HDR Support Yes ✕ No
EXIF Metadata Yes ✕ No
ICC Color Profile Yes ✕ No
AV1 Image File Format
image/avif
Extension
.avif
Container HEIF / ISOBMFF
Compression AV1 Lossy / AV1 Lossless
Algorithm
AV1
Color Depth 8-bit, 10-bit, 12-bit
Developed by Alliance for Open Media (AOMedia)
Released 2019
Magic Bytes
XX XX XX XX 66 74 79 70 61 76 69 66
Full AVIF reference →
X Bitmap (Legacy MIME Alias)
image/x-xbm
Extension
.xbm
Container C Source Code Header (.h)
Compression Uncompressed (Source Code)
Algorithm
None
Color Depth 1-bit (Monochrome)
Developed by MIT / X Consortium (X Window System)
Released 1988
Magic Bytes
23 64 65 66 69 6e 65 (ASCII '#define')
Full XBM reference →

Browser Support Comparison

Browser AVIF XBM
Chrome Chrome
✓ 85+
Firefox Firefox
✓ 93+
Safari Safari
✓ 16+
Edge Edge
✓ 121+
IE IE (Legacy)
AVIF

AVIF Strengths

  • Best-in-class compression — typically 20–50% smaller than WebP at equivalent quality
  • Native HDR and wide color gamut (BT.2020) support
  • Supports 8, 10, and 12-bit color depth
Limitations
  • Encoding is highly CPU-intensive — significantly slower than JPEG or WebP
  • Requires Edge 121+ (not supported in earlier Edge versions)
  • Limited support in native desktop image viewers
XBM

XBM Strengths

  • Can be compiled directly into C or C++ source code without needing an external file loader or binary asset manager
  • Human-readable structure allows developers to inspect, edit, or hand-craft tiny icons directly within a text editor
  • Extremely predictable and lightweight for 1-bit hardware displays and embedded systems
Limitations
  • Strictly limited to 1-bit monochrome (black and white) graphics with no gray or color support
  • Text-based C syntax creates massive file bloat compared to binary 1-bit formats like PBM
  • Completely deprecated in modern web browsers and desktop GUI frameworks

When to choose which format

AVIF
Use AVIF when…
  • Next-Gen Websites
  • HDR Photography
  • High-Quality Web Images
XBM
Use XBM when…
  • X Window System (X11) Cursors and Icons
  • Embedded C/C++ Firmware UI Assets
  • Early 1990s Unix Web Graphics
Share this comparison