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
A .dwg file is a drawing created in AutoCAD, Autodesk's design software, and the most widely used CAD format for architecture, engineering and construction. It stores precise 2D and 3D geometry, layers, dimensions and blocks in a compact binary form. Free viewers such as DWG TrueView and Autodesk Viewer open it.
A .svg file is a Scalable Vector Graphics image: a text file written in XML that describes shapes, paths and text rather than pixels. SVGs stay perfectly sharp at any size, are usually tiny, and display in every web browser, which makes them the standard format for logos, icons and web illustrations.
A .stl file is a 3D model that describes the surface of an object as a mesh of triangles. It is the standard format for 3D printing: slicer apps such as PrusaSlicer, Cura and Bambu Studio read STL files and turn them into printer instructions. STL stores shape only, with no color, texture or units.
A .ai file is an Adobe Illustrator artwork file, the native format for vector graphics created in Illustrator. It stores shapes, paths, text and artboards that scale to any size without losing quality, which is why logos and print designs are often delivered as AI files. Fully editing one requires Illustrator or a compatible vector editor.
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.