DXF vs DWG comes down to purpose: DWG is AutoCAD's compressed native file for working on a drawing, while DXF is Autodesk's published text format for sending it to other software.
Work in DWG, and export a DXF when the drawing goes to another program, a CAM system or a cutting machine. It sounds simple until the laser shop cannot open your file, curves come back as plain lines or a DWG hands a supplier layers nobody meant to share.
Let's break down which file and version each destination needs, and which other CAD file formats for CNC machining a factory may ask for. By the end, you'll know exactly what to send.
TL;DR / Key Takeaways
- Work in DWG. Send DXF to non-Autodesk software, CAM programs and cutting machines, saved in the newest version the recipient supports.
- DXF is Autodesk's published exchange format: code-and-value text that most CAD, CAM, vector and GIS software can read.
- DWG is AutoCAD's default save format: compressed binary, with a specification Autodesk has never published.
- A DXF is bigger than the DWG it came from, and old DXF versions such as R12 are where drawing data gets lost.
- Neither file carries material, thickness, quantity or tolerances, so a manufacturer also needs a PDF drawing and those details in the RFQ.
What Is the Difference Between DXF and DWG?
The difference between DXF and DWG comes down to openness and encoding. DXF has a public specification and is usually stored as readable text, so other programs can read and write it.
DWG is proprietary and stores the drawing as compressed binary, and it is the format AutoCAD saves by default.
What Is a DWG File?
A DWG file is AutoCAD's native drawing format, and "DWG" is short for "drawing". The DWG file format has been AutoCAD's default since AutoCAD 1.0 shipped in 1982, and every release still saves to it by default. It stores 2D and 3D geometry, layers, blocks, sheet layouts, external references (xrefs) and drawing metadata, so a DWG file is a full CAD file.
- How it is built: a set of compressed binary sections, with a header that names the version, a single stream holding every object in the drawing and an index that lets AutoCAD jump straight to any object. The Library of Congress format description documents this layout. Packing and compression keep DWG files compact.
- Who controls it: Autodesk has never published the DWG specification. Other CAD programs read DWG through Autodesk's licensed RealDWG library or through the Open Design Alliance's reverse-engineered version of the format.
- Versions: older AutoCAD releases cannot open newer DWG formats, and third-party programs may not open a recent DWG until their reverse-engineered libraries catch up.
What Is a DXF File?
A DXF file is a Drawing Exchange Format file, Autodesk's published format for moving AutoCAD drawings into other software. It arrived with the same release as DWG, AutoCAD 1.0 in December 1982, and a current DXF carries the same objects as a DWG: geometry, layers, blocks, layouts and drawing settings.
- How it is built: a list of code-and-value pairs, one per line, grouped into named sections such as the header, tables, blocks, entities and objects. Open an ASCII DXF in a text editor and every coordinate is readable. A binary variant exists, but ASCII is what most programs exchange.
- Who controls it: Autodesk publishes the specification and controls every revision. That makes DXF publicly documented, but not an open standard like STEP (ISO 10303).
- Versions: DXF versions follow AutoCAD releases, just as DWG versions do, and the version chosen on export decides what survives (see the DXF version table below).
DXF and DWG hold the same kinds of data but organize them differently: DXF lists tables, blocks, entities and objects as separate text sections, while DWG packs them into a single indexed binary stream. The DXF file format guide covers group codes, every section and the export settings in full.
DWG vs DXF Differences
The table compares DXF and DWG on 9 points, from who owns the specification to file size and typical uses.
| Feature | DXF (Drawing Exchange Format) | DWG (AutoCAD Drawing) |
|---|---|---|
| What the name stands for | Drawing Exchange Format | Drawing |
| Who owns the specification | Autodesk; published in the AutoCAD DXF Reference | Autodesk; never published, reverse-engineered by the Open Design Alliance |
| How the data is stored | ASCII code-and-value pairs (a binary variant exists) | Compressed binary sections |
| File size for the same drawing | Larger | Smaller |
| Opening and saving in AutoCAD | Opens and saves natively (DXFIN, DXFOUT, SAVEAS) | Opens and saves natively; the default save format |
| Support in non-Autodesk software | Read by most CAD, CAM, vector and GIS programs | Through RealDWG or ODA libraries; varies by version |
| 2D and 3D support | 2D and 3D, though many importers read 2D only | 2D and 3D |
| How versions are numbered | Versioned with AutoCAD releases since 1982; current AutoCAD writes R12 to the 2018 format | Versioned with AutoCAD releases (e.g. AC1032 for the 2018 format) |
| Typical uses | Exchange with other software, CAM and cutting machines | Working drawings, archives, AutoCAD collaboration |
AutoCAD saves both formats in matching versions back to the 2000 format, and DXF also back to R12. Per Autodesk, AutoCAD 2018 through 2027 still use the 2018 format as their native one.
DWG vs DXF File Size: Which File Is Bigger
For the same drawing, a DXF file is bigger than a DWG file. DXF writes every coordinate and setting out as text, with a group-code line before each value.
DWG packs the same values into binary fields and, from the 2004 format onward, compresses whole sections as well.
| What affects file size | DXF (ASCII text version) | DWG (AutoCAD binary file) |
|---|---|---|
| How the data is written | Plain text, with a numeric code line before each value | Packed binary fields |
| Whether the file is compressed | Not compressed | Whole sections compressed from the 2004 format onward |
| File size for the same drawing | Larger | Smaller |
| When the size gap matters | A large site plan saved as DXF can exceed email or upload size limits | Large project archives take up less storage |
The DWG vs DXF file size gap is real, but the exact ratio is not settled. Autodesk's DWG page puts DWG files at around 25% smaller than DXF, without publishing the test behind the number.
When a DXF is too big to send, zip it. Plain text usually compresses well, and the recipient gets the same file back.
DXF or DWG: Which Should You Use?
Choosing DXF or DWG depends on where the drawing goes next. Use DXF when it goes to non-Autodesk software, a CAM program or a cutting machine, and keep DWG as the working file and for AutoCAD-to-AutoCAD exchange.
For recipients who only need to review the drawing, a PDF is enough.
The table matches each common destination to the file to send.
| Where the drawing is going | File to send | Why this file |
|---|---|---|
| A colleague on AutoCAD or Civil 3D | DWG, saved to their AutoCAD version | Keeps every drawing object, in the smaller file |
| Other CAD software (SolidWorks, Fusion, Rhino, FreeCAD) | DXF, or DWG if the program imports it reliably | DWG import support varies by program |
| A laser, waterjet, plasma or CNC router shop | DXF with the cut geometry only | Nesting and CAM software read DXF natively |
| Sign and engraving software (Illustrator, Inkscape, CorelDRAW) | DXF | Vector design tools import DXF directly |
| GIS and surveying software | DXF, or DWG if the GIS program supports it | DXF is a common exchange format in survey workflows |
| A client or contractor who only reviews the drawing | PDF (or DWF) | The recipient can view and mark up the drawing but not edit it |
| Your archive or master copy | DWG | AutoCAD's native format: compact and complete |
| Older AutoCAD or software you do not know | DXF or DWG, saved to the oldest version they can open | Older programs cannot open newer file formats |
Many CAD programs now import DWG directly, so a DWG sent to a SolidWorks or Fusion user often opens fine. Support still depends on which library the program uses and how recent the DWG version is, so test one file before relying on DWG for that recipient.
How to Convert DWG to DXF (and DXF to DWG)
To convert DWG to DXF, open the file in a DWG-capable program, choose Save As, pick DXF and select the target version. To convert DXF to DWG, open the DXF and save it as DWG the same way.
| Tool | Cost and platform | What it converts |
|---|---|---|
| AutoCAD / AutoCAD LT | Paid subscription; Windows, macOS | Both directions with Save As or DXFOUT; opens a DXF directly |
| DWG TrueView | Free; Windows | Converts between DWG versions with DWG Convert |
| ODA File Converter | Free; Windows, macOS, Linux | Both directions, in batches, with the output version chosen per batch |
| DWG-compatible CAD (BricsCAD, DraftSight, GstarCAD, ZWCAD) | Paid; varies by program | Both directions with Save As |
| Online converters | Free or paid; browser | Both directions, but the drawing is uploaded to a third-party server |
The ODA File Converter runs on Windows, macOS and Linux. It converts whole folders at once and lets you pick the output version and file type.
What each direction loses:
- DWG to DXF: the DXF version decides what survives.
- DXF to DWG: nothing is added. The DWG holds only what the DXF carried, so a DXF exported from a CAM or vector program becomes a DWG with no blocks or layouts.
Which DXF version to export:
- By default: the newest version the receiving software supports. The version matters more than the conversion tool, so ask the recipient when in doubt.
- R12, as a last resort: only for very old CAM and machine software. According to Autodesk, saving to R12 DXF converts solids, regions, ellipses, leaders and multilines into lines, arcs and circles, and keeps only the Model tab and the current layout.
| DXF version (AutoCAD Save As option) | What the file keeps | Choose it when |
|---|---|---|
| R12 (AutoCAD Release 12) | Basic 2D geometry only; complex objects become lines, arcs and circles, and only one layout is saved | The receiver runs very old CAM or machine software |
| 2000 (AutoCAD 2000) | Also saves the drawing units | An older program rejects newer DXF files |
| 2007 or 2013 (AutoCAD 2007 or 2013) | Keeps more of a current drawing than the 2000 or R12 formats | The receiver's software cannot read the 2018 format |
| 2018 (AutoCAD 2018) | The newest DXF format, used by AutoCAD 2018 through 2027 | The receiver runs a recent AutoCAD or compatible program |
The same Save As step also saves a DWG to an older DWG version for a colleague on an older AutoCAD release. Online converters do the job too, but they upload the drawing to someone else's server. For a design covered by an NDA, convert locally in AutoCAD, a DWG-compatible CAD program or the ODA File Converter instead.
Which File Goes to a Manufacturer: DXF or DWG?
Send a DXF for flat, cut parts and a DWG only when the manufacturer asks for an editable drawing. Neither file tells the factory the material, thickness, quantity or tolerances, so those always go in the RFQ.
| At the supplier | DXF | DWG |
|---|---|---|
| Role at the supplier | Cut file for CAM and nesting software | Editable working drawing |
| When to send | Flat, profile-cut parts | Only when asked for an editable drawing |
| What it exposes | Cut geometry only | Layers, block definitions, xrefs, extra layouts and frozen layers |
What the factory sees: A DWG is the whole working file. Along with the part, it can carry other layouts, block libraries and frozen layers nobody has checked in months. Purge the DWG before sending it, or send the extracted DXF and a PDF instead.
To quote a part, a factory needs a package of 4 items:
- The DXF or DWG
- A PDF drawing that states tolerances, threads and finish
- A STEP file, if the part is bent or machined (a solid model, not a mesh; see STEP vs STL files)
- The material grade, thickness, quantity and finish, written into the RFQ
A complete package is what lets a factory quote the part accurately. Haizol's Quick RFQ works like this:
- Files: CAD, PDF and ZIP files, up to 200 MB each.
- NDA: the buyer chooses No NDA, a Level 1 platform NDA or a Level 2 custom NDA.
- Completeness check: an account manager confirms that the file, material and quantity are all there before any factory sees the RFQ.
- Quotes: an average of 6 quotations within 24 hours.
Ready to quote? Upload your DWG, PDF and other CAD files to Haizol's Quick RFQ and get quotes from verified factories.
DXF vs DWG FAQs
What does DWG stand for?
DWG stands for "drawing". It is the file extension of AutoCAD's native drawing format, so a .dwg file is simply an AutoCAD drawing.
Is a DWG file a CAD file?
A DWG file is a CAD file, the native drawing format of AutoCAD. Most other CAD programs read it through Autodesk's RealDWG library or the Open Design Alliance's libraries.
What is the difference between DXF and DWF?
DXF is an editable exchange format, while DWF is a compressed format for sharing drawings with people who do not have AutoCAD, according to Vectorworks. Send DXF for editing and DWF for review.
Is DXF the same as SVG?
DXF and SVG are both vector formats, but they serve different jobs. SVG is built for web and screen graphics, while DXF carries CAD geometry with layers, blocks and, in files saved in the AutoCAD 2000 format or later, drawing units.
Can a DXF file be 3D?
A DXF file can store 3D geometry, but many CAM and cutting programs read only the 2D part. For a manufacturer, export flat 2D cut profiles and send a STEP file for any 3D part.
Do DXF and DWG files store units?
For files saved in the AutoCAD 2000 format or later, both DXF and DWG can store a units setting; older versions such as R12 store no units at all. For any drawing going to a manufacturer, state the units in writing as well, because a file can still be saved unitless.
What gets lost when converting DWG to DXF?
Very little gets lost when the DXF is a current version. Saving to an old version such as R12 turns solids, regions, ellipses, leaders and multilines into lines, arcs and circles, and keeps only the Model tab and the current layout. Objects can also drop out when the receiving software does not support them.