DWG vs DXF: which one to use when the plan is headed for 3D or BIM

If the drawing is going to be converted into a 3D or BIM model, a clean DWG saved in a mainstream release is the safest default, and a DXF is a good second choice. What matters more than the extension is the preparation: units, bound xrefs, a purged and audited file, and tidy layers.

The same drawing as a DWG, shown as binary bytes, and as a DXF, shown as readable group codes with $INSUNITS highlighted.

What DWG and DXF are

DWG is the native drawing format of AutoCAD-based products. Autodesk describes it as the format used to store blocks and 2D and 3D designs (Autodesk, AutoCAD drawing file format help).

It is proprietary. The Library of Congress notes that Autodesk has published no specification for DWG (Library of Congress, DWG, AutoCAD Drawing Web Format). Other programs read it through reverse-engineered work.

The best known is the Open Design Alliance, a non-profit consortium that builds toolkits for reading and writing DWG. According to the Library of Congress, its DWG specification was derived by reverse engineering. BricsCAD is among the programs built on it. The ODA lists the DWG versions its SDK supports, from AutoCAD 12 onwards (Open Design Alliance, Drawings SDK).

DXF is the exchange format. Autodesk's help says AutoCAD uses it to interchange drawing data with other applications (Autodesk, About Drawing Interchange File Formats). Its documentation is public and dates back to 1982, though the Library of Congress calls DXF "proprietary, but openly documented" (Library of Congress, DXF, AutoCAD Drawing Interchange Format).

ASCII and binary DXF

A DXF file is either an ASCII or a binary representation of a drawing. Autodesk says ASCII gives a text file you can read and edit, while binary gives a significantly smaller file that is faster to work with (Autodesk, About Importing and Exporting DXF Files).

Precision is the other trade-off. The same page lets you export with up to 16 decimal places. If a wall that should close shows a tiny gap after export, low decimal precision is one thing to check.

On size in general, the Library of Congress quotes Adobe: in DXF vector drawings every element is "spelled out", which makes the files larger. The explicit structure is also why other programs can translate DXF more easily.

Versions and why they matter

Both formats carry a version. Autodesk says drawings from earlier releases should open in the latest release, but files from the latest release are sometimes not backwards compatible (Autodesk, AutoCAD drawing file format help). The format changes only now and then, so one format covers several releases:

  • AutoCAD 2018 format: AutoCAD 2018 to 2025
  • AutoCAD 2013 format: AutoCAD 2013 to 2017
  • AutoCAD 2010 format: AutoCAD 2010 to 2012
  • AutoCAD 2000 format: AutoCAD 2000 to 2002
  • R12 DXF: AutoCAD R12 and R13

The version code is stored in the file itself. Bricsys notes that the first six characters hold it, such as AC1032, so a DXF can be checked in a plain text editor (Bricsys, Drawing file format compatibility in BricsCAD).

For exchange, a middle version such as 2013 is a sensible choice, because it is readable by a wide range of tools. That is our advice, not a rule from the sources.

What can be lost in the round trip

Going to an older DWG release can cost data. Autodesk warns that converting to an earlier release format may cause some data loss, and lists examples: multileaders show as proxy objects in releases before 2008, file size can increase in the 2000 format, and encryption and digital signatures are lost (Autodesk, About Converting to Previous Drawing File Formats). Save under a new name so the original survives.

DXF has its own limits. The Library of Congress says certain object types, including ACIS solids and regions, are not documented, and it describes DXF 3D support as limited. It also cites the observation that DXF has become less useful as AutoCAD supports more complex objects.

For a floor plan, the objects that matter are lines, polylines, arcs, blocks and layers. These are the simple, well-documented parts of the format. Dynamic blocks and 3D solids are where differences appear, which is a reason to flatten them to plain geometry before you send a file.

Which software reads which

