Formats / Native CAD
DWG
AutoCAD native drawing format; the de facto 2D CAD format worldwide.
Show on the mapInterop matrixInside the file, full width
- Extensions
- .dwg
- Kind
- Native CAD
- Steward
- Autodesk (reverse-engineered by Open Design Alliance)
- Specification
- Proprietary; access through the owner or licensed SDKs
- First published
- 1982
How a DWG file is organized
DWG is AutoCAD's native binary drawing format. Autodesk does not publish it; the Open Design Alliance publishes a free description reconstructed by clean-room work, which is what open readers such as LibreDWG follow.
- Version string
- The first six bytes name the release, such as AC1032 for the AutoCAD 2018 format family.
- File header
- Pointers to the sections and, in newer versions, a section map and page map; newer files are split into pages that may be compressed.
- Header variables
- Drawing settings, the same variables DXF writes in its HEADER section.
- Classes
- Definitions of the custom object classes used in the drawing.
- Objects
- Entities and non-graphical objects as bit-packed records, each with a handle.
- Object map
- An index from handles to object positions, so a reader can find any object.
Who reads and writes it 21
21 read it, 13 write it, 13 do both.
| Tool | Category | Reads | Writes |
|---|---|---|---|
| Allplan | CAD | Yes | Yes |
| Archicad | CAD | Yes | Yes |
| AutoCAD | CAD | Yes | Yes |
| Autodesk Inventor | CAD | Yes | Yes |
| BricsCAD | CAD | Yes | Yes |
| Grasshopper | CAD | Yes | |
| MicroStation | CAD | Yes | Yes |
| Revit | CAD | Yes | Yes |
| Rhinoceros (Rhino) | CAD | Yes | Yes |
| SketchUp | CAD | Yes | Yes |
| SOLIDWORKS | CAD | Yes | |
| Tekla Structures | CAD | Yes | Yes |
| Vectorworks | CAD | Yes | Yes |
| ZWCAD | CAD | Yes | Yes |
| HOOPS Exchange | Translation and interop | Yes | |
| DIANA | Structural FEA | Yes | |
| Ansys HFSS | Multiphysics and EM | Yes | |
| Ansys Maxwell | Multiphysics and EM | Yes | |
| E3.series | EDA and PCB | Yes | Yes |
| Fusion Manage | PLM and PDM | Yes | |
| Bentley iTwin | Digital twin | Yes |
Example files 1
How a DWG file is organized, from public documentation (also in the panel above).
Elsewhere
-
Autodesk's own DWG sample drawings (architectural, mechanical and others) for AutoCAD 2010 and later.
Linked rather than copied, because of their terms, their size or what they contain.
Sources
As of 2026-11-21.
- official page: https://www.autodesk.com/products/dwg
- Wikipedia: https://en.wikipedia.org/wiki/.dwg
Something wrong or out of date? Edit this record or report a problem.