Know a company with years of records? Refer it and earn up to $100K
Guide

What Is a DWG File? How to Open, Convert and Archive It

What a DWG file is, who controls it, how to open it free, convert it to DXF, PDF or STEP, check its version, and archive a company DWG library for AI.

Short answerChecked

A DWG file is AutoCAD's native drawing file: a proprietary binary format, maintained by Autodesk, that stores 2D and 3D geometry, layers, blocks, layouts and metadata. You can open it without AutoCAD in DWG TrueView, Autodesk Viewer or the ODA Viewer, and convert it to an older version, DXF or PDF. A firm's DWG archive with its revision history can also be licensed for AI training, and Origin Data Partners values such archives, prepares them and handles the licensing.

Digital calipers on a quality inspection report on a factory workbench
Key points
  • DWG is Autodesk's proprietary format with no published specification; the Open Design Alliance documents it by reverse engineering.
  • AutoCAD 2018 to AutoCAD 2027 all save the AutoCAD 2018 format (code AC1032), and older releases cannot open newer files.
  • DWG TrueView, Autodesk Viewer and ODA Viewer open DWG files without AutoCAD; DWG Convert and the ODA File Converter change versions.
  • Most conversions drop something, and AutoCAD cannot write STEP per Autodesk, so keep the native DWG as the master.
  • Archive drawings with their xrefs, fonts and issued revisions together, on relative paths, in eTransmit packages.

What is a DWG file?

A DWG file is a drawing saved in AutoCAD's own format. The Library of Congress calls it "the proprietary native file format for AutoCAD, one of the most popular computer-assisted design (CAD) packages" and adds that "DWG is a compact binary format that stores and describes the content of 2D and 3D design data and metadata" (Library of Congress).

Inside one file sit the lines, arcs, text, hatches and dimensions of the drawing, organized on layers and grouped into named blocks. Model space holds the design at full size; layouts hold the sheets with their title blocks and viewports. A DWG can also point to other files, such as another DWG attached as an external reference (xref), an image or a PDF underlay. Those are links, not copies, which is why a drawing sent on its own often arrives with pieces missing.

Several other extensions you will meet in a project folder are DWG files under another name, or close relatives. The table lists them.

ExtensionWhat it isSame internal format as DWG?Source
.dwgThe drawing itself: geometry, layers, blocks, layouts, metadataYesLibrary of Congress
.dwtA drawing template that new drawings start fromYesLibrary of Congress
.dwsA drawing standards file used to check layer and style rulesYesLibrary of Congress
.bakThe backup AutoCAD writes when it saves; rename it to .dwg to open itYesLibrary of Congress; AutoCAD 2026 Help
.dxfDrawing Exchange Format, the published interchange version of the same contentNo: ASCII text or binary DXFLibrary of Congress
.dwf, .dwfxAutodesk publishing formats for review and markup, not for editingNoLibrary of Congress

Sources: Library of Congress format description and AutoCAD 2026 Help on opening drawings.

Who controls the DWG format: Autodesk or the Open Design Alliance?

Autodesk does. "The format is maintained by Autodesk," and "No specification has been published by Autodesk" (Library of Congress). The Library of Congress says the content of a DWG is "covered best in the documentation Autodesk supplies for the DXF Drawing Interchange Format".

The Open Design Alliance (ODA) is the other name you will see. The Library of Congress says the closest thing to a DWG specification was "derived by the Open Design Alliance (ODA) by reverse engineering", and that document states: "The Open Design Alliance is not associated with Autodesk." (ODA specification). ODA describes itself this way: "ODA is a non-profit technology consortium with broad industry support." (About ODA). The Library of Congress lists BricsCAD and NanoCAD among the CAD programs built on its toolkit.

AutoCAD keeps track of where a file came from. Files "created with Autodesk applications and RealDWG" are trusted, and with the DWGCHECK setting on, AutoCAD shows an alert when "The drawing file was not originally created by an Autodesk application or RealDWG-based application." (AutoCAD 2026 Help).

Which DWG versions exist, and how do you check a file's version?

