A DXF file is a vector CAD drawing saved in Autodesk's Drawing Exchange Format (.dxf). The DXF file format records lines, arcs, text, layers and dimensions with exact coordinates, so cutting software can turn the drawing into a cutting path. Because Autodesk has published the format since AutoCAD 1.0 in 1982, according to the Library of Congress format record, almost every CAD program and most cutting software can open it.

But a file that looks right on your screen can still fail at the shop. It can open 25.4 times too large or too small because inches and millimeters got mixed up, show up blank, or cut the same line twice.

Most of these errors come from a handful of export settings. But luckily, you can catch them before the file leaves your desk.

In this guide, you'll learn:

  • What a DXF file contains and what it is used for
  • How DXF compares with DWG and other CAD formats
  • Which export settings cause the most common DXF errors
  • How to send a DXF a supplier can quote and cut

First, here is what a DXF file actually is.

TL;DR / Key Takeaways

  • A DXF file is a vector CAD drawing in Autodesk's Drawing Exchange Format. It stores lines, arcs, text and layers with exact coordinates, so software that reads DXF can rebuild the drawing at its true size
  • DXF supports 3D entities, but manufacturing use is overwhelmingly 2D. Laser, plasma, waterjet, routing and sheet metal flat patterns are its home
  • DXF is publicly documented and Autodesk-controlled. The DXF Reference is free to read; Autodesk alone decides what each version contains
  • Most DXF problems come down to units, versions or messy geometry. A 25.4× size error almost always means inches and millimeters got swapped
  • A DXF describes shape, not manufacturing requirements. Material grade, sheet thickness, tolerances, threads and finish belong in a PDF drawing or the RFQ

Get quotes from verified factories on Haizol

What Is a DXF File?

A DXF file is a CAD drawing saved in Drawing Exchange Format, a vector format Autodesk created so other software can read and write AutoCAD drawings. Each object in the file, such as a line, an arc or a text label, is stored as coordinates and properties a program can rebuild exactly.

DWG is AutoCAD's native drawing format, and DXF is its exchange counterpart. That is why CAM, nesting and machine software import DXF far more consistently than DWG.

What Does DXF Stand For?

DXF stands for Drawing Exchange Format, and Autodesk's documentation also calls it Drawing Interchange Format. The meaning of DXF is literal: the format exists to exchange drawings between programs that do not share a native file type. DWG, AutoCAD's native format, simply stands for “drawing.”

Are DXF Files 2D or 3D?

DXF files can be 2D or 3D, but almost every DXF used in manufacturing is 2D. The format includes 3D entities such as 3DFACE, MESH and 3DSOLID, yet few machines or CAM workflows use the third dimension. 3DSOLID also stores its solid data in an encoded form that most non-Autodesk software cannot read.

When 3D CAD software saves a part as DXF, it often produces a set of flat views or a surface made of small triangles, neither of which can be edited like the original 3D model. For editable 3D geometry, the STEP file format, IGES file format or Parasolid file format is the better choice; native SOLIDWORKS parts are saved as SLDPRT files.

Is DXF an Open Format?

The DXF file format is publicly documented but controlled by one company, Autodesk. Autodesk publishes the DXF Reference for free, so anyone can write software to read or write DXF. It is sometimes described as open-source, but no open license or standards body governs it, and Autodesk alone defines each new version.

That puts DXF in the middle: more accessible than DWG (which Autodesk does not publicly document), but less neutral than STEP, an international ISO standard (ISO 10303) that no single company controls.

What Information Does a DXF File Contain?

The DXF file format stores the drawing as editable data: geometry, text and dimensions, layers and styles, blocks, header settings, and optionally a thumbnail preview. A program that opens it rebuilds every object, so you can select, measure, and change each line.

What DXF file stores

What DXF file includes

Why it matters for manufacturing

Geometry

Lines, arcs, circles and curves that make up the part's shape

The path a laser cutter or router follows

Layers

Named groups of objects, each with its own color and line style

Shops often put cut, etch (marking) and bend lines on separate layers so each is handled differently

Blocks

Reusable groups of objects, such as a repeated hole pattern

