Free webp to jpg
DGN

MicroStation Design File

image/x-vnd.dgn Released 1980 · by Intergraph (Originally) / Bentley Systems (Currently)

The image/x-vnd.dgn MIME type represents the MicroStation Design (DGN) file format. Originally developed in the 1980s by Intergraph as the Interactive Graphics Design System (IGDS) format, it was later heavily expanded and championed by Bentley Systems for their MicroStation CAD software. DGN is a highly complex 2D and 3D vector graphics format used primarily in the Architecture, Engineering, and Construction (AEC) industries for massive infrastructure projects, plant design, and civil engineering. The format underwent a massive architectural shift in 2000 with 'V8 DGN', which transitioned the file structure into a Microsoft OLE Compound Document container, completely breaking binary compatibility with the older, element-based 'V7 DGN'.

CAD & Vector Graphics Transparency Production Ready

Technical Specifications

MIME Type
image/x-vnd.dgn
Extensions
.dgn
Container
Microsoft OLE Compound File (V8) / IGDS (V7)
Compression
Uncompressed & OLE Structured Storage
Algorithms
None
Color Depth
Indexed Color (V7), 24-bit True Color (V8)
Metadata
None
Capabilities
Transparency
Animation
Progressive Loading
Alpha Channel
HDR Support
Official Specification
Aliases: image/vnd.dgnapplication/x-dgnapplication/dgn

Magic Bytes & HTTP Headers

File Signature (Magic Bytes)
D0 CF 11 E0 A1 B1 1A E1 (For V8 DGN)
ASCII: None (V7) / Microsoft OLE Signature (V8)
HTTP Headers
Content-Type: image/vnd.dgn
Content-Type: image/x-vnd.dgn
Content-Type: application/x-dgn
HTML Accept Attribute
accept="image/vnd.dgn, image/x-vnd.dgn, application/x-dgn, .dgn"

Browser Support Matrix

Browser Status Min Version
Chrome Chrome
Not Supported
Firefox Firefox
Not Supported
Safari Safari
Not Supported
Edge Edge
Not Supported
Internet Explorer Internet Explorer
Not Supported Legacy

Advantages & Limitations

Advantages
  • 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

Developer Code Snippets

import magic
# Libmagic may identify V8 DGN files simply as 'Composite Document File V2 Document' due to the OLE header
print(magic.from_file('architecture.dgn', mime=True))
const fs = require('fs');
// Sniffing for the Microsoft OLE signature used by V8 DGN files
const buffer = Buffer.alloc(8);
const fd = fs.openSync('architecture.dgn', 'r');
fs.readSync(fd, buffer, 0, 8, 0);
fs.closeSync(fd);
const isOLE = buffer[0] === 0xD0 && buffer[1] === 0xCF && buffer[2] === 0x11 && buffer[3] === 0xE0;
// Note: If isOLE is true, further parsing of the internal streams is required to confirm it's a DGN and not an old .doc file
console.log('Is OLE Container (Potential V8 DGN):', isOLE);
import (
    "bytes"
    "net/http"
    "strings"
)
// HTTP detection will likely return 'application/CDFV2' or 'application/octet-stream'
// Relying on the .dgn extension is often necessary for quick routing
// isDGN := strings.HasSuffix(strings.ToLower(filename), ".dgn")
$mime = mime_content_type('architecture.dgn');
echo $mime; // Standard PHP setups will often resolve V8 DGNs to 'application/vnd.ms-office' or 'application/CDFV2' because of the OLE header.

File Detection Steps

How to programmatically detect a image/x-vnd.dgn file by reading its raw bytes:

  1. 1 Detecting DGN files programmatically requires determining the version.
  2. 2 V8 DGN files use the Microsoft OLE Compound File format, meaning their first 8 bytes will exactly match legacy Microsoft Office documents (Hex: D0 CF 11 E0 A1 B1 1A E1). You must parse the internal OLE directory streams to verify it is a DGN and not a Word doc.
  3. 3 V7 DGN files (IGDS) do not have a standard magic header. They are composed of sequential 16-bit word elements. Parsers typically look for a Terminal Control Block (TCB) element near the beginning of the file to identify it as a valid V7 DGN.

Software Support

B
Bentley MicroStation
A
Autodesk AutoCAD
O
ODA (Open Design Alliance) Drawings Explorer

Conversion Tools

Share & Embed

Markdown Badge
DGN Format Badge
[![DGN Format](https://freewebptojpg.com/mime/image/dgn/badge.svg)](https://freewebptojpg.com/mime/image/dgn)
Interactive iframe Widget
<iframe src="https://freewebptojpg.com/mime/image/dgn/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="DGN Specs"></iframe>

JSON API

All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.

GET https://freewebptojpg.com/mime/image/dgn.json Open JSON
Free to use
No auth required
CORS enabled
Use from any domain
Cached 24h
Cache-Control headers set

Frequently Asked Questions

What is a DGN file?

A DGN (Design) file is a 2D or 3D CAD drawing file used by construction and engineering professionals. It is the native format for Bentley MicroStation, similar to how DWG is the native format for Autodesk AutoCAD.

What is the difference between DGN V7 and DGN V8?

DGN V7 (and earlier) is based on the original 16-bit Intergraph IGDS format with strict file size and element limitations. DGN V8, introduced in 2000, abandoned this structure entirely, utilizing a Microsoft OLE Compound File container to support virtually unlimited file sizes and double-precision coordinates.

Can AutoCAD open DGN files?

Yes, modern versions of Autodesk AutoCAD have built-in utilities to import, export, and natively underlay (reference) MicroStation DGN files.

Related Formats

Share this format