AutoCAD reads and writes both. BricsCAD lists the DWG and DXF versions it can open and save directly, from the 1990s releases to current ones, and distinguishes OPEN (a new tab) from IMPORT (geometry only, like an external insert) (Bricsys page above).

QCAD uses DXF internally and to save and import files, and DWG support comes as a commercial plugin based on the ODA libraries (Wikipedia, QCAD). A QCAD forum reply recommends DXF if you only work in QCAD (QCAD forum, Should I be using DWG or DXF files?). Wikipedia calls LibreCAD a fork of QCAD 2.0. I could not confirm DraftSight's version coverage from its own documentation, so check it before relying on it.

Revit imports or links both DWG and DXF, and Autodesk says linking is usually preferred over importing (Autodesk, About Importing or Linking CAD Files). In Archicad, a dragged-in DWG or DXF is merged as 2D appearance only, and the 3D content is not imported (Graphisoft, Opening DWG/DXF Files). In both tools the drawing is a reference, not a model.

Side by side

DWG and DXF compared for 3D and BIM conversion
PointDWGDXF
Owner and specificationAutodesk, proprietary, no published specificationAutodesk, openly documented reference
EncodingBinaryASCII text or binary
File sizeBinary; the sources give no size figure, so compare your own filesASCII is larger; binary is significantly smaller
Complex objectsNative to AutoCAD, including dynamic blocksSome objects undocumented; limited 3D
Version riskNewer files may not open in older releasesAlso versioned; older versions lack newer features
Readable byAutoCAD, BricsCAD, ODA-based tools, Revit, ArchicadMany CAD programs, per the sources above
Best forExchange with AutoCAD usersExchange with other CAD, or when DWG fails

Before you upload for 3D conversion

Whichever you pick, do the same five things. They matter more than the extension.

  • Check units. INSUNITS sets the drawing units used to scale blocks and xrefs on insertion. Autodesk's codes include 1 for inches, 4 for millimetres, 6 for metres and 0 for unspecified (Autodesk, INSUNITS system variable). Measure one wall you know the length of, such as 12'-0".
  • Bind xrefs. A file that points to external references will arrive without them. Bind them, or send everything together.
  • Purge and audit. Run PURGE and AUDIT to drop unused definitions and repair errors.
  • Tidy layers. Keep walls, doors, windows and furniture on separate, clearly named layers. Delete dimensions, hatches and title blocks that are not needed.
  • Flatten the plan. One floor per sheet area, at the correct elevation, with no stray objects far from the plan.

In planto3D: you can upload DWG, DXF or PDF. DWG and DXF give the best results, since PDF skips the drawing check. The header units in a DXF are often wrong, so planto3D never trusts them alone: you click one wall of known length and type it.

The full checklist is in how to prepare a DXF floor plan for 3D conversion. If IFC is your goal, see the DXF to IFC converter.

FAQ

Is DXF better than DWG for 3D conversion?

Not by itself. DXF is easier to inspect and is read by more software, while DWG is the native format. A well-prepared file in either gives a better result than a messy file in the other.

Does saving as DXF lose information?

It can. The Library of Congress notes that some object types are undocumented and 3D support is limited. For plain 2D plan geometry, loss is usually small, but check the result.

Which DWG or DXF version should I save?

Save a copy in a version your recipient can open. Autodesk maps the 2013 format to AutoCAD 2013 through 2017 and the 2018 format to 2018 through 2025. A copy in a middle version is a reasonable choice.

Can I open a DWG without AutoCAD?

Yes. The Library of Congress lists free viewers such as DWG TrueView (Windows only) and ODA tools, and programs like BricsCAD and LibreCAD read DWG or DXF in different ways.

Next step

Open your plan, run PURGE and AUDIT, bind xrefs and confirm one dimension. Then save a copy as DWG or DXF and try it in planto3D. New accounts start with 3 credits.

Sources

Try it on your own plan

Upload a DWG or DXF, set the scale from one wall, and get an editable 3D model with IFC, OBJ and DXF downloads. New accounts get 3 free credits.