Some cutting software cannot read blocks until they are broken back into individual lines ("exploded")

Text

Notes and labels, each tied to a font

If the recipient does not have the font, the lettering can shift or change

Dimensions

Measurements drawn on the part, such as lengths and hole sizes

Cutting software usually ignores or removes them, so they do not replace a drawing

Header settings

File-wide settings, such as the DXF version and the units (millimeters or inches)

A missing units setting is the most common reason a part opens at the wrong size

How Is a DXF File Structured?

The DXF file structure is a list of pairs: a numeric group code on one line and its value on the next. The code tells the reading program what the value means, such as 8 for a layer name or 10 for an X coordinate, as listed in Autodesk's group code reference.

The pairs sit in up to 7 sections, each opened by 0 SECTION and closed by 0 ENDSEC:

  • HEADER: file-wide settings, such as the DXF version and the units
  • CLASSES: definitions for special object types added by other software
  • TABLES: shared settings: layers, line styles, text styles and dimension styles
  • BLOCKS: definitions of reusable groups of objects (blocks), such as a repeated hole pattern
  • ENTITIES: the visible drawing itself: lines, arcs, circles, curves and text
  • OBJECTS: behind-the-scenes data that is not drawn, such as page layouts and saved settings
  • THUMBNAILIMAGE: an optional preview image

A simple 2D file from an older program may contain only HEADER, TABLES, BLOCKS and ENTITIES.

AutoCAD ASCII vs Binary DXF Files

AutoCAD saves DXF files in two encodings, ASCII and binary, and the choice affects readability, file size and compatibility. ASCII DXF is plain text; binary DXF stores the same data in compact machine-readable form. According to Autodesk's page on binary DXF files, AutoCAD Release 10 (1988) was the first version to support it.

What to compare

ASCII DXF

Binary DXF

Readable in a text editor

Yes

No. After a first line reading "AutoCAD Binary DXF", the rest looks like scrambled characters

File extension

.dxf

.dxf (the same, so the file name does not tell you which one you have)

File size

Larger

About 25% smaller, per Autodesk

Decimal precision

Can be slightly rounded, depending on export settings

Keeps full precision

Support in cutting and machine software

Read by almost all programs

Some programs cannot read it

A quick test: a DXF that shows unreadable characters in Notepad is binary, while an ASCII file shows readable text such as SECTION and HEADER. Send shops ASCII unless they ask otherwise.

What Is a DXF File Used For?

A DXF file moves drawings and 2D profiles between programs that don't share a native format, and feeds those profiles into cutting equipment. The details vary by industry, but the job is always exchange.

  • Laser cutting, CNC routing and sheet metal parts: closed outlines to cut, holes, the unfolded shape of bent parts (flat patterns) and bend lines
  • Sharing drawings between CAD programs: 2D drawings with their layers, reusable blocks, notes and dimensions
  • Engineering and product design: part outlines and 2D views taken from 3D models
  • Architecture and construction: floor plans, side views of buildings (elevations) and site layouts
  • Mapping (GIS) and surveying: survey points, terrain contour lines and property boundaries
  • Signage, engraving and vector artwork: logos, lettering and decorative shapes

In Haizol's network of laser cutting suppliers, DXF is the standard file for cut outlines, and the same flat-pattern DXFs (the unfolded outline of a bent part) are also used to program punching machines. Laser cutting and punching are the sheet metal fabrication techniques that most often start from a DXF, and most laser cutting suppliers can quote from one.

The machine rarely cuts from the DXF as it is. CAM or nesting software, sometimes built into the machine's own control software, reads the geometry, offsets the path for the cut width (the kerf), adds the cutting strategy, and then writes the machine program.

How to Open and Edit a DXF File

Opening a DXF only needs a viewer; editing it requires a 2D CAD program. So the first step is deciding whether you only need to look at the file or change it.

  1. To view or measure: open the file in a free viewer such as Autodesk Viewer or DWG TrueView
  2. To edit: open it in a CAD program with full DXF support, such as AutoCAD (the OPEN command) or LibreCAD (File > Open)
  3. To reuse in 3D CAD: import it as a sketch in SOLIDWORKS, Fusion, Inventor or FreeCAD, then model from it

