What is a DWG file?

A DWG file is an AutoCAD drawing. Most DWGs are 2D plans and technical drawings rather than 3D models, so they cannot be "opened in 3D" – you either export 3D solids from AutoCAD or rebuild the shape from the 2D outline in CAD.

File extension.dwg
TypeAutoCAD drawing (mostly 2D, proprietary)
Developed byAutodesk AutoCAD
First released1982
EncodingBinary, closed
Colour / materialsLayers and colours
UnitsStored in the drawing
Exact CAD geometryYes (2D geometry, 3D solids)
MIME type—
Opens in 3dfilesNo (closed format) – export it as described below

About the DWG format

DWG is the native format of AutoCAD and many compatible programs (BricsCAD, DraftSight, ZWCAD). It is closed, but the Open Design Alliance libraries let other programs read it. DXF is its open, text-based exchange cousin.

How to open or convert a DWG file

  1. To view: Autodesk DWG TrueView (free, Windows) or Autodesk Viewer in the browser.
  2. If the drawing contains 3D solids: in AutoCAD use STLOUT (or 3DPRINT) for an STL.
  3. For a 2D outline: open it in FreeCAD (with the free ODA File Converter installed) or Fusion, then extrude the profile and export STEP/STL.

Common problems

"It is flat" after import

The DWG only contains 2D lines. Someone has to extrude or model it in 3D – there is no automatic conversion from a plan to a solid.

Questions about DWG files

DWG or DXF?

DXF is the open exchange version of the same data and is accepted by more programs, including laser and CNC software.