What Is a DWG File? AutoCAD's Format, Its Versions (AC1009 to AC1032), and Converting It

DWG is the format AutoCAD and AutoCAD LT save drawings in: lines, arcs, text, dimensions, layers and blocks, stored as data in a compressed binary file rather than as a picture. Its layout has changed with AutoCAD releases, and each file names its format in its first six characters.

.dwg

Open the .dwg file right here

No AutoCAD needed. Drop the .dwg into the dashed box below and the drawing appears on this page — zoom, pan, switch layers, save it as PNG, and on a computer save it as PDF from the print dialog. It reads the R12 to 2018 formats.

Drop a .dwg or .dxf file here

or click to choose a file

AutoCAD DWG (R12 to 2018 formats) and DXF. The file never leaves your device.

The file is read on your own device and never sent anywhere.

Open the tool's own page (how to use it, and how it works)

Why it will not open

  • It is not a picture. A .dwg stores objects with coordinates, layers and settings, so there is nothing to display until a program draws them.
  • The format changes with AutoCAD releases (the newest is the 2018 format, which AutoCAD 2019 to 2026 still save). Software older than the file's format refuses it with a version error.
  • Many free CAD programs read DXF, Autodesk's format for exchanging drawings, better than DWG itself.

How to open it

View it in your browser (this site)

  1. 1 Drop the .dwg into the viewer at the top of this page. It reads the R12 to 2018 formats on your device, without uploading the file, and shows the format above the drawing, such as "DWG (AutoCAD 2018 format)".
  2. 2 Every other way to open it — Autodesk's DWG TrueView and Autodesk Viewer, on a Mac or a phone, and what each message means when it will not open — is in the guide.
How to open a DWG file, step by step →

Converting it: DXF, PDF, an older DWG

  1. 1 To DXF, for CAD software that does not read DWG: ODA File Converter, from the Open Design Alliance, is "for converting between different versions of .dwg and .dxf" (Windows 10 or later, macOS 13 or later, Linux). LibreCAD's FAQ calls its own DWG import basic and suggests converting to DXF when it fails.
  2. 2 To PDF: the viewer on this site ("Print / Save as PDF" on a computer), or DWG TrueView, whose help describes exporting PDF files.
  3. 3 To an older DWG, for older software: DWG TrueView converts AutoCAD-based drawings to several AutoCAD drawing formats (its help, "Convert Drawing File Formats").
Open the converted DXF in your browser →

Reading the version: AC1009 to AC1032

A DWG starts with six characters that name its format; open it in a text editor and they are the first thing you see. Autodesk's list: AC1009 = R11 and R12, AC1012 = R13, AC1014 = R14, AC1015 = AutoCAD 2000 to 2002, AC1018 = 2004 to 2006, AC1021 = 2007 to 2009, AC1024 = 2010 to 2012, AC1027 = 2013 to 2017, AC1032 = 2018 and later (Autodesk says AutoCAD 2019 to 2026 still save the "AutoCAD 2018 Drawing" format). Older codes such as AC1006 (R10) and AC1004 (R9) belong to drawings older than most software reads, the viewer on this site included.

DWG and DXF

Both come from Autodesk and hold the same kind of content: Autodesk's DXF reference describes DXF as a representation of all the information in an AutoCAD drawing file. DWG is the compact binary form AutoCAD saves; DXF writes the same out, usually as text, for other programs to read, and is larger. A program that reads only DXF needs the DWG converted first.

Version errors

When software says a drawing is an unsupported version, the drawing was saved in a newer format than the software knows. The fix is newer software, or a copy saved in an older format (DWG TrueView can do that).

Fonts and external references

A .dwg names its fonts and can link other drawings as external references. Opened somewhere without those, the fonts are replaced and the references go missing, even though the drawing itself is intact. The viewer on this site draws text in your device's fonts and lists external references among the objects it could not show.

Frequently Asked Questions

Can I convert DWG to PDF for free?
Yes. Open it in the viewer on this site and use "Print / Save as PDF" (on a computer, choose "Save as PDF" as the printer). DWG TrueView can also export a PDF on Windows. If line weights must be exact, ask the person who made the drawing for a PDF from their CAD program.
Is a DWG an image?
No. It is a list of objects in coordinates, so it stays sharp at any zoom and has layers you can switch off. To get a picture, open it in the viewer on this site, frame the part you want and use "Save as PNG".
Will LibreCAD open a DWG directly?
LibreCAD's own FAQ calls its DWG support basic, and suggests converting DWG to DXF when the import fails. The ODA File Converter does that conversion.