What Programs Can Open DXF Files?

Which program opens DXF files best depends on the job: viewing, 2D editing, 3D reuse or artwork.

Program

What it can do

Runs on

Cost

Limits with DXF files

AutoCAD / AutoCAD LT

Full editing

Windows, macOS

Paid

None: it is Autodesk's own software

DWG TrueView

View, measure and print; converts DWG files to older versions

Windows

Free

Cannot edit drawings; can only save converted copies

Autodesk Viewer

View, measure, mark up

Web browser

Free

Files are uploaded to Autodesk's cloud

LibreCAD

2D editing

Windows, macOS, Linux

Free, open-source (GPLv2)

2D only

FreeCAD

Imports DXF outlines to build 3D models

Windows, macOS, Linux

Free, open-source

Built for 3D modeling, not DXF editing; FreeCAD's own docs recommend LibreCAD or QCAD for editing DXF files

Inkscape / Illustrator

Artwork editing

Inkscape: Windows, macOS, Linux; Illustrator: Windows, macOS

Inkscape free; Illustrator paid

Check the size after opening; layers may merge into one

A free DXF viewer is enough to check a file; changing it needs an editor. However, keep in mind that uploading a customer drawing to a browser viewer is also a confidentiality decision you should make intentionally.

Can You Edit a DXF File?

A DXF file is fully editable in a 2D CAD program: geometry, dimensions, text and layers can all be changed. Three things limit how easily it can be edited.

  • Dimensions may arrive exploded into loose lines and text, so they do not update when geometry changes
  • Blocks need exploding before their contents can change on their own
  • Text can reflow when the recipient's machine substitutes a missing font

For free 2D editing, LibreCAD and QCAD are the usual choices, since both use DXF as their working format; AutoCAD covers heavier editing.

How Do You Create a DXF File?

To create a DXF file, save or export one from the program the part was drawn in and choose DXF as the file type. Most programs that export DXF also ask what to include, and that choice matters more than the menu path: a laser shop needs only the cut profile.

Saving or Exporting a Drawing as DXF

You can save or export a drawing as DXF from 4 different sources, and each produces a different file:

  • A drawing sheet: 2D views of the part, dimensions, notes, the border and the title block (the box with the part name and revision). Use it for documentation and review, not cutting, because borders and notes would be cut as lines
  • A sketch: only the lines and curves of the sketch. Best for simple flat outlines
  • A face of a 3D part: the outline and holes of one flat face. Best for plates and brackets
  • A sheet metal flat pattern: the part unfolded flat, often with bend lines on a separate layer. Best for bent sheet metal parts

In SOLIDWORKS, exporting a face or flat pattern directly from the part keeps title blocks and dimensions out of the cutting file, which is the usual advice for SOLIDWORKS users preparing laser-cut parts.

Which DXF Export Settings Should You Choose for Custom Parts?

The right DXF export settings are the ones the recipient's software reads reliably, so ask before exporting.

Setting

What to confirm

Why it matters

Version

What the recipient supports (R12, 2000, 2013, 2018)

Older software skips newer entities, sometimes silently

ASCII or binary

ASCII unless told otherwise

Binary support is inconsistent

Units

Millimeters or inches, matching the drawing

Prevents 25.4× scale errors

Splines

Keep, or convert to arcs and polylines

Some cutting software cannot read splines, and R12 has no spline entity at all

Layers

One cut layer, or the recipient's layer names

Shops often program by layer

Export scope

Geometry only, or the full sheet

Borders and notes become unwanted cuts

What Should You Check After Exporting?

After exporting, open the DXF in a second program and check the file itself. This checklist catches most problems before a supplier does:

  1. Units and overall size: measure a known dimension and the overall part
  2. Closed contours with no self-intersections
  3. No duplicate lines, which make a laser cut the same path twice
  4. Everything flat at zero height (Z=0), so CAM software can join lines into closed shapes
  5. Origin in the right place
  6. No stray objects far from the part, which shrink the part to a dot on screen
  7. Text not substituted or mirrored

How Do You Convert a DXF File?

