Free webp to jpg
Image MIME Reference
DGN

MicroStation Design File

image/x-vnd.dgn
VS

X Bitmap (Legacy MIME Alias)

image/x-xbm
XBM

A complete technical comparison of MicroStation Design File 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 DGN XBM
Transparency (Alpha) Yes Yes
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support ✕ No ✕ No
EXIF Metadata ✕ No ✕ No
ICC Color Profile ✕ No ✕ No
MicroStation Design File
image/x-vnd.dgn
Extension
.dgn
Container Microsoft OLE Compound File (V8) / IGDS (V7)
Compression Uncompressed / OLE Structured Storage
Algorithm
None
Color Depth Indexed Color (V7), 24-bit True Color (V8)
Developed by Intergraph (Originally) / Bentley Systems (Currently)
Released 1980
Magic Bytes
D0 CF 11 E0 A1 B1 1A E1 (For V8 DGN)
Full DGN 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 DGN XBM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
DGN

DGN Strengths

  • Exceptionally robust at handling massive, coordinate-heavy infrastructure models that would frequently crash older versions of competing CAD software
  • Deeply entrenched as the absolute standard format for many global departments of transportation and civil engineering firms
  • V8 architecture supports boundless design plane coordinates, eliminating the physical scaling limitations of V7
Limitations
  • Deeply proprietary format requiring complex third-party libraries (like the ODA SDK) to parse or write programmatically outside of the Bentley ecosystem
  • V8's reliance on the archaic Microsoft OLE Compound File container makes file introspection cumbersome
  • Cannot be rendered natively in web browsers without converting to WebGL/Canvas formats or SVG
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

DGN
Use DGN when…
  • Civil Engineering and Plant Design
  • Large-scale Architecture and Construction (AEC)
  • 2D/3D Infrastructure Modeling
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