What Is a DXF File? Drawing Exchange Format Explained

A DXF file is Autodesk’s open, text-based CAD format for sharing 2D and 3D drawings between programs. Learn how to open DXF files and convert them to PDF.

A DXF file is a CAD drawing saved in Drawing Exchange Format, the open, text-based format that Autodesk created so that AutoCAD drawings could be shared with other programs. It stores the same lines, arcs, text and layers as a DWG file, but in a documented structure that laser cutters, CNC software, GIS tools and graphics editors can read. Almost every CAD program opens DXF; to view or print one without CAD, convert the DXF to PDF.

What is a DXF file?

Autodesk introduced DXF in December 1982 together with AutoCAD 1.0. The DWG format was, and still is, proprietary and binary, so Autodesk published DXF as the readable twin: every object in the drawing written out as pairs of lines, a numeric group code followed by a value. Autodesk keeps the DXF reference public, which is why the format became the common language of 2D CAD.

Property DXF file
Extension .dxf
Developer Autodesk (open specification)
File type ASCII text (a binary DXF variant exists but is rare)
Contains 2D and 3D vector entities, layers, blocks, text, dimensions, linetypes, drawing settings
Structure Sections HEADER, CLASSES, TABLES, BLOCKS, ENTITIES, OBJECTS
Opens with AutoCAD and all other CAD programs, LibreCAD, QCAD, FreeCAD, Inkscape, Illustrator, CAM and cutting software, CAD converters

DXF vs DWG

DWG is the compact binary master used inside AutoCAD. DXF is the exchange copy: larger on disk, sometimes missing AutoCAD-specific objects that other programs would not understand anyway, but readable everywhere. A DXF also carries a version: cutting and embroidery software frequently wants the old R12 DXF, which uses only basic entities, while a DXF saved from a recent AutoCAD may contain objects that a simple reader ignores. If a DXF import comes out empty, exporting again as R12 or R2000 usually fixes it. For 3D solids, CAD systems exchange STEP files rather than DXF.

Where DXF is used

  • Manufacturing: laser, plasma, waterjet and vinyl cutters and CNC routers take DXF outlines as tool paths.
  • Architecture and engineering: exchanging plans between AutoCAD, Revit, ArchiCAD, BricsCAD and civil tools.
  • Graphics: Inkscape and Adobe Illustrator import DXF to reuse technical line art.
  • GIS and surveying: QGIS and ArcGIS read and write DXF for site plans and survey data.
  • Sewing and crafts: pattern-making software and embroidery machines exchange shapes as DXF.

How do I open a DXF file?

  1. CAD software. AutoCAD, BricsCAD, DraftSight, ZWCAD and every other CAD program open DXF directly.
  2. Free programs. LibreCAD and QCAD are free 2D CAD editors built around DXF. FreeCAD imports DXF for 3D work. Inkscape imports it as vector art.
  3. Viewers. Autodesk DWG TrueView on Windows and the Autodesk Viewer website display DXF files without editing.
  4. A text editor. Because DXF is plain text, Notepad opens it. You see group codes and coordinates rather than a picture, which is useful for checking units or the file version in the HEADER section.

How do I convert a DXF file?

The most common request is a document that anyone can open. The DXF to PDF online converter renders the drawing as a vector PDF in the browser, and DXF to JPG produces an image for a web page or a slide. Going the other way, DWG to DXF turns an AutoCAD file into the open format for cutting software.

For whole projects, Total CAD Converter converts DXF, DWG, DWF, STEP and other CAD files to PDF, TIFF, JPEG, PNG, BMP, SVG and DXF in batch on Windows. You can set paper size, scale, line weights and colors, merge several drawings into one PDF, and run everything from the command line. Drawings are processed locally and never uploaded. The 30-day trial is free and asks for no card or email; a Personal license starts at $99.

Frequently asked questions

What program will open a DXF file?

Any CAD program: AutoCAD, BricsCAD, DraftSight, ZWCAD, and the free LibreCAD, QCAD and FreeCAD. Inkscape and Illustrator import DXF as vector graphics. To view it without CAD, convert the file with the online DXF to PDF converter.

Can you convert a DXF file to PDF?

Yes. The online DXF to PDF converter handles a single drawing in the browser. Total CAD Converter converts folders of DXF files to PDF on Windows, with control over page size, scale and line weights.

Is DXF the same as SVG?

No. Both are text-based vector formats, but DXF is a CAD format with layers, real-world units, blocks and dimensions, while SVG is a web graphics format measured in pixels or points with styling and no CAD semantics. Total CAD Converter converts DXF to SVG when a drawing has to go on a web page.

Can a PDF file be converted to a DXF file?

Only if the PDF contains vector line art, and even then the result needs cleanup: text becomes outlines and layers are lost. PDFs that hold scanned images must be traced or redrawn. Dedicated PDF to DXF tools exist, but the DXF to PDF direction is the reliable one.

What is the difference between DWG and DXF?

DWG is Autodesk’s proprietary binary format; DXF is the open text version of the same drawing data. DXF files are larger and may omit AutoCAD-only objects, but nearly every CAD, CAM and graphics program can read them.

Author: AlexBuzaev

Results-driven CEO with a proven track record of leading www.CoolUtils.com to sustained growth and innovation in the software industry. Skilled in strategic planning, team leadership, and product development, with a focus on enhancing user experience and delivering high-quality tools for file management and conversion. Recognized for fostering strong client relationships, driving operational excellence, and navigating complex challenges to achieve organizational goals.