To convert a DXF file, open it in a program that reads DXF and save or export it in the destination format. Most programs handle 2D-to-2D conversions in one step. 3D destinations need modeling work first.

  • To DWG or another DXF version: save as DWG from AutoCAD or another program that writes DWG. To save as an older DXF version, AutoCAD, LibreCAD and most 2D CAD programs work
  • To PDF: print to PDF from any CAD program. Good for review and for sending alongside the DXF, but a PDF is not a CAD file and cannot be cut from directly
  • To SVG or PNG/JPG: export from Inkscape, Illustrator, LibreCAD or other CAD software. SVG keeps exact lines; PNG and JPG turn the drawing into pixels, so exact sizes are lost
  • To STEP or STL: a 2D DXF is flat, with no thickness. Import it into 3D CAD as a sketch, extrude it (give it a thickness) to make a solid, then export STEP or STL

The 3D case trips people up most. Anyone asking how to 3D print a DXF is really asking how to build a model from the outline, which no file converter does.

Can You Convert a PDF or Image to DXF?

You can convert a PDF or image to DXF, but the result depends on what the source contains. Vector content converts cleanly; scanned content has to be traced or redrawn.

  • PDF exported from CAD software (vector PDF): import it with AutoCAD's PDFIMPORT command or Inkscape, then measure one known dimension and scale the drawing to match. A PDF stores only the page size, so the drawing's original units and scale don't carry over and the imported part usually arrives at the wrong size
  • Scanned PDF, photo or other image: trace it with a tool that turns pixels into lines, such as Inkscape's Trace Bitmap, or redraw the important shapes by hand in CAD
  • PDF with both CAD lines and scanned pages: import the CAD lines, then trace or redraw the scanned parts

 

What Are the Advantages and Limitations of the DXF File Format?

DXF's biggest advantage is that nearly every CAD, CAM and cutting program reads it; its biggest limitation is that it carries geometry without manufacturing intent. Each benefit comes with a qualification.

DXF File Format Advantages

  • Wide support: read by almost every CAD program and most cutting software, though older programs may not read newer objects, so older DXF versions are often safer
  • Publicly documented: anyone can read the specification, but Autodesk controls the format
  • Readable as text: standard (ASCII) files open in a text editor, but they are larger than binary DXF
  • Exact sizes and positions: accurate only if the units are set in the file and the receiving software uses them
  • Free viewers and editors: widely available, though some free tools skip objects they do not recognize

DXF File Format Limitations

  • No manufacturing requirements: material, sheet thickness, tolerances, threads and finish cannot be stored in a form machines read (notes can be added as text, but cutting software ignores them), so a factory cannot quote from the shape alone
  • Units can be missing or ignored: parts can open 25.4 times (inches vs millimeters) or 1,000 times (millimeters vs meters) too large or too small
  • Limited 3D support: 3D parts are better sent as STEP or Parasolid files
  • No design history: without the editable steps a 3D CAD model keeps, changes mean editing lines one by one instead of changing a dimension
  • Curves can break into segments: after export to R12, which has no spline or ellipse entities, or after conversion from a PDF or image, curves can arrive as hundreds of short straight lines, causing rougher, slower cutting and extra cleanup work

 

Why a DXF File Will Not Open or Display Correctly

A DXF that will not open or displays wrongly usually has hidden layers, a units mismatch, unsupported entities, messy geometry, or a version the program cannot read. When a DXF file will not open or looks wrong, start from the symptom.

What you see

Likely cause

What to try first

Blank drawing

Hidden ("off" or "frozen") layers; the part sits far from the drawing's starting point

Turn on and unfreeze ("thaw") all layers, then use Zoom Extents to fit everything on screen

Part is 25.4 or 1,000 times too large or too small

Inches and millimeters (or millimeters and meters) mixed up; the file's units setting is missing or ignored

Choose the units by hand when opening the file, then measure one known dimension

Missing geometry or altered text

Objects newer than the software; objects created by add-on software (proxy objects); missing fonts

Ask the sender to export an older DXF version, convert add-on objects to plain lines, and turn text into outlines before sending

Shape looks broken in the cutting software

