Free webp to jpg
Image MIME Reference
MacPaint

MacPaint Image

image/x-macpaint
VS

X Bitmap (Legacy MIME Alias)

image/x-xbm
XBM

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

Equal browser support

Feature Support

Feature MacPaint XBM
Transparency (Alpha) ✕ No Yes
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support ✕ No ✕ No
EXIF Metadata ✕ No ✕ No
ICC Color Profile ✕ No ✕ No
MacPaint Image
image/x-macpaint
Extension
.mac.pntg.pnt.macp
Container Raw pixel payload with a 512-byte pattern header
Compression PackBits (Run-Length Encoding)
Algorithm
PackBits (Apple RLE)
Color Depth 1-bit (Monochrome)
Developed by Apple Computer, Inc. (Bill Atkinson)
Released 1984
Magic Bytes
None (Relies on classic Mac OS 'PNTG' OSType)
Full MacPaint 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 MacPaint XBM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
MacPaint

MacPaint Strengths

  • Profoundly historically significant as the format that introduced millions to the concept of bitmap digital painting
  • Extremely simple PackBits compression makes it easy for emulator developers or archivists to write parsers from scratch in under an hour
Limitations
  • Severely limited: strictly black and white, and hard-locked to exactly 576 x 720 pixels
  • Lack of standard magic bytes makes programmatic file sniffing unreliable on modern filesystems without relying on the file extension
  • Completely obsolete and unsupported by modern web browsers or consumer 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

MacPaint
Use MacPaint when…
  • Historical Apple Macintosh Archival
  • Early 1980s Digital Art Preservation
  • Retro UI/UX Academic Research
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