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'.
Technical Specifications
.dgn
None
image/vnd.dgnapplication/x-dgnapplication/dgn
Magic Bytes & HTTP Headers
None (V7) / Microsoft OLE Signature (V8)
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | Legacy |
Advantages & Limitations
- 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
- 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
File Detection Steps
How to programmatically detect a image/x-vnd.dgn
file by reading its raw bytes:
- 1 Detecting DGN files programmatically requires determining the version.
- 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 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
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/dgn)
<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
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.