Outlines with gaps, lines drawn twice, curves the software cannot read, or parts not lying flat (not at Z=0)

Close the gaps, delete the duplicate lines, convert curves to arcs and lines, and flatten everything to Z=0

File will not open

Version newer than the software; a binary DXF sent to software that only reads standard (ASCII) files; incomplete download

Ask for an older ASCII file; download it again

What Should You Check Before Sharing a DXF File?

Before sharing a DXF file, check the whole delivery package: what the recipient needs, the manufacturing information the DXF cannot carry, matching revisions, supporting files and what to disclose. A technically valid DXF still is not enough for a supplier to quote a part.

What exactly a factory needs besides the file is one of the questions buyers ask Haizol most often, and the answer depends on the recipient. Machinists want different things: some ask for a drawing, some a DXF and some a solid model, so confirm before sending.

  • Recipient requirements: the file types, DXF version, units and layer names the recipient asked for
  • Manufacturing specifications: material grade, sheet thickness, critical tolerances (or a general tolerance standard such as ISO 2768), threads, inserts or other hardware, bend direction and finish, written on a PDF drawing or in the RFQ notes
  • Quantities and certifications: prototype quantity and expected production volume, any required certifications (such as ISO 9001), and the delivery country
  • Revision consistency: the same revision on the DXF, the drawing and the RFQ
  • Supporting files: a PDF drawing for tolerances and notes. For bent sheet metal parts, ask whether the factory wants a flat pattern DXF or a 3D STEP model it can unfold using its own bending data
  • Disclosure: only the files a quote needs, plus an NDA or NNN agreement for sensitive designs
  • Final delivery: every file opens correctly on a second computer

Disclosure matters most when drawings go overseas. Buyers sending drawings to China are regularly advised to use an NNN agreement (non-disclosure, non-use, non-circumvention) and share only what a quote requires; the difference is covered in NNN agreement vs NDA.

Sending a DXF File for a Quote

The DXF format has lasted more than 40 years because almost every CAD program and cutting tool can read it. That reach only pays off when the file arrives clean, so before you send it, run one last check:

  • Units and version: the ones the shop asked for
  • Geometry: closed outlines with no duplicate lines
  • Drawing: a PDF with the material, sheet thickness, tolerances and finish the DXF can't carry

With those three in place, a laser cutting or sheet metal factory can quote your part without coming back to you with questions.

Ready to see what your part costs? Submitting an RFQ on Haizol is free for buyers. Upload your DXF and PDF drawing, then choose who can open them: no NDA, Haizol's digitally signed platform NDA, or your own NDA that each factory must sign before opening the files. 90% of RFQs receive quotes from 8 or more verified factories, and the first quotes typically arrive within 24 hours.

DXF File Format Frequently Asked Questions (FAQ)

Is a DXF file the same as a CAD file?

A DXF file is one type of CAD file. "CAD file" covers native formats such as DWG and SLDPRT and exchange formats such as DXF and STEP.

Which is better, DXF or DWG?

DXF is better for sending drawings to other programs and cutting shops; DWG is better for working inside AutoCAD.

Can you 3D print a DXF file?

A DXF file cannot be 3D printed directly, because slicers need a mesh such as STL or 3MF. Extrude the DXF into a solid in CAD first, then export STL or 3MF.

Is a DXF a vector file?

A DXF is a vector file: it stores geometry as coordinates and shapes, so it scales without losing precision.

Can a DXF file contain tolerances?

A DXF file can show tolerances as dimension or text objects, but cutting software reads geometry at nominal size and ignores them. Tolerances belong on a PDF drawing or in the RFQ.

What DXF version should I export?

Export the version the recipient's software reads reliably. R12 and 2000 are common safe choices for older machine software.

Does a DXF file have units?

A DXF file can declare units in its header, but the setting may be blank (unitless) and some programs ignore it. State the units in the file name or RFQ as well.

Can you open a DXF file without AutoCAD?

A DXF file opens without AutoCAD in free tools such as DWG TrueView, Autodesk Viewer, LibreCAD and FreeCAD. SOLIDWORKS, Fusion and Inventor also import DXF.