What Is a .DXF File?

A .dxf file is a CAD drawing in Autodesk's Drawing Exchange Format, designed so drawings can move between AutoCAD and other programs. It stores lines, arcs, text, layers and blocks, usually as readable text. DXF is the common language of laser cutters, CNC routers and vinyl plotters.

Extension
.dxf
Full name
Drawing Exchange Format
Type
3D and CAD file
MIME type
image/vnd.dxf
Developed by
Autodesk

About DXF files

Autodesk introduced DXF with AutoCAD in 1982 as an open, documented companion to its native DWG format. Most DXF files are ASCII text made of numbered group codes and values, which is why almost every CAD, CAM and vector program can read and write them. A binary DXF variant exists but is rarely used.

Because it is text, DXF is larger than the equivalent DWG, often several times larger, and slower to load for big architectural drawings. Not every feature survives the trip: complex objects, custom fonts and some dimension styles may be simplified or lost, especially when the reading program supports an older DXF version.

DXF files are mostly 2D in practice. Laser-cutting and CNC shops ask for DXF because the format describes exact paths with real dimensions, unlike an SVG whose scale can be ambiguous. Always confirm the drawing units (millimeters or inches) with the shop, and close any open contours so the machine can follow them.

What DXF files are used for

  • Sending cut paths to laser cutters, waterjets, plasma cutters and CNC routers
  • Exchanging drawings between AutoCAD and other CAD programs
  • Importing floor plans into design and estimating software
  • Exporting outlines from Inkscape or Illustrator for fabrication

How to open a .dxf file

Windows

Autodesk's free DWG TrueView opens DXF as well as DWG. Free editors LibreCAD and QCAD, and Inkscape (File > Open), also read it.

Mac

LibreCAD, QCAD and Inkscape have Mac versions that open DXF files.

Online / any browser

Autodesk Viewer at viewer.autodesk.com displays DXF and DWG in the browser after you sign in with a free Autodesk account.

Linux

Install LibreCAD or QCAD from your package manager, or import into Inkscape or FreeCAD.

How to convert a .dxf file

To convert DXF to DWG, open it in DWG TrueView and use DWG Convert, or open and resave it in any AutoCAD-compatible editor.

For DXF to SVG or PDF, open the file in Inkscape and use File > Save As (SVG) or Save a Copy (PDF); check the scale afterwards.

Renaming .dxf to .dwg does not convert it; DWG is a different binary format.

Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.

Naming and renaming DXF files

  • Add material, thickness and units for fabrication jobs (panel-a-3mm-acrylic-mm.dxf) so the shop does not have to ask.
  • Include the DXF version when sending to older software (floorplan-r2000.dxf); many machines only read R12 or R2000 files.
  • Keep the same base name as the source DWG or SVG so exported DXFs are easy to trace back.

Renaming lots of .dxf files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.

Related file types

Frequently Asked Questions

What is the difference between DXF and DWG?

DWG is AutoCAD's compact native format; DXF is the open exchange format, usually text, that more programs can read.

Can I open a DXF file without AutoCAD?

Yes. DWG TrueView, LibreCAD, QCAD, Inkscape and Autodesk Viewer in a browser all open DXF files for free.

Why do laser cutters want DXF files?

DXF stores exact vector paths with real dimensions, which the cutter software converts directly into tool paths.

Can I convert a JPG to DXF?

Only by tracing it into vectors first, for example with Inkscape's Trace Bitmap, then saving as DXF. Renaming the file does nothing.

More 3d and cad file extensions · all file extensions