AutoCAD keeps one file format for several releases. Autodesk's rule: "AutoCAD product versions can save, open and edit any older DWG file formats, but older versions cannot open DWG files of newer DWG format." Its own table shows every release from AutoCAD 2018 to AutoCAD 2027 saving the AutoCAD 2018 format (Autodesk Support). From 1990 to 2018 a new DWG version arrived roughly every 2 or 3 years, by the Library of Congress's count; since then the AutoCAD 2018 format has stayed current through AutoCAD 2027.

To check a file without AutoCAD, Autodesk's own tip is to "open a DWG file in Notepad. The first six characters will show the DWG version code" (Autodesk Support). The Library of Congress agrees: "The first six bytes of a DWG file indicate the version of the format" (Library of Congress), and the ODA specification maps each code to a format (ODA specification). In AutoCAD itself, Autodesk says "the command line will show the current format of the DWG file" when you open it (Autodesk Support).

First six charactersDWG formatAutoCAD releases that save it by default
AC1032AutoCAD 2018AutoCAD 2018 to AutoCAD 2027
AC1027AutoCAD 2013AutoCAD 2013 to AutoCAD 2017
AC1024AutoCAD 2010AutoCAD 2010 to AutoCAD 2012
AC1021AutoCAD 2007AutoCAD 2007 to AutoCAD 2009
AC1018AutoCAD 2004AutoCAD 2004 to AutoCAD 2006
AC1015AutoCAD 2000AutoCAD 2000 to AutoCAD 2002
AC1014Release 14AutoCAD R14
AC1012Release 13AutoCAD R13

Codes from the ODA specification (section 3.2.1); release ranges from Autodesk Support, which does not list R13.

How do you open a DWG file without AutoCAD?

Use a viewer, most of them free. Autodesk's own answer is DWG TrueView, which "allows you to open, view, and plot AutoCAD, DWG, and DXF files" and is used "for printing, creating PDFs, and converting between AutoCAD formats" (Autodesk viewers). The Library of Congress notes it is for Windows only, and that the online Autodesk Viewer is "free to use, but requires account registration" (Library of Congress).

Outside Autodesk, the ODA Viewer and the desktop eDrawings Viewer both open DWG files at no cost, and LibreDWG gives developers a free library and command-line tools. The table sets out what each one's own page says.

One gap catches people out: TrueView cannot run AutoCAD's RECOVER command on a damaged file. Its release notes say "This command is not implemented in TrueView. Instead, use the Check and fix errors option as follows." and route the repair through DWG Convert (DWG TrueView 2026 release notes).

ToolWhere it runsWhat it does with DWGSource
DWG TrueView (Autodesk)WindowsView, plot, create PDFs, convert between DWG versionsAutodesk viewers page; Library of Congress
Autodesk ViewerWeb browser, with an accountView, measure and mark up DWG and many other formatsAutodesk viewers page; Library of Congress
ODA Viewer (Open Design Alliance)Windows, macOS and Linux downloadsVisualize ODA-supported formats, including DWG, with markupODA Viewer page; Library of Congress
eDrawings ViewerFree on Windows and Mac; paid apps on iOS and AndroidOpens DXF and DWG files alongside SOLIDWORKS files; the Mac version cannot measure themeDrawings Viewer FAQ
LibreDWG (GNU)Source code, with prebuilt Windows binariesReads all DWG versions, though some advanced R2010+ objects are skipped; its README says the writer handles all versions; DXF and JSON convertersLibreDWG repository

Sources: Autodesk viewers, ODA Viewer, eDrawings Viewer FAQ, LibreDWG and the Library of Congress.

How do you convert a DWG file to PDF or DXF?

To PDF: in AutoCAD, EXPORTPDF "Enables the creation of multi-sheet PDF and access to page setup overrides all in one", and Auto Publish "Enables creation of a PDF (or DWF) file when saving or closing a drawing" (AutoCAD Help). The plot route works too: the EXPORT command points users to "the PLOT command for other file types, including PDF" (AutoCAD 2026 Help). Without AutoCAD, DWG TrueView creates PDFs.

To DXF: choose a DXF file type in Save As. Without AutoCAD, the ODA File Converter is built "For converting between different versions of .dwg and .dxf", a whole folder at a time (ODA File Converter). LibreDWG's tools also write DXF, and its README says "Pre-compiled Windows binaries are here" (LibreDWG).

To an older DWG version: use Save As with an earlier file type, or DWGCONVERT, which "Converts drawing format version for selected drawing files" (AutoCAD 2026 Help). DWG TrueView includes the same DWG Convert tool.

To STEP: Autodesk says "AutoCAD can import STEP files, but STEP files can not be generated", and that the STEPOUT command "is available for AutoCAD Mechanical or Inventor" (Autodesk Support). STEP is used mainly to exchange 3D models, so a 2D plan is normally modeled in 3D before a STEP file is useful to the person receiving it. The standard itself is broader: ISO 10303-242 also covers wireframe geometry, a "2D-sketch model" and "product documentation as annotated 3D models and as drawings" (ISO), but that is not how STEP files are usually exchanged. Our guide to the STEP file format covers what a STEP file keeps.

What is lost when you convert a DWG file?

Often something. Saving to an earlier release "creates a drawing with information specific to the current release stripped out or converted to another object type", and Autodesk adds: "be sure to assign a different name to avoid overwriting the current drawing" (AutoCAD 2026 Help). The condition matters: a drawing that holds nothing newer than the target release saves down "without loss of data", according to the same help page. Batch conversions keep a record: "When the drawing is converted, a log file lists the information that was lost or changed." (AutoCAD 2026 Help).

DXF is the closest to lossless. Autodesk calls DWG and DXF "logically equivalent in content", but ASCII DXF has a precision trade-off that binary DXF avoids, and the Library of Congress says it has "not been able to determine the degree to which the full semantic and functional content of all DWG files can be represented in DXF_ASCII files" (Library of Congress).

Converted toWhat carries acrossWhat is lost or changedSource
An older DWG versionEverything, if the drawing holds nothing newer than the target releaseOtherwise release-specific objects are stripped or converted; traces need the 2010 format or laterAutoCAD 2026 Help
AutoCAD 2000 DWGThe drawing contentEncryption and digital signatures are not preserved; file size can growAutoCAD 2026 Help
Current DXFContent Autodesk treats as logically equivalentASCII DXF can lose floating-point precision; traces are not keptLibrary of Congress; AutoCAD 2026 Help
R12 DXFLines, arcs, circles and textSolids, ellipses and multilines become lines and arcs; only Model and the current layout surviveAutoCAD 2026 Help
PDFHow each layout looks when plottedUse it for reading and sign-off, not as the editable masterAutoCAD Help on PDF output
STEPA 3D model, written by AutoCAD Mechanical or InventorAutoCAD cannot write STEP, per Autodesk; a 2D plan is normally modeled in 3D firstAutodesk Support; ISO

Why won't a DWG file open, and how do you fix it?

Most failures come from a short list of causes. Work through them in this order:

  • The file is newer than the software. An older release cannot open a newer format. Ask for a copy saved down, or convert one yourself in DWG TrueView, which Autodesk describes for "converting between AutoCAD formats" (Autodesk viewers).
  • The file is damaged. RECOVER "Performs an audit on, and attempts to open, any drawing file", RECOVERALL "additionally operates on all nested xrefs", and AUDIT "Finds and corrects errors in the current drawing." Autodesk warns that recovery "does not necessarily preserve the high-level consistency of the drawing file" (AutoCAD 2026 Help).
  • Recovery fails too. Rename the drawing's .bak file to .dwg and open that, as AutoCAD's help suggests (AutoCAD 2026 Help).
  • References are missing. AutoCAD tells you "when an external reference such as an xref, image, or underlay cannot be located", and missing shape files usually trace back to custom shapes in a linetype (AutoCAD 2026 Help).
  • An old file asks for a password. Password saving inside DWG "has been eliminated starting with AutoCAD 2016" (Library of Congress), so the password, or the person who set it, has to be found.
  • Blocks look wrong in another program. "Named blocks may not be recognized by all CAD software, even if the component objects are" (Library of Congress).

How should an engineering or architecture firm archive a DWG library?

Treat the library as a set of linked records, not a pile of files. A drawing on its own is a sheet; the project folder, with its xrefs, standards, issued sets and revisions, is the record of how a design got built. Four habits decide whether anyone can use it in ten years:

  • Naming. One pattern for every project: project number, discipline, sheet number and revision, such as 2417-M-201-C.dwg. Never encode the revision only in a folder name, and never reuse a sheet number for different content.
  • Xrefs. Save reference paths as relative. Autodesk offers "a full path, a relative path, and no path", and calls relative paths "the most flexible option" for moving a set of drawings to another drive with the same folders (AutoCAD LT 2026 Help). When archiving a finished project, package it with eTransmit, which "automatically includes all related dependent files such as xrefs and font files" (AutoCAD 2026 Help).
  • Title blocks. Use one title block per office standard, built as a block with attributes for project, sheet, revision, date, drawn by and checked by. Attribute values can be extracted as data; loose text typed over a title block has to be read by eye.
  • Revision history. Keep each issued revision as its own file next to the PDF that was issued, instead of overwriting the master. DWG Compare "identifies objects that have been modified, added, or removed between the two drawings", but only if both versions still exist (AutoCAD 2026 Help). The format does have a RevisionHistory section, yet the Library of Congress says it has "not ascertained how widely these capabilities are used", so do not rely on it.

Which DWG version should an archive keep?

Keep each drawing in the format it was last saved in, and never save an archive down to an older release to make it easier to open: a down-save can strip objects the older format cannot hold. Add a DXF copy of each final drawing for the long term. Among vector formats, the Library of Congress says it "has expressed a preference for the AutoCAD Drawing Interchange Format", while archives in Canada, the UK, the Netherlands and Australia list DWG itself as preferred or acceptable.

Before anything else, make an inventory. Record the version code of every file, so the archive shows how many drawings sit in each format. The ODA File Converter can open a whole folder tree in one run, and with its audit flag on "an audit/repair operation will be applied to each file as it is loaded" (ODA File Converter). ODA also says it "is committed to ensuring long-term access to critical CAD & BIM data" (About ODA), which matters for a format whose owner publishes no specification.

Who owns the DWG files a firm made for a client?

The file format does not decide it. The contract with the client and copyright law do, and the answer differs between a firm's own standard details, the drawings it issued to a client and files the client supplied. Copyright registration accepts the format: the Library of Congress notes that "The U.S. Copyright Office accepts DWG and DWF formats for registration of architectural drawings."

Our guide to who owns work made for clients sets out what the statutes and standard contract forms say, and the MEP and Revit model guide covers the same question for building models. Counsel should read the firm's own agreements before any client drawing is used outside the project.

Is a company's DWG archive worth anything to AI companies?

In our view it can be, because real drawings at scale are scarce. The FloorPlanCAD authors wrote that "Access to large and diverse computer-aided design (CAD) drawings is critical for developing symbol spotting algorithms" (arXiv 2105.07147). A 2026 team working on drawing-to-model AI rendered its own orthographic drawings from 3D models "due to unavailability of large scale orthographic drawing datasets" (arXiv 2607.08891).

What makes a firm's archive different from a public sample is the history: thousands of real sheets with layers, blocks and title block data, each project's revisions in order, and the issued PDFs that show what was built. In our view, the record types that matter most are the native DWG files, their xrefs and the revision trail, and exports alone matter less.

We help you license your data.

Origin Data Partners is an independent data partner that helps business owners value and license their company records: the company pays Origin nothing, and a buyer may pay Origin when a deal completes.

Origin values the archive, prepares it and handles the licensing. To start, describe the library rather than sending it: the number of drawings and projects, the years they span, how many staff produced them, the version codes from your inventory, which kinds of records sit beside the DWG files, and which projects the firm owns outright. The CAD and engineering data guide explains how those archives are licensed, and the SLDPRT and CATPART guides cover the 3D formats that often sit beside DWG.

How we checked this

We read every source on this page on 21 November 2026, from primary sources: Autodesk's own help pages for AutoCAD 2026, AutoCAD LT 2026 and DWG TrueView 2026, its own support and viewer pages, the Open Design Alliance's own site and its specification for .dwg files, the Library of Congress format description, the LibreDWG repository, the eDrawings Viewer FAQ, the ISO scope page for ISO 10303-242, the LibreCAD and FreeCAD documentation, the DraftSight product page and the arXiv papers cited.

What we could not verify: Autodesk publishes no DWG specification, so statements about the inside of the file rest on the reverse-engineered ODA specification and the Library of Congress. Autodesk's support and viewer pages block automated checks, so we read them in a browser. The GNU site for LibreDWG did not load, so we read its source repository instead; we did not test which DWG versions each free tool opens, or how well LibreDWG's writer handles newer formats. We also could not confirm which AutoCAD subscriptions include the Mechanical toolset that adds STEP export. How completely DXF carries every DWG object is not settled in any source we found.

Origin Data Partners values the records of companies that own data and handles the licensing. We are independent of the services on this page, and a buyer may pay us when a deal closes (how Origin is paid). See what your data is worth.

Common questions

Can you open a DWG file on a Mac?

Yes. Autodesk's DWG TrueView runs only on Windows, but the online Autodesk Viewer works in any web browser once you register an account. The Open Design Alliance offers ODA Viewer downloads for macOS on both Apple chips and Intel, as well as for Windows and Linux. On a Mac, eDrawings Viewer also opens DWG files, though it cannot measure them.

Is a DWG file the same as a DXF file?

No, though they hold much the same content. DWG is Autodesk's proprietary binary format with no published specification. DXF is the Drawing Exchange Format that Autodesk documents, usually saved as ASCII text and meant to be easy for other programs to read. Autodesk treats the two as logically equivalent, but ASCII DXF can lose numeric precision, so binary DXF or the native DWG is the better master.

How do you open a newer DWG file in an older version of AutoCAD?

Convert a copy to the older format first. In a newer AutoCAD, use Save As with an earlier file type or the DWGCONVERT command. Without a newer AutoCAD, the free DWG TrueView includes DWG Convert, and the ODA File Converter does the same for whole folders. Keep the original: converting down strips objects the older release does not understand.

Can AutoCAD save a DWG file as a STEP file?

Autodesk says AutoCAD can import STEP files but cannot generate them, and that the STEPOUT command comes with AutoCAD Mechanical or Inventor. A STEP file is normally a 3D model, so a 2D plan, section or detail is usually modeled in 3D before it is worth exporting. The STEP standard can also hold wireframes and drawings, but that is rarely how STEP files are shared.

What is a .bak file next to a DWG drawing?

It is the backup AutoCAD writes when it saves a drawing, in the same internal format as a DWG. If a drawing is damaged and RECOVER cannot fix it, rename the .bak file with a .dwg extension and open it. It holds the drawing as it stood before the last save, so expect to redo recent work.

What is the difference between a DWG and a DWT file?

A DWT file is a drawing template. It uses the same internal structure as a DWG, but it holds the starting setup for new drawings: layers, text and dimension styles, units, layouts and often the title block. A firm that keeps one controlled template per office standard gets drawings that are far easier to search and archive years later.

Can an engineering firm license its old DWG drawings to AI companies?

It can, if the firm holds the rights. In our view the useful part is the history: native drawings with layers, title block data and every issued revision, not exports. Rights depend on the client contracts, so counsel reads those first. Origin Data Partners values DWG archives, prepares them and handles the licensing, starting from a short description of the library rather than the files.

How do you convert a PDF to a DWG file?

In AutoCAD, the PDFIMPORT command brings a PDF page into the drawing as geometry, fills, raster images and TrueType text. Curves become arcs or polylines, dimensions and hatches arrive exploded, and SHX text comes in as geometry until PDFSHXTEXT converts it. PDF coordinates are single precision, so values are rounded. A scanned PDF is only an image: Autodesk says AutoCAD does not support raster-to-vector conversion.

Which free programs can edit a DWG file, not only view it?

LibreCAD, a free 2D CAD program, says it can read DWG and write DWG, though DWG input and output need a build with DWG support enabled. FreeCAD edits DWG content by converting it to DXF through the ODA File Converter or LibreDWG, and its own documentation says LibreDWG lacks support for some DWG entities. DraftSight is not free: its FAQ offers a 30-day trial of DraftSight Premium.

Sources and further reading

What is your company’s data worth?

AI companies pay $100K to $5M for company records. Six questions, no files.