AutoCAD Drawing
image/vnd.dwg
Released 1982
· by Autodesk
The image/vnd.dwg MIME type represents the DWG file format, a proprietary binary file format used for storing two- and three-dimensional design data and metadata. Maintained primarily by Autodesk, it is the native format for AutoCAD and one of the most widely used formats in the Computer-Aided Design (CAD), engineering, and architecture industries.
Technical Specifications
.dwg
Proprietary (Autodesk ObjectDBX)
application/acadapplication/x-acadapplication/autocad_dwgimage/x-dwgapplication/dwgapplication/x-dwgdrawing/dwg
Magic Bytes & HTTP Headers
AC10
Browser Support Matrix
| Browser | Status | Min Version |
|---|---|---|
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | — |
|
|
Not Supported | Legacy |
Advantages & Limitations
- The undisputed industry standard for 2D drafting and basic 3D CAD modeling
- Highly optimized binary structure keeps file sizes relatively small compared to text-based CAD formats like DXF
- Supports incredibly complex datasets including external references (XREFs), dynamic blocks, and extensive custom metadata
- It is a closed, proprietary format, making it difficult for third-party developers to support fully without licensing the Open Design Alliance (ODA) SDK
- Lacks native web or standard operating system previewer support
- Format versions change frequently (roughly every 3 years), breaking backward compatibility for older CAD software
Developer Code Snippets
File Detection Steps
How to programmatically detect a image/vnd.dwg
file by reading its raw bytes:
- 1 Check the first 4 bytes for the ASCII signature 'AC10' (Hex: 41 43 31 30)
- 2 Read the following two bytes to determine the specific AutoCAD version format (e.g., '15' for AutoCAD 2000, '32' for AutoCAD 2018)
Software Support
Conversion Tools
Share & Embed
[](https://freewebptojpg.com/mime/image/dwg)
<iframe src="https://freewebptojpg.com/mime/image/dwg/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="DWG 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/dwg.json
Open JSON
Frequently Asked Questions
What is the difference between DWG and DXF?
DWG is a closed, proprietary binary format optimized for smaller file sizes and fast loading within AutoCAD. DXF (Drawing Exchange Format) is an open, ASCII-based (or sometimes binary) format designed for interoperability and sharing CAD data across different software applications.
Can web browsers open DWG files?
No modern web browser natively supports the DWG format. To display DWG files on the web, developers must convert them to a web-friendly vector format (like SVG or PDF) on the server, or use a client-side WebGL/Canvas renderer like the Autodesk Forge Viewer.
What are the magic bytes for a DWG file?
All DWG files begin with a 6-byte version string starting with 'AC10', which translates to the hex values 41 43 31 30. For example, AutoCAD 2018 files start with 'AC1032'.