What Is a DWG File? The AutoCAD Drawing Format, and Why Versions Matter
DWG files are AutoCAD drawing files, and the first six bytes name the version that saved them. Jump to your question below, or work through it in order.
What Is a DWG File? The AutoCAD drawing file, and what it stores
Short answer
DWG files are AutoCAD drawing files. They store the lines, layers, text and blocks of a 2D or 3D design in one binary file. The first six bytes name the AutoCAD version that saved the file. Most CAD programs read DWG files, but an older AutoCAD cannot open a newer one.
We tested 141 genuine DWG files from 14 version codes. The file command named the version of all 141. A free open-source reader opened all 141 too, yet it printed warnings on 127 and returned fewer objects in every twin check we made.
To open DWG files, read how to open a DWG file. If yours will not open, start with the ten causes. To find your version, read the version check.
DWG files are AutoCAD drawing files. They store a 2D or 3D design in one binary file, and the first six bytes name the AutoCAD version that saved it. Many CAD programs read DWG files, but an older AutoCAD cannot open a newer one.
Picture a floor plan that an architect saves as house-plan.dwg and emails to a builder. The builder double-clicks it and sees an error. The plan is fine. The builder's program is older than the one that saved the file.
Autodesk's guide to DWG files says a DWG stores 2D geometry, 3D data, layers, dimensions, blocks, layouts and metadata. Wikipedia traces the format to Interact CAD, which Mike Riddle built in the late 1970s. Autodesk licensed it in 1982 as the base of AutoCAD.
Adobe's file type page says the name comes from the word drawing. DWG files are not limited to flat plans, because they also store 3D models. Autodesk calls DWG the native file of its AutoCAD products, and its free viewers read the format too.
One fact shapes this page. Autodesk has not published the format. The Library of Congress record says no official specification exists, so every other program reads DWG files by reverse engineering. That is why version gaps and warnings are so common.
DWG file facts at a glance
| Property | Value |
|---|---|
| Meaning | An AutoCAD drawing file. The letters come from the word drawing. |
| Ending | .dwg. Related endings are .dws, .dwt, .bak and .sv$. |
| Made by | Autodesk in AutoCAD and AutoCAD LT, and many other CAD programs |
| Format | Binary. Autodesk publishes no specification. The Open Design Alliance wrote an unofficial one. |
| Starts with | The letters AC and four more characters, like AC1032 for the 2018 format |
| MIME type | image/vnd.dwg. Four of the six databases we checked list it. |
| Opens in | AutoCAD, AutoCAD LT, free viewers and many other CAD programs |
| Safe to open | The file is drawing data. The risk comes from code files that travel with it. |
Wrong page? DXL files are Domino XML files and have nothing to do with CAD, so read the DXL file guide. Preview pictures inside DWG files are PNG files or BMP files. Drawings that you print or share can end up as PDF files.
How Do You Find the Version of a DWG File? Read six bytes and match the code
Read the first six bytes. A DWG file starts with the letters AC and four more characters, like AC1032. In our 141 genuine DWG files, those six bytes named the version every time.
The Library of Congress says the letters AC10 mark DWG files from AutoCAD 2.5 onward, which Autodesk released in June 1986. Older files differ. Version 1.0 starts with MC0.0, and versions 1.2 to 2.22 start with AC and then other characters. Two of our samples start with AC1.40 and AC2.10, so AC10 alone is not a full test.
FileInfo and our earlier page on this site list 41 43 31 30 as the file signature. Those bytes spell AC10, and they fit every DWG file from the 2.5 release onward. The next two bytes give the version, so six bytes give the full answer.
The file command reads those six bytes and names the AutoCAD release. It named all 141 of our DWG files, from AC1.40 to AC1032. It also named the files that we damaged, which is the weak side of a header check. The next two sections show how far a header can be trusted.
The script below prints the version of any DWG file. Save it as check_dwg_version.py and give it the name of your file.
import sys
FORMATS = {
'AC1009': 'R11 and R12', 'AC1012': 'R13', 'AC1014': 'R14',
'AC1015': '2000', 'AC1018': '2004', 'AC1021': '2007',
'AC1024': '2010', 'AC1027': '2013', 'AC1032': '2018',
}
with open(sys.argv[1], 'rb') as f:
code = f.read(6).decode('latin-1')
if code in FORMATS:
print(code, 'is the', FORMATS[code], 'DWG format')
elif code.startswith('AC'):
print(code, 'is an older or unlisted DWG format')
else:
print('Not a DWG file. The first six bytes are', repr(code))
Here is what it printed for three files.
AC1032 is the 2018 DWG format
AC1021 is the 2007 DWG format
Not a DWG file. The first six bytes are '%PDF-1'
The script checks the label and nothing else. A good label does not prove that the drawing inside is complete, as the damage tests in the causes section show. A bad label does prove that something is wrong, because every genuine DWG file starts with AC.
Four more clues about your DWG file
file command named all four correctly.
file command still called both DWG files.
What Is Inside a DWG File? A version stamp, a header and a preview picture
DWG files contain the drawing, its settings and a version stamp. From the 2000 format on, most also contain a small preview picture. In our samples, 107 of 125 files from that format on had a preview that we could decode.
Autodesk lists what a drawing stores: geometry, layers, dimensions, tolerances, annotations, blocks, symbols, layouts and metadata. All of it lives in one binary file. DXF, the text twin, can describe the same content. The Library of Congress calls the two logically equivalent.
| Part | What it stores |
|---|---|
| Version stamp | The first six bytes, like AC1032, name the release of the format |
| Header data | Drawing settings and the addresses of the other parts. The Open Design Alliance specification describes them bit by bit. |
| Preview picture | A small BMP or PNG picture of the drawing, found in 107 of our 125 files from the 2000 format on |
| Drawing objects | Lines, arcs, circles, polylines, text, dimensions, blocks and 3D data, as Autodesk lists them |
| Layers and layouts | The layers that sort objects by use, and the layouts or sheets set up for plotting |
| Links to other files | External references, pictures and underlays attach by path, so they are not stored in the DWG file |
Binary files are small. For eight versions of one test drawing, our DWG files were 1.3 to 5.8 times smaller than their DXF twins. The twins came with the same sample collection, so treat the ratio as a range for our files and not as a rule.
The preview picture inside DWG files
The header of a file from the 2000 format on gives the address of a preview block. The block lists one or more pictures. We found BMP pictures in 83 files from the 2000, 2004, 2007 and 2010 formats and PNG pictures in 24 files from the 2013 and 2018 formats.
The 2018 format was the exception. Only 4 of its 21 files had a preview. So a missing preview does not mean damage. Our samples came from many sources, and programs that write DWG files can skip the picture.
This picture is the quickest way to see DWG files without CAD software. The script below saves it. The free LibreDWG tool dwgbmp does the same job in one command.
import struct
import sys
SENTINEL = bytes.fromhex('1f256d07d43628289d57ca3f9d44102b')
data = open(sys.argv[1], 'rb').read()
at = struct.unpack_from('<i', data, 13)[0]
if data[at:at + 16] != SENTINEL:
sys.exit('No preview block found')
for i in range(data[at + 20]):
code, start, size = struct.unpack_from('<Bii', data, at + 21 + i * 9)
if code in (2, 6) and size:
image = data[start:start + size]
name = 'preview.png'
if code == 2:
name = 'preview.bmp'
dib = struct.unpack_from('<IiiHHIIiiII', image)
palette = (dib[9] or 1 << dib[4]) * 4 if dib[4] <= 8 else 0
head = struct.pack('<2sIHHI', b'BM', 14 + size, 0, 0, 14 + dib[0] + palette)
image = head + image
open(name, 'wb').write(image)
print('Saved', name, len(image), 'bytes')
Here is what it printed for two files.
Saved preview.bmp 24262 bytes
Saved preview.png 5351 bytes
The picture is small. Ours ranged from 160 to 852 pixels wide. It shows how the drawing looked when someone saved it, and it does not prove that the drawing inside opens.
Files attach by path. Autodesk's help says AutoCAD warns you when an external reference, image or underlay cannot be found. If a DWG file opens with gaps, the missing parts are separate files that did not travel with it.
Which AutoCAD Opens Which DWG Version? Newer programs open older files, never the reverse
AutoCAD saves in the DWG format that was current when it came out. Newer programs open older DWG files, and older programs cannot open newer ones. Autodesk says AutoCAD 2018 to 2027 all save the 2018 format, so one format covers ten releases.
Autodesk's compatibility article, dated May 2026, sets the rule. Every AutoCAD product can save, open and edit any older DWG format. It cannot open a newer one. You can change the default save format in the Open and Save tab of the Options dialog.
The article gives three examples. AutoCAD 2025 can open DWG files back to 1998, the R14 format. AutoCAD 2017 cannot open a 2018 file. AutoCAD 2018 can open DWG files from AutoCAD 2025, because AutoCAD 2025 saves in the 2018 format.
| AutoCAD release | DWG format, header code and DWG files in our set |
|---|---|
| AutoCAD R14 | R14 format, header code AC1014. We tested 4 DWG files. |
| AutoCAD 2000 to 2002 | 2000 format, header code AC1015. We tested 24 DWG files. |
| AutoCAD 2004 to 2006 | 2004 format, header code AC1018. We tested 22 DWG files. |
| AutoCAD 2007 to 2009 | 2007 format, header code AC1021. We tested 19 DWG files. |
| AutoCAD 2010 to 2012 | 2010 format, header code AC1024. We tested 19 DWG files. |
| AutoCAD 2013 to 2017 | 2013 format, header code AC1027. We tested 20 DWG files. |
| AutoCAD 2018 to 2027 | 2018 format, header code AC1032. We tested 21 DWG files. |
The table follows Autodesk. Wikipedia stops the 2018 row at AutoCAD 2025, and Autodesk's newer article extends it to 2027. The header codes come from Wikipedia and the Library of Congress, and our own samples confirm all of them.
Older DWG formats before R14
Autodesk lists six older version codes. They are rare today, but an archive of DWG files can contain them. We found sixteen files in our set from before the 2000 format, and the file command named all sixteen.
| Header code | AutoCAD release and DWG files in our set |
|---|---|
| AC1002 | AutoCAD 2.5. We had none. |
| AC1003 | AutoCAD 2.6. We tested 2 DWG files. |
| AC1004 | AutoCAD R9. We tested 1 DWG files. |
| AC1006 | AutoCAD R10. We tested 2 DWG files. |
| AC1009 | AutoCAD R11 and R12. We tested 3 DWG files. |
| AC1012 | AutoCAD R13. We tested 1 DWG files. |
| AC1.40 and AC2.10 | The oldest codes in our set, from AutoCAD 1.4 and 2.10. We tested 3 DWG files. |
How to find the version your program needs
-
Read the first six bytes with our header check, or use the
filecommand. - Match the header code to the table above and note the AutoCAD years that save that format.
- Compare those years with the program you use. If your program is older than the first year, it cannot open the file.
- Ask the sender for a copy saved to an older format, or use a viewer. The open section lists both routes.
An old file opens in a newer program, but not always unchanged. Autodesk's help on opening drawings says AutoCAD updates most objects on its own. Some need a command. Hatches and 2D polylines from before R14 use CONVERT. Lights from AutoCAD 2006 or earlier need CONVERTOLDLIGHTS. Materials from AutoCAD 2010 or earlier need CONVERTOLDMATERIALS.
One product has its own format. Autodesk says all AutoCAD products share the same DWG format except AutoCAD Mechanical, which uses a Mechanical DWG format. If a drawing came from that product, ask for a standard save.
What Did We Find in 141 DWG Files? The version was easy to read, and the objects were harder
We tested 141 genuine DWG files from 14 version codes. The file command named all 141, and the open-source LibreDWG reader opened all 141. It still printed warnings on 127 DWG files and returned fewer objects in all 8 twin checks.
We wanted facts about genuine files, so we used the 141 DWG files in the test collection of LibreDWG 0.14.8612. Many programs and people made them, and we did not. They range from 1,152 bytes to 2.2 MB and add up to 17.9 MB. Every version code from AC1.40 to AC1032 appears, though the 2000 to 2018 formats make up 125 of them.
LibreDWG is a free GNU library that reads DWG files without any help from Autodesk. We used its dwgread tool to read every file and its dwg2dxf tool to convert it. Then we loaded the DXF files with ezdxf, a Python library for DXF files. The table shows what came back.
| Test | Result |
|---|---|
| The file command | Named the AutoCAD release of 141 of 141 DWG files, including the oldest. |
| LibreDWG reader | Reported SUCCESS on 141 of 141 DWG files. |
| Reader messages | 127 DWG files printed warnings or errors, and 35 of those printed ERROR lines. Most warnings named object classes that LibreDWG marks unstable, like MATERIAL and TABLESTYLE. |
| Conversion to DXF | All 141 DWG files gave a DXF file that the ezdxf library could load. |
| Objects found | 130 of the 141 DXF files had drawing objects in model space. The other 11 came back empty. Without AutoCAD, we cannot separate an empty drawing from lost objects. |
| Preview pictures | Decoded in 107 of the 125 DWG files from the 2000 format on. |
The reader said SUCCESS every time, so that word does not prove much. LibreDWG warns that some object classes are unstable, and the later formats printed the most messages. All 21 files in the 2018 format printed at least one.
Same drawing, eight formats
Eight sets in the collection contain one test drawing saved in different formats, with a DXF twin for every format. The twins show 67 or 68 objects in model space, which we take as the same drawing. We compared them with what LibreDWG gave us.
| Set | Objects in model space |
|---|---|
| R13 set | The DXF twin had 67 objects. Our converted DXF had 63. |
| R14 set | The DXF twin had 67 objects. Our converted DXF had 62. |
| Six sets from 2000 to 2018 | Every DXF twin had 68 objects. Every converted DXF had 67. |
LibreDWG returned fewer objects in all eight sets, by 1 to 5. The twins are not proof of AutoCAD's result, because we do not know which program made them. They do show that a third-party reader can drop objects without saying so.
File sizes in the sets moved a lot. The 2000 format file was 582,572 bytes, while the 2013 format file of the same drawing was 146,906 bytes. The DXF twins ranged from 575,437 to 1,387,952 bytes.
What six databases say about DWG files
We also looked up .dwg in six file-type databases: Debian media-types 10.1.0, Apache httpd trunk, nginx master, shared-mime-info 2.4, Python 3.13 and mime-db 1.54.0. We added .dxf, .dwf, .dws, .dwt and .pdf, so every row has company. The media type is the label that names a file type for a browser.
Four of the six list .dwg as image/vnd.dwg: Debian, Apache, shared-mime-info and mime-db. Python's own table and nginx's list have no entry, though Python adds the system list when one exists. DXF files follow the same pattern. No database lists .dws or .dwt.
The file command is the stronger test. Its rule book, libmagic 5.45, has a line for every release from AutoCAD 1.40 to the 2018 format. Every line gives image/vnd.dwg. shared-mime-info has no byte pattern for DWG files, only the ending.
file command beat every ending-based tool in our tests.
Read the study with care. It shows what free tools do with a sample collection. It does not show what AutoCAD does, because we did not test AutoCAD, DWG TrueView or Autodesk Viewer. The files came from many makers, and we cannot say which ones Autodesk made.
What Does Our Expert Say About DWG Files? A note from Neeraj Singh on checking the version first
Check the version before you try any repair on DWG files. The first six bytes name it, and most failed opens come from a file that is newer than the program, not from damage.
Expert insight
“DWG files are version stamps wrapped around drawings. In our checks, the first six bytes named the version of all 141 files, so read them before you blame the file. Then match that version to your program, because a newer DWG file will not open in an older AutoCAD.”
Why the version comes first
Version checks cost seconds, and repair tools cost time. The header names the format, and Autodesk's rule says an older program cannot open a newer format. So the six bytes answer the question that most people are asking.
The check has a limit, and our damage tests show it. The file command still named DWG files that we had cut in half. A good header means the DWG file starts right. It does not mean the DWG file ends right, so a version match starts the check and does not finish it.
Save the sender's original. Keep the first copy of a DWG file before you try AUDIT, RECOVER or any converter. Repairs write a new file, and the original is the only copy that the sender can resend.
How Do You Open DWG Files? AutoCAD, free viewers, browsers and phones
Open DWG files in AutoCAD or AutoCAD LT to edit them, or in a free viewer to look at them. Autodesk offers DWG TrueView for Windows, Autodesk Viewer in a browser and AutoCAD Web. Other CAD programs read DWG files too, but support depends on the version.
Autodesk's DWG page says its free viewers open DXF, DWG, DWT, DXB, DGN and DWF files offline, on mobile or in a browser. They need no subscription. DWG TrueView is the Windows program, and it is the only one that Autodesk describes as a converter.
| Program | What it does |
|---|---|
| AutoCAD and AutoCAD LT | Create and edit DWG files. AutoCAD LT focuses on 2D drafting, says Autodesk. |
| DWG TrueView | A free Windows viewer from Autodesk that views DWG files and converts them |
| Autodesk Viewer | A free online viewer that opens DWG files in a browser with no install |
| AutoCAD Web | Views, marks up and lightly edits DWG files in a browser or on mobile. Full use needs a trial or plan. |
| Other CAD programs | FileInfo lists DraftSight, TurboCAD, CorelCAD, ArchiCAD, Fusion 360 and eDrawings Viewer. Support varies with version and object type. |
| LibreDWG | Free open-source tools that read DWG files. We tested them on 141 files. |
| SysTools and Freeviewer viewers | Windows viewers that say they open DWG files without AutoCAD. We did not test them. |
We tested only LibreDWG. FileInfo's list covers more, and it marks many entries as trials. Autodesk's guide warns that support in other CAD programs varies with the DWG file version, specific objects, custom data and features. Choose the program by the job, whether that is viewing, editing, converting or sharing.
Open DWG files on Windows
- Read the version with the byte reading script, so you know which format you need.
- In AutoCAD or AutoCAD LT, choose Open and select the DWG file. A program that is older than the format will refuse it.
- With no AutoCAD, use a free viewer. Autodesk lists DWG TrueView for Windows, and SysTools and Freeviewer offer Windows viewers too.
- If a warning appears, read the TrustedDWG notes before you choose Open.
FileInfo also lists File Viewer Plus, Fusion 360, TurboCAD, CorelCAD, DraftSight, eDrawings Viewer, Illustrator, ArchiCAD, Canvas X Pro, ABViewer and CST CAD Navigator for Windows. We did not try them.
Open DWG files on a Mac or Linux PC
FileInfo lists AutoCAD, Fusion 360, TurboCAD, CorelCAD, DraftSight, eDrawings Viewer, Illustrator, ArchiCAD, progeCAD iCADMac, Microspot DWG Viewer and CST CAD Navigator for Macs. For Linux it lists BricsCAD, DraftSight and CST CAD Navigator. A browser also works on both, because Autodesk Viewer needs no install.
LibreDWG builds from source on Linux, and we built it for this page. It is a set of command line tools, so it suits people who are at ease in a terminal.
Open DWG files on an iPad, iPhone or Android phone
Autodesk says its free viewers work on mobile devices, and AutoCAD Web can review, mark up and create basic 2D drawings there. FileInfo lists AutoCAD, Fusion 360 and OneDrive for iOS. For Android it lists AutoCAD, Fusion 360, DWGSee and OneDrive. Phones show DWG files well, but check the version first, because the same rule applies.
View DWG files without AutoCAD
A viewer is the right tool when you only need to look, measure or print. Two Windows viewers come from the sites that this guide belongs to.
Both vendors say their viewers open DWG and DWF files without AutoCAD and read damaged files. We did not test either one, so treat those lines as the vendors' own claims.
See the drawing from its preview picture
Sometimes a thumbnail is all you need. Most DWG files from the 2000 format on contain a preview picture, as the section on previews shows. In our set, LibreDWG's dwgbmp tool saved the preview of a 2013 DWG file as a 670 by 448 PNG in one command.
Viewers show, they do not repair. Viewers open DWG files and leave them alone. If a DWG file is damaged, a viewer can still fail. The causes section lists the repair steps in order.
Are DWG Files Safe to Open? The drawing is data, and the risk is code and source
DWG files store drawings, not programs, so opening one in a viewer is low risk. The risk comes from code files that arrive with a drawing and from files that AutoCAD cannot vouch for. Keep the TrustedDWG warning switched on.
A DWG file is data that CAD software reads. The common problems come from around it. They are code files, fake viewer downloads, files from unknown senders and cloud sites that ask you to upload a confidential plan. The table lists what to check, and the last column names the source.
| Check | What to do and the source |
|---|---|
| The sender | Open drawings from people you know. A DWG file is data, but the files that come with it can be code. Source: Our advice. |
| The TrustedDWG warning | AutoCAD checks whether Autodesk software or a RealDWG licensee saved the DWG file. If not, a dialog warns that compatibility and integrity are not guaranteed. You can open it or cancel. Source: Autodesk TrustedDWG article. |
| Code files | AutoLISP and VBA files (LSP, FAS, VLX and DVB) can load code into AutoCAD. Autodesk recommends setting SECURELOAD to 1 or 2 to stop unauthorized code. Source: Autodesk SECURELOAD help. |
| Trusted locations | The Security Options dialog lists the folders allowed to load executable files. The High level loads them from those folders only. Source: Autodesk Security Options help. |
| Missing references | AutoCAD warns you when an external reference, image or underlay cannot be found. Locate it in the External References palette. Source: Autodesk help on opening drawings. |
| Converter sites | DWG files can be client plans or product designs. Do not upload them to a site you do not know. Source: Our advice. |
What the TrustedDWG warning means
Autodesk's TrustedDWG article explains the check. AutoCAD analyzes every DWG file as it opens. It looks for a mark that shows Autodesk software or a RealDWG licensee saved the DWG file. DWG files without the mark get a dialog. The default DWGCHECK setting of 1 shows it, and the status bar then shows a warning icon.
The warning is about compatibility and integrity, in Autodesk's words. Many safe files come from other CAD programs, so the dialog is a reason to look at the DWG file and not to panic. Autodesk advises checking the contents carefully before you save.
What DWG files say about their authors
Autodesk lists metadata and project information among the content of DWG files. We did not inspect the metadata of our samples. Before you send a drawing outside your company, check its properties and remove what you do not want to share.
Do not trust a free DWG opener from search. Search results for free DWG openers can come from anyone. Get a viewer from Autodesk or from the vendor's own site, and read the guide to Windows EXE installers before you start any installer.
Why Will Your DWG File Not Open? Ten causes, and what to do about every one
Most DWG files that will not open fail for one of ten reasons, and the first is a version that is newer than your program. Check the header code first. Damage comes next, and header checks cannot see it.
We tried to break DWG files in 10 ways, on one drawing saved in 6 formats. That gave 60 damaged copies. The file command still called 48 of them DWG files, and the reader failed on 32 of those 48. It returned empty or unreadable results on 9 more. Only 7 came back with the full 67 objects.
So a header check, a green light from file or a sound file size does not prove that DWG files are healthy. The table lists ten causes in the order we would check them. The numbers come from our copies and from Autodesk's own help pages.
| Cause (number) | What you see and the fix |
|---|---|
| A newer version than your program (1) | AutoCAD refuses the DWG file, or viewers show an error. This is the most common cause. Fix: Read the header code in the version section, then update the program, ask for a copy saved to an older format or use a viewer. |
| A cut-off download or email (2) |
The DWG file stops early. In our tests, the reader failed on 5 of 6 copies with the last 1 KB cut off. It failed on 5 of 6 cut in half and on 5 of 6 with only the first 4 KB left. The file command still named DWG for all of them. Fix: Download the DWG file again and compare its size with the size the sender sees.
|
| Not a DWG file (3) |
Someone renamed PDF, ZIP or DXF text files to .dwg. We tried five fakes, and file named all five correctly while the reader refused all five. Fix: Use file on it, then open it with the program for that type.
|
| A damaged version stamp (4) |
The first six bytes are wrong. Zeroed bytes or an invented code like AC1099 failed 12 of 12 times. A stamp that named another valid version failed 6 of 6, even though file believed it. Fix: Ask the sender for a fresh copy. Do not edit the stamp by hand.
|
| Damage in the middle (5) | A few flipped bytes or an inserted gap can break DWG files. The reader failed on 3 of 6 copies with 0.1 percent of bytes flipped and on 4 of 6 with a 1 KB gap. A zeroed 4 KB block did no harm in 6 of 6. Fix: Try AUDIT, then RECOVER, as the steps below show. |
| Missing references (6) | The DWG file opens, but an external reference, an image or an underlay is blank. AutoCAD gives a notice. Fix: Find the missing file and point to it in the External References palette. |
| A TrustedDWG dialog (7) | AutoCAD warns that compatibility is not guaranteed because other software saved the DWG file. Fix: Choose to open it if you trust the sender, then check the drawing before you save. |
| Old objects that need conversion (8) | An old drawing opens, but some objects look wrong. Fix: Use the conversion commands that the versions section lists, one for old hatches and polylines, one for old lights and one for old materials. |
| An AutoCAD Mechanical drawing (9) | Autodesk says this one product uses its own Mechanical DWG format. Fix: Ask the sender to save a standard DWG file. |
| A program with thin support (10) | Autodesk warns that support in other CAD programs varies with the DWG file version, the objects, custom data and features. Fix: Open the file in AutoCAD or in a free Autodesk viewer to see what it contains. |
Repair steps in the order Autodesk gives them
Autodesk's guidance on opening drawings blames corruption on hardware problems and transmission errors. Its Tuesday tips article adds the commands below. We did not test AutoCAD, so these steps are Autodesk's and not our results.
- Copy the file first and work on the copy. Repairs write a new file, so the sender's original stays safe.
- If the file opens but acts oddly, type AUDIT and answer yes when AutoCAD offers to fix errors.
- If the file will not open, use RECOVER from the Drawing Utilities menu. Use RECOVERALL when the drawing has external references.
- After a crash, check the Drawing Recovery Manager. Autosave files end in .sv$, so copy one and rename it to .dwg.
- As a last resort, rename the .bak file next to your DWG file to .dwg and open that. If the .bak file is damaged too, look for an older backup copy.
- If AutoCAD still refuses, ask the sender for a new copy, a DXF file or a PDF file.
The .bak and .sv$ files are DWG files with other endings. We copied a 2018 file to both endings. The bytes matched the original, and the reader found the same 67 objects.
What to send the sender or a helper
A short message gets a faster answer. Include the details below. Send the first six bytes too, because they name the version in one line.
Subject: DWG file will not open
File name: floor-plan.dwg (add the size in bytes)
Header code: the first six bytes, for example AC1032
Program: AutoCAD 2021, DWG TrueView or another, with the version
What happens: the exact words of the error
What you tried: AUDIT, RECOVER, another viewer
What no repair can fix
Do not try random repair sites. A site that offers to repair any DWG file for free can keep the upload. Try the Autodesk steps first, and ask the sender for a new copy.
How Do You Convert or Save a DWG File? Older versions, DXF, PDF and pictures
Save DWG files to an older format in AutoCAD or DWG TrueView when a colleague has an older program. Export to DXF, pictures or PDF when the DWG file only needs to be read. Every export can lose something, so keep the original DWG file.
There are two kinds of conversion. One keeps DWG files editable, like saving to an older DWG format. The other makes copies for reading, like PDFs or pictures. Choose by what the reader will do with the file.
| Direction | What we found and the source |
|---|---|
| DWG to an older DWG format | Yes. AutoCAD saves to older formats, and Autodesk says DWG TrueView saves to earlier versions too. Source: Autodesk compatibility article and Autodesk DWG guide. |
| DWG to DXF | Yes. Autodesk lists DXF among the DWG TrueView outputs. We also converted 141 files with LibreDWG. Source: Autodesk DWG page and our tests. |
| DWG to pictures or STL | Autodesk lists JPG, PNG, STL and CSDX among the DWG TrueView outputs. Source: Autodesk DWG page. |
| DWG to PDF | SysTools says its CAD Converter outputs PDF and PNG, and it has a guide with three ways. We did not test them. Source: SysTools pages. |
| DXF to DWG | Possible in CAD programs. We did not test it. Source: Not tested. |
Save a DWG file to an older version
- Open the file in AutoCAD, or in DWG TrueView if you have no AutoCAD.
- Choose Save As and select an older DWG format from the list. Choose the format by the table in the versions section.
- Save under a new name, so the original stays as it was.
- Open the new file in the older program to confirm that it works.
Autodesk's article on file compatibility says you can also change the default format for every future save. Open Options, choose the Open and Save tab and set the format there. A colleague with AutoCAD 2013 then gets files that work.
A save to an older format can change how some objects behave, because older formats know fewer object types. Check the saved file before you send it.
Convert DWG files to DXF
DXF is the text twin of DWG. We used LibreDWG's dwg2dxf on all 141 files, and all 141 gave DXF files that the ezdxf library could load. In the eight twin sets, though, the converted files had 1 to 5 fewer objects than the DXF files that came with the sets.
dwg2dxf drawing.dwg
dwg2dxf -o drawing.dxf drawing.dwg
Use a converted DXF file to look, to measure or to start over. Do not use it as the final copy of a DWG file until someone with AutoCAD has compared it with the original.
Convert DWG files to PDF or pictures
PDF is the usual way to share drawings with people who have no CAD program. A Windows converter from SysTools says it outputs PDF, PNG and DOCX files in batches. It also says it converts higher versions to lower ones. The SysTools guide to CAD to PDF lists three ways.
SysTools CAD Converter
Converts DWG, DWF and DXF files to PDF, PNG and more
The vendor lists no prices on that page, and we did not test it. A PDF cannot be edited like a DWG file, so keep the DWG file.
Keep the original DWG file. No export gives the same drawing back. Save the converted copy under a new name, and send it only when the reader needs nothing more than a look.
DWG or DXF: Which One Should You Send? Also DWF, PDF and DGN, with sizes from our tests
Send DWG files when the other person edits in AutoCAD. Send DXF files when you need a text format that other CAD programs read. Send PDF files when the other person only needs to look. DWF files suit review and publishing.
Autodesk's DWG guide describes the split in one line. DXF is for exchange, and DWF is for publishing and review. Our own twin sets add a number, because the DXF text file was far larger than the DWG file of the same drawing.
| Format | What it is and the source |
|---|---|
| DWG | AutoCAD's native binary format. It stores the drawing, and many CAD programs read it. Source: Autodesk and Wikipedia. |
| DXF | A published text format for exchange. The Library of Congress calls it logically equivalent to DWG. In our eight twin sets it was 1.3 to 5.8 times larger. Source: Library of Congress and our tests. |
| DWF | A format for publishing and reviewing a design. Databases label it model/vnd.dwf in four of six lists. Source: Autodesk and our database check. |
| A document format for reading and printing. It does not keep the drawing editable. Source: Our advice. | |
| DGN | A CAD format from another maker. Autodesk's free viewers open it. Source: Autodesk DWG page. |
Size in our twin sets
The 2013 DWG file of our test drawing was 146,906 bytes. Its DXF twin was 850,618 bytes. The 2000 file was 582,572 bytes against 1,387,952 for its DXF twin. The oldest sets were closer, with 439,875 and 575,437 bytes for the R14 pair.
Which one should you send
Our twin sets are one drawing. Other drawings can compare differently, so treat the sizes as one measured example.
What Else Looks Like a DWG File? .dwt, .dws, .bak, .sv$ and a lookalike
Several endings appear next to .dwg, and most are still DWG files. DWT, DWS, BAK and SV$ files use the DWG structure. DXF and DWF files are different formats, and DXL files are not CAD files at all.
Anyone can rename files, so endings are hints and not proofs. The table lists the endings that you meet near DWG files. The FileInfo page for the DWG extension shows more programs for the main ending.
| Ending | What it is and the source |
|---|---|
| .dwg | An AutoCAD drawing file. Source: Autodesk and FileInfo. |
| .dwt | A drawing template. The Library of Congress says it uses the DWG structure. Source: Wikipedia and Library of Congress. |
| .dws | A drawing standards file. The Library of Congress says it uses the DWG structure. Source: Wikipedia and Library of Congress. |
| .bak | A backup copy of a DWG file. Rename it to .dwg to open it. Source: Autodesk help on opening drawings. |
| .sv$ | An autosave copy. Our renamed copy matched the original bytes. Source: Autodesk and our tests. |
| .dxf | The text twin of DWG. Source: Autodesk and Library of Congress. |
| .dwf | A review and publishing format. Source: Autodesk. |
| .dxl | A Domino XML file from IBM and HCL software, with nothing to do with CAD. Source: FileInfo. |
Backup and autosave files
When AutoCAD saves, it can leave a .bak copy of the last version beside the DWG file. It also writes autosave files that end in .sv$. We copied a 2018 drawing to both endings. The file command named both DWG, and the reader found the same 67 objects, so the bytes were identical.
Autodesk lists the rename as a last resort for drawings that will not open. The .sv$ default folder is %TEMP%, says its Tuesday tips article. Look there after a crash.
Files renamed to .dwg
We renamed five files to .dwg. They were DXF text, PDF, ZIP, text and empty files. The file command named all five correctly, and the reader refused all five. If a DWG file will not open and file says another type, rename it back and use the right program.
A DXL file belongs to HCL Domino and IBM Notes. If your file ends in .dxl, read the guide to Domino XML files instead.
Pictures inside DWG files
Preview pictures inside DWG files are BMP pictures or PNG pictures, as the preview notes show. You can pull the picture out with LibreDWG's dwgbmp tool when you cannot open the drawing.
What Is the DWG File Format Made Of? The facts we could check, and what Autodesk has not published
The DWG format is closed. Autodesk publishes no specification, so the public facts come from Autodesk's help pages, a 1996 media-type request, the Library of Congress and an unofficial Open Design Alliance document. We checked the rest ourselves.
| Part | What we could check |
|---|---|
| Maker | Autodesk, which makes AutoCAD. Wikipedia traces the format to Interact CAD, built by Mike Riddle in the late 1970s. It says Autodesk began in 1982. |
| Kind | A binary drawing file. DXF is its text twin. |
| Header | The first six bytes are AC and four digits. IANA lists this as the rule, and the Library of Congress dates the AC10 signature to AutoCAD 2.5 in June 1986. |
| Specification | Autodesk has not published one. The Open Design Alliance wrote an unofficial one, and its version 5.4.1 covers R13 to 2018. |
| Media type | image/vnd.dwg. IANA shows a 1996 request, and four of the six databases we checked list the ending. |
| File command |
The file command 5.45 has 19 DWG version entries, and it named all 141 of our files.
|
| Preview | Files from the 2000 format on can contain a preview picture. The address is stored at byte 13. |
| Passwords | The Library of Congress says AutoCAD dropped password protection from AutoCAD 2016. |
| Trust mark | TrustedDWG checks whether Autodesk software or a RealDWG licensee saved the file. |
| Other makers | Wikipedia lists a 2006 suit over TrustedDWG against the Open Design Alliance, settled in 2007. It also lists a LibreDWG release under GPLv3 in 2009. |
| Registries | The Library of Congress lists 19 PRONOM versions of the format. |
About the values we list
The facts about DWG files come from Autodesk's pages, Wikipedia, FileInfo, the Library of Congress and IANA. They also come from our own checks of 141 files and six databases. We read them in October 2026. Autodesk's compatibility article is dated May 2026, and its TrustedDWG blog post was last changed in December 2025.
Wikipedia lists AutoCAD 2018 to 2025 for the 2018 format, and Autodesk lists 2018 to 2027. Where two sources differ, we follow the newer Autodesk page.
What we left out
We did not test AutoCAD, AutoCAD LT, DWG TrueView, Autodesk Viewer, AutoCAD Web, any other CAD program or the SysTools and Freeviewer products. We did not read the Open Design Alliance document line by line, and we name no prices.
Our 141 sample files came from the LibreDWG test collection. We do not know who made any of them. The results show what free tools do, and not what AutoCAD does.
Sources checked
For the format and the rules, see the Autodesk file format compatibility article, the Autodesk introduction to DWG files and the Autodesk DWG viewer page. Also see the Autodesk TrustedDWG blog post and the Autodesk Security Options help.
For the extension and the records, see FileInfo for DWG, the Library of Congress format description and the IANA registration. For the unofficial specification, see the Open Design Alliance PDF. For the background, see the Wikipedia article on DWG.
Every count and label came from the files and scripts in our research folder.
Frequently Asked Questions About DWG Files
What is a DWG file?
DWG files are AutoCAD drawing files. They store 2D geometry, 3D data, layers, dimensions, blocks and layouts in one binary file. The first six bytes name the AutoCAD version that saved the file. Many CAD programs read them, but support depends on the version.
How do I open a DWG file without AutoCAD?
Use a free viewer. Autodesk offers DWG TrueView for Windows and Autodesk Viewer in a browser, and both need no subscription. AutoCAD Web also opens DWG files online. SysTools and Freeviewer offer Windows viewers, which we did not test.
What does DWG stand for?
Bricsys, a CAD maker, says the letters stand for nothing and play on the word drawing. We found no Autodesk page that expands them. What matters in daily use is the version stamp at the start of the file.
Why will my DWG file not open?
The most common cause is a newer format than your program reads. Other causes are cut-off downloads, wrong endings, missing references and damage inside DWG files. Read the header code first, then try AUDIT and RECOVER on a copy. Our table lists ten causes and fixes.
How do I find the version of a DWG file?
Read the first six bytes. They are AC followed by four digits, like AC1032 for the 2018 format. The `file` command names the release in plain text, and a short Python script does the same. Our test named the version of all 141 files.
Can an older AutoCAD open a newer DWG file?
No. Autodesk says every AutoCAD product opens older DWG formats, and none opens a newer one. AutoCAD 2017 cannot open a 2018 file. AutoCAD 2018 can open DWG files from AutoCAD 2025, because both save the 2018 format.
What is the difference between DWG and DXF files?
DWG is the native binary format of AutoCAD. DXF is a text format for exchange between CAD programs. In our eight twin sets the DXF file was 1.3 to 5.8 times larger. A conversion to DXF can also lose objects, so keep the DWG file.
Is a DWG file 2D or 3D?
It can be either. Autodesk says a DWG file stores 2D geometry and 3D data. AutoCAD LT focuses on 2D drafting, while AutoCAD handles both.
How do I convert a DWG file to PDF?
SysTools says its CAD Converter outputs PDF files, and it publishes a guide with three ways. We did not test them. Autodesk lists JPG, PNG, STL, DXF and CSDX among the DWG TrueView outputs. If you only need to read a DWG file, ask the sender for a PDF.
What are .bak and .sv$ files?
They are DWG files with other endings. BAK files are backup copies, and SV$ files are autosave copies. We copied a 2018 DWG file to both endings and the bytes matched. Rename a copy to .dwg to open it.
Is a DWG file safe to open?
A DWG file is data that CAD software reads, so the DWG file itself is low risk. The risk comes from code files that arrive with it, like LSP and VLX files. Autodesk advises setting SECURELOAD to 1 or 2. AutoCAD also warns when it cannot confirm that Autodesk software saved a file.
Can I open a DWG file on my phone?
Yes. Autodesk says its free viewers work on mobile devices, and AutoCAD Web can review and mark up drawings there. FileInfo lists AutoCAD, Fusion 360 and OneDrive for iOS. For Android it lists AutoCAD, Fusion 360, DWGSee and OneDrive. Check the file version first.
Still Stuck With a DWG File? Eight routes out, depending on what went wrong
Go to the header reading steps to read the header code. Then open the versions table to see which AutoCAD years can read it.
Start with the list of causes. Cut-off downloads, wrong endings and newer versions explain most cases.
Is it a DXL file? The page on the DXL format covers the Domino XML file that shares letters with DXF.
Is it a PDF file? The page on PDF documents explains the format that most drawings end up in for sharing.
Is it a preview picture? The page on BMP files explains the picture format inside DWG files from 2000 to 2010.
Do you need an installer for a viewer? The page on EXE files and the page on DMG files explain the Windows and Mac installers.
Do you want an older copy? See how to save a DWG file to an older version with AutoCAD or DWG TrueView.
Is it a file type you do not know? Browse the file extension resource library, or send it to us on the submit a file type page.