File extensions

How to open a .dxf file

Drawing Exchange Format · CAD

A .dxf file is a CAD drawing in Autodesk's openly documented interchange format. LibreCAD and FreeCAD open it free, and unlike DWG the specification is public, so support is far better.

What a .dxf file actually is

Autodesk created DXF so that drawings could move between programs. The specification is published, which is exactly why almost every CAD tool reads it while DWG support is patchy.

ASCII DXF is readable text, so you can open one in an editor and see the entities listed. There is also a binary variant, which is smaller and not readable.

Why it will not open

No operating system opens CAD files, so nothing happens on a double-click. The format itself is the easy one to support, which is why the free options are genuinely good here.

Renaming it to an extension you can open will not help: changing the extension does not convert the file, it only changes what Windows tries to open it with.

Step by step

Windows

  1. 01For 2D drawings: install LibreCAD, which is free and built around DXF.
  2. 02For 3D or mixed content: FreeCAD imports DXF and is also free.
  3. 03To view without editing, several free online viewers render DXF, though for confidential drawings keep it local.
  4. 04To read the raw entities, open an ASCII DXF in a text editor.

macOS

  1. 01LibreCAD and FreeCAD both have macOS builds.
  2. 02macOS has no built-in support.

What usually goes wrong

DXF is the format to ask for

If someone sends you a DWG you cannot open, ask for DXF instead. It holds the same drawing, Autodesk documents it publicly, and nearly every CAD program reads it properly.

Programs that open .dxf

Taken straight from publisher manifests. Some of these handle the format for a narrow purpose rather than as their main job.

Common questions

How do I open a DXF file for free?
LibreCAD for 2D drawings and FreeCAD for 3D, both free on Windows, macOS and Linux. Because Autodesk publishes the DXF specification, support across free tools is much better than for DWG.
Is DXF better than DWG for sharing?
Yes. DWG is Autodesk's proprietary native format, while DXF is the documented interchange format. If a drawing has to open reliably outside AutoCAD, ask for DXF.

Related formats