Categories About Us Contact Us Become a Member

What Is a DXF File? Open It Free, Fix Scale Problems and Tell It From DWG

DXF files store CAD drawings as tagged data that other programs can read. Jump to your question below, or work through the page in order.

By Neeraj Singh ~21 min Updated Nov 2026 Checked against Autodesk, IANA, PRONOM and the Library of Congress
Short answer

DXF files hold CAD drawings in a format Autodesk created for exchange. DXF stands for Drawing Exchange Format. Autodesk introduced it with AutoCAD in December 1982 and still publishes the full reference online.

What sets a DXF file apart from DWG is openness. DXF stores ASCII text or binary data that any CAD program can read. DWG is the native format that AutoCAD edits.

Free software opens a DXF file in seconds. Autodesk Viewer, LibreCAD and FreeCAD cost nothing. Most failures trace back to version, scale or units. Section 5 sorts them.

1 What Is a DXF File? The Autodesk Exchange Format and What Sits Inside It

Your DXF file came from a client, a cutting shop or a parts library. You double click it and your computer offers nothing useful. The extension tells you almost nothing about what sits inside.

DXF stands for Drawing Exchange Format. Autodesk, the company behind AutoCAD, created it. Wikipedia's DXF article also lists Drawing Interchange Format as a name. Autodesk's own help says Drawing Interchange File.

The DXF format arrived with the first AutoCAD release in December 1982. The Library of Congress calls it proprietary but openly documented. Autodesk publishes the DXF Reference online at no cost.

Every DXF file stores its drawing as tagged data. Lines, arcs, circles, text, layers and blocks all sit inside with a numeric tag in front. Any CAD program can read those tags without owning AutoCAD.

Most DXF files carry flat 2D drawings. The reference also lists 3D entities including 3DSOLID, MESH and SURFACE. Parts outlines, sketches and cutter jobs all travel as DXF files.

DXF is the exchange copy of a drawing. Send DXF files to share the geometry with other CAD programs. Keep the DWG file when you still need to edit.

DXF file format at a glance

DXF file format at a glance
DXF file extension
.dxf
Stands for
Drawing Exchange Format
Made by
Autodesk, for AutoCAD
First release
December 1982, with the first AutoCAD
What a DXF file is
CAD drawing stored as tagged data
Two encodings
ASCII text and binary
Seven sections
HEADER, CLASSES, TABLES, BLOCKS, ENTITIES, OBJECTS and THUMBNAILIMAGE
Last pair of lines
0 then EOF
Media type
image/vnd.dxf, listed by IANA
Magic number
None. IANA says the extension is the only sign
Carries units
Partly. A header variable names the unit
Reference free to read
Yes. Autodesk publishes the DXF Reference

Came here to cut a part? Section 9 covers laser and CNC jobs. Section 7 fixes DXF files that open at the wrong size.

No. DWG is the native AutoCAD drawing format and DXF is the exchange copy. Renaming one to the other changes only the name.

2 Is a DXF File the Same as a DWG File? No. Renaming Will Not Fix It

Autodesk's DWG article calls DWG the native drawing format for AutoCAD. It stores 2D geometry and 3D model data. The same article says DXF mainly moves drawing data between different CAD programs.

How a DXF file and a DWG file differ.
QuestionDXF fileDWG file
Main jobExchange between CAD programsCreate and edit drawings in AutoCAD
Stored asASCII text or binary dataProprietary binary, says Wikipedia
How you spot itReadable text. No magic numberFirst six bytes start with AC plus four digits
Version label$ACADVER in the HEADER sectionThe same style of code at the start of the file

The version codes match. AutoCAD 2018 uses AC1032 for DWG files and for the DXF header. Wikipedia's DWG article lists the DWG side. Autodesk lists the DXF side.

AutoCAD opens your DXF file and saves it as DWG in two steps. After that you work with the drawing like any other. Autodesk documents the step in its import and export help.

Renaming part.dwg to part.dxf changes only the name. The bytes stay DWG. A DXF reader rejects the file. Section 5 shows the first line that gives it away.

Send a DXF file when

The receiver uses other CAD software. Any program that reads the DXF format can open it.

Send a DWG file when

The receiver works in AutoCAD. DWG is the format AutoCAD saves natively.

Some makerspaces name the DXF format when they take cutter jobs. Section 9 covers that job.

DXF files are lists of pairs. A group code sits on one line and its value on the next. Seven named sections hold the pairs and code 0 with EOF ends the file.

3 What Is Inside a DXF File? Two Lines for Every Fact, Seven Sections and One EOF

Open your DXF file in Notepad and you read pairs of lines. The first line holds a group code, which is an integer. The next line holds the value. Autodesk's group code page describes the layout.

Anatomy of a shortened DXF file from top to bottom. The first block is the HEADER section. It holds five pairs of lines. Code 0 and SECTION open the section, code 2 and HEADER name it, code 9 and $ACADVER start a variable, code 1 and AC1032 give its value, and code 0 and ENDSEC close the section. The second block is the ENTITIES section. After the opening pairs, code 0 and LINE start a line entity. Code 8 names the layer, codes 10 and 20 give the start point, and codes 11 and 21 give the end point. Code 0 and ENDSEC close the section. The third block is a single pair, code 0 and EOF, which ends the file. Notes beside each block explain what that part does. A real file also holds the CLASSES, TABLES, BLOCKS and OBJECTS sections, and a LINE carries codes 30 and 31 for height.
Every fact takes two lines. Code 0 starts each new item.

Code 0 starts every new item. It names a section, a table entry, an entity or the end of the file. A LINE entity lists a start point under codes 10, 20 and 30 and an end point under codes 11, 21 and 31, says the LINE reference.

The seven sections of DXF files

The seven sections of DXF files in file order.
SectionWhat it holds
HEADERGeneral drawing information as variable and value pairs. Every variable starts with code 9 and a name that begins with $
CLASSESApplication defined classes
TABLESSymbol tables including LAYER, LTYPE, STYLE, VIEW and VPORT
BLOCKSBlock definitions that INSERT entities reuse
ENTITIESThe drawing itself. Lines, arcs, circles, text, hatches and polylines
OBJECTSData that has no shape, like dictionaries and layouts
THUMBNAILIMAGEA preview picture. The only optional section

Every section opens with code 0 and the word SECTION. Code 2 then names it. Code 0 and the word ENDSEC close it, as Autodesk's file structure page shows.

The file ends with code 0 and the word EOF. The PRONOM signature for ASCII DXF uses the section markers together with that closing pair.

ASCII DXF files and binary DXF files

DXF files come in two encodings. Autodesk treats the plain words DXF file as the ASCII version. Binary DXF holds the same information in a different form.

ASCII DXF compared with binary DXF, from Autodesk's documentation.
TraitASCII DXFBinary DXF
Starts withPairs of text linesA 22 byte sentinel that reads AutoCAD Binary DXF then CR, LF, SUB and NULL
SizeThe baselineAbout 25 percent smaller
Speed in AutoCADThe baselineAbout five times faster to read and write
PrecisionSet by decimal places, up to 16Keeps the accuracy of the drawing database
Comments (code 999)AllowedNot used
Readable in NotepadYesNo. Only the sentinel reads as text
IntroducedWith the first AutoCADAutoCAD Release 10. Earlier releases cannot read it

Binary DXF keeps the .dxf extension. Autodesk says AutoCAD spots a binary DXF file by the sentinel when you open or insert it. Autodesk's binary DXF page has the byte layout.

How to read DXF files in Notepad

1 Open the DXF file in Notepad or TextEdit. VS Code works too. You need no CAD program for this check.
2 Read the first pairs. Expect code 0 then SECTION. A code 999 comment line can come first.
3 Find the version. Search for $ACADVER. The code on the next line after group code 1 is the version.
4 Jump to the end. Press Ctrl+End. The last pair should be 0 then EOF.

Leave the text alone in a plain editor. Programs read the file in pairs. One deleted line shifts every pair after it. Change the drawing in a CAD program and save a new DXF file instead.

Autodesk Viewer, DWG TrueView, LibreCAD and FreeCAD all open DXF files at no cost. Start with the browser viewer when you only need to look.

4 What Opens a DXF File for Free? Browser Viewers First, Then 2D and 3D Editors

Three jobs bring people to DXF files. You want to look at the drawing, measure it or edit it. Every job calls for a different program.

Free software that opens DXF files

Free ways to open DXF files and what every one does best.
SoftwareCostWhy select it
Autodesk ViewerFree in a browserAutodesk's viewer page lists DXF and says the viewer works with over 80 file types
DWG TrueViewFree, Windows onlyAutodesk lists DWG and DXF for it. Nothing to buy
LibreCADFree, open sourceLibreCAD's FAQ lists DXF versions R12, R14, 2000, 2004 and 2007
FreeCADFree, open sourceFreeCAD's feature list names DXF and DWG among its formats
InkscapeFree, open sourceInkscape 1.2 release notes say DXF import supports more features
Text editorBuilt inShows the group codes and the version. Does not draw the shape
Only need to look?

Autodesk Viewer in a browser. Load the file and zoom.

Need to measure or edit?

LibreCAD or FreeCAD. Both import the lines as editable geometry.

Autodesk's viewers page explains the split. Autodesk Viewer and AutoCAD Web work in the browser. DWG TrueView and Design Review are Windows downloads.

LibreCAD describes itself as a free open source CAD application for Windows, Apple and Linux. Its FAQ adds a warning. LibreCAD does not support every Autodesk DXF feature.

AutoCAD itself opens both kinds of DXF file. Autodesk says OPEN and INSERT detect a binary DXF file from the sentinel. You never choose the type by hand.

Browser viewers need an upload. Keep client drawings with private dimensions in an offline program like LibreCAD.

If a double click shows an error instead of a prompt, our Windows error guides start from the message you see. Mac readers can start with our macOS guides.

Notepad gives you a harmless first look. Open the DXF file in it. If the first pairs read 0 then SECTION you hold a real DXF file and the rest of this page applies.

Open the DXF file in Notepad and look at its first and last lines. They show whether the file or the program is at fault.

5 Why Will My DXF File Not Open or Look Blank? Five Causes and a Text Editor Check That Sorts Them

Most failures trace back to the program rather than the DXF file. Test the quick causes before the rare ones.

A decision chart for a DXF file that will not open. Start by opening the DXF file in a text editor. Four outcomes follow. If you see readable pairs of lines that begin with 0 and SECTION and end with 0 and EOF, the DXF file is complete, and you should check the version, the units and the drawing extents next. If the first line reads AutoCAD Binary DXF, the file is binary DXF, and you should save an ASCII copy for programs that struggle with it. If the file starts with the letters AC and four digits and then looks like noise, it is a DWG file with a DXF name, and you should open it as DWG. If the lines are readable but the closing 0 and EOF pair is missing, the copy stopped early and you should fetch the file again.
Two minutes in a text editor sorts the file from the program.

Downloads sometimes save a web page under the DXF file name. A first line that begins <!DOCTYPE html> gives it away. Download the link again after you sign in to the supplier site.

Five reasons your DXF file refuses to open

Nothing on your computer claims .dxf A double click shows a chooser because no CAD program registered the extension. Install a viewer from section 4 and select it once.
It is not a DXF file at all A DWG file renamed to .dxf starts with AC and four digits. A saved web page starts with HTML. The first bytes tell you in seconds.
The copy stopped early The closing pair 0 and EOF is missing because the download or transfer ended halfway. Fetch the file again. No tool can rebuild lost entities.
Your program is older than the file LibreCAD's FAQ lists DXF versions R12 to 2007. A program with a short list can reject a newer save. Section 6 shows how to read the version and save an older one.
The drawing holds objects your program lacks The reference lists proxy entities, 3D solids, meshes and surfaces. Ask the sender for a 2D export when the job needs only lines.
1 Open the DXF file in Notepad or TextEdit. Read the first two lines. They should be 0 and SECTION.
2 Go to the end of the file. Press Ctrl+End. The last pair should be 0 and EOF.
3 Read the version. Search for $ACADVER. Section 6 decodes the value.
4 Try a second program. LibreCAD and Autodesk Viewer use different readers. A file that fails in one can open in the other.

Why your DXF file opens blank

A blank window does not mean an empty file. Entities can sit far from the origin or on a layer that is switched off. Zoom to extents before you decide anything.

Four reasons a DXF file shows nothing and the fix for every one.
CauseWhat the file holdsWhat to do
Layer is offAutodesk says a negative color number (code 62) means the layer is offSwitch the layer on
Paper space onlyEntities carry code 67 with value 1. Model space entities carry 0 or no codeOpen the layout tab
Far from the originThe header lists the drawing corners as $EXTMIN and $EXTMAXZoom to extents
Wrong scaleCoordinates are plain numbers with no unitSee section 7

Autodesk documents codes 62 and 67 on its common entity codes page. The header corners come from the header variable list.

Skip paid DXF repair offers. A file without its EOF pair lacks data. No repair tool restores missing lines. Download a new copy or ask the sender to export again.

The $ACADVER value in the HEADER section names the version. AC1032 is the newest code in Autodesk's table and matches the AutoCAD 2018 format.

6 Which Version Is My DXF File? AC1009 to AC1032 and How to Read the Code

Every DXF file carries a version code. Look for the header pair 9 then $ACADVER. The value after group code 1 is the code.

The $ACADVER codes in Autodesk's header reference and the AutoCAD release behind every one.
$ACADVER codeAutoCAD release
AC1006Release 10
AC1009Release 11 and Release 12
AC1012Release 13
AC1014Release 14
AC1015AutoCAD 2000
AC1018AutoCAD 2004
AC1021AutoCAD 2007
AC1024AutoCAD 2010
AC1027AutoCAD 2013
AC1032AutoCAD 2018

Autodesk lists these codes with the $ACADVER variable on its header variable page. The Library of Congress record counted 32 chronological DXF versions in PRONOM in 2024.

A to scale timeline from 2000 to 2026 with six horizontal bars. Each bar starts when AutoCAD first wrote a version code and ends when the next code arrived. AC1015 starts with AutoCAD 2000 and lasts four years. AC1018 starts with AutoCAD 2004 and lasts three years. AC1021 starts with AutoCAD 2007 and lasts three years. AC1024 starts with AutoCAD 2010 and lasts three years. AC1027 starts with AutoCAD 2013 and lasts five years. AC1032 starts with AutoCAD 2018 and is still in use in 2026, so its bar is the longest. A note under the chart lists the older codes AC1006, AC1009, AC1012 and AC1014.
One code now covers eight years of releases.

The newest code lasts longest. Autodesk says AutoCAD 2019 through 2026 still save drawings in the AutoCAD 2018 format. Expect AC1032 in DXF files from those releases. Autodesk's native format note has the wording.

Binary DXF began with Release 10. Wikipedia dates Release 10 to October 1988. Earlier releases wrote ASCII only.

Saving your DXF file for an older program

Open the file in AutoCAD and save a copy in an earlier DXF format. Autodesk documents an AutoCAD R12/LT2 DXF option. Save under a new name, because older formats strip detail.

Hatches and lightweight polylines change Autodesk says the R12 option converts them to Release 12 types.
Solids and regions become simple shapes They become lines, arcs and circles, per Autodesk.
Layouts disappear Multiple layouts are lost. Only the Model tab and the current layout stay.
Names get cut Spaces in layer and object names become underscores. Names stop at 32 characters.

Autodesk lists these limits on its page on saving to earlier formats. Test the old copy before you send it.

DXF coordinates are plain numbers with no unit attached. A header variable names the intended unit. A size ratio of 25.4 or 1000 names the mix up.

7 Why Does My DXF File Open at the Wrong Size? Unit Codes, Size Ratios and a Test Box

Look at the sample in section 3. A LINE ends at 100.0 and 50.0. Those numbers do not say inches or millimeters. The unit lives in the header.

Autodesk's header reference lists $INSUNITS under group code 70. It describes the variable as the default drawing units for DesignCenter blocks. The same page lists $MEASUREMENT, where 0 means English and 1 means Metric.

The $INSUNITS values you meet most, from Autodesk's header reference.
ValueUnit
0Unitless
1Inches
2Feet
4Millimeters
5Centimeters
6Meters
21US Survey Feet

The full table goes from 0 to 24 and includes microns, yards and light years. A value of 0 means the file names no unit. Check the import dialog for a unit setting and set the one you expect.

LibreCAD's setup guide says the default unit is millimeter and that you can change it in preferences.

Size ratios that name the mix up

Size ratios and the unit mix up behind every one.
Ratio you seeWhat went wrong
25.4 times offInches were read as millimeters, or the reverse
1000 times offMeters were read as millimeters, or the reverse
10 times offCentimeters were read as millimeters, or the reverse
304.8 times offFeet were read as millimeters, or the reverse

Measure one edge you know and divide. The ratio points to the pair of units. Scale the drawing in your program or ask the sender to export it with the unit set.

Test your DXF file with a known box

1 Draw a box of known size around the part. The RIT makerspace gives this advice for laser jobs because scale standards differ between programs.
2 Import the DXF file. Choose the unit you expect in the import dialog.
3 Measure the box. Compare the number on screen with the size you drew.
4 Scale until the box matches. Delete the box before you cut or print.

The RIT laser cutting guide says to draw a box of known size and scale the design until the outer dimensions match.

Empty window with no error? Use Zoom to Fit first. A drawing in the wrong unit can sit far off screen or shrink to a dot.

Open the DXF file in a CAD program and save or export it in the format you need. AutoCAD handles DXF to DWG. LibreCAD, FreeCAD and Inkscape cover the free routes.

8 How Do You Convert a DXF File to DWG, PDF or SVG? Open It in CAD Software, Then Save in the New Format

Every conversion starts in CAD software. You open the DXF file there and save or export it in the format you need.

1 Open the DXF file in a program from section 4. Check that the drawing looks right and has the right size.
2 Choose Save As or Export from the File menu. The wording differs between programs.
3 Select the target format and a new file name. Never overwrite the original DXF file.
4 Open the new file and measure one known dimension. Match it against the original.

Converting DXF files to DWG, PDF, SVG and 3D formats

What happens to the drawing in every direction.
ConversionHow it worksWhat you get
DXF to DWGAutoCAD opens the DXF file and saves it as DWG, says AutodeskThe working format for AutoCAD
DWG to DXFAutoCAD saves DXF files. Options set ASCII or binary and decimal placesAn exchange copy for other programs
DXF to PDFLibreCAD's setup guide says output can be saved as PDFA flat drawing you can share. See our PDF file page
DXF to SVGInkscape imports DXF and saves SVGVector paths for editing or cutters
DXF to STEP, IGES or STLFreeCAD lists DXF, STEP, IGES and STL. Build a solid from the outline firstA 3D model. See STP files, IGS files and STL files
DXF to plotter filesPlotter software writes the instructionsSee PLT files and HPGL files

Exporting DXF files has choices. Autodesk's DXF options let you choose ASCII or binary and set the decimal places. You can also export only the selected objects. The Saveas options page lists them.

Lower precision gives smaller files. Binary gives smaller files again. Keep a high precision when the DXF file feeds a cutter that needs tight fits.

Saving a drawing as a picture fixes the lines into pixels. If you go that way, our PSD files, PCX files and TGA files pages explain the raster side.

Where a converted DXF file goes next

Where converted output goes and which FileFix guide covers the format.
Next stepFormat to exportGuide
Share a printPDFSee PDF files
Hand outlines to a sign makerVector artSee AI files, EPS files, CDR files and PostScript files
Review a design on videoScreen recordingSee MP4 video, MKV video and AVI video
Send a flat job to a shopDXFSection 9 lists the checks

Be careful with upload sites. DXF files can hold customer designs. Free web converters want the design uploaded to their servers. Keep confidential parts on your own computer.

Draw flat geometry at true size with closed outlines and no stacked duplicates. One university makerspace names DXF as the file its laser and waterjet need.

9 How Do You Prepare a DXF File for Laser Cutting or CNC? True Size, Closed Outlines and Clean Layers

The UIC makerspace names DXF as the vector format its laser and waterjet need. The same page warns that projected faces in an engineering drawing do not get cut. Export the face as DXF instead.

That advice matches how the DXF format stores a shape. A LWPOLYLINE keeps an X and a Y for every vertex. That suits flat outlines. Autodesk's LWPOLYLINE page lists the codes.

Three small squares side by side show how a cutter reads an outline. The first square is a closed outline. A closed polyline stores flag 1 in group code 70, and the path returns to its start. The second square is an open outline. Its top edge has a gap, so two loose ends sit apart, shown by red dots, and the flag is 0. The third drawing shows duplicate lines, two copies of one square drawn almost on top of each other, which makes a laser follow the same path twice.
Closed paths cut once. Gaps and doubles cause trouble.

Six checks before you send your DXF file to a cutter

1 Draw at true size. Work in millimeters or inches and write the unit in the file name. Section 7 explains why.
2 Close every outline. A closed LWPOLYLINE stores flag 1 in group code 70. A gap leaves two loose ends.
3 Delete stacked duplicates. The RIT guide warns that duplicate lines make a laser cut one path more than once.
4 Sort jobs by layer. Every entity names its layer under code 8. Ask the shop which layer or color means cut and which means engrave.
5 Keep the job flat. Export 2D faces and outlines. Leave solids and projected faces out.
6 Cut a small test. Measure the test part against the drawing before the real job.
Cutter jobs and what the UIC makerspace says about the file.
JobFile the makerspace names
Laser cutterDXF
WaterjetDXF
Vinyl cutterDXF or SVG works best

CNC software varies. Ask your shop for its DXF notes before you send a job. The RIT guide says color sets the cut and engrave order in its laser software.

Pen plotters read a different kind of file. Our PLT guide and HPGL guide cover those plotter instructions.

Hatches and text need care. A cutter follows lines. Convert text to outlines and explode hatches in your CAD program. Or ask the shop what it accepts.

DXF holds 2D drawings. STEP holds exact 3D solids. IGES is the older exchange format. STL holds triangles and HPGL holds plotter paths.

10 How Does DXF Compare With STEP, IGES, STL and HPGL? Drawings, Solids, Meshes and Plotter Paths

Teams send a DXF file when the receiver needs a drawing. They send STEP when the receiver needs a 3D solid. They send STL when the receiver prints the part.

How DXF compares with DWG, STEP, IGES, STL, HPGL and PLT.
FormatWhat it storesBest for
DXFLines, arcs, text, layers and blocks, plus some 3D entitiesDrawings and cutter jobs
DWGThe same drawing data in AutoCAD's binary formatEditing in AutoCAD
STEPExact 3D CAD models as clear text. See our STP file guideTrading solids between CAD vendors
IGESThe older CAD exchange text format. See our IGS file guideOld CAD systems
STLTriangles only. See our STL file guide3D printing
HPGLPlotter language. See our HPGL file guidePen plotters
PLTPlot files that mostly hold HPGL. See our PLT file guidePlotter jobs

Your DXF file holds a drawing and not a mesh. STL triangles describe a surface rather than an outline. They make a poor cutter file.

DXF files are also not solids. STEP keeps exact surfaces and assembly data. The STP file page explains how that works.

Plotter files differ again. They hold pen moves rather than named entities. The PLT page and HPGL page tell you how to read them.

Choose DXF when

The job is a flat outline or a drawing. Cutters and most CAD programs read it.

Choose STEP when

The receiver needs the 3D solid. Exact surfaces and assemblies travel with it.

Not sure what a file extension means? Our file format primer explains the idea before you dig into one format.

The DXF format is Autodesk's tagged data exchange format. IANA lists it as image/vnd.dxf and records no magic number.

11 DXF File Format and Structure Specification, Registry Records and Corrections

Autodesk owns the format and documents it in the DXF Reference. The Library of Congress records that the documentation is published under a Creative Commons license. Developers start there.

DXF file specification and registration

What is on record for the DXF file format, from Autodesk, IANA, PRONOM and the Library of Congress.
ItemValue
Extension.dxf
Stands forDrawing Exchange Format. Autodesk help says Drawing Interchange File
OwnerAutodesk
First releaseDecember 1982, with the first AutoCAD
EncodingsASCII and binary
Binary sentinelAutoCAD Binary DXF then CR, LF, SUB and NULL (22 bytes)
SectionsHEADER, CLASSES, TABLES, BLOCKS, ENTITIES, OBJECTS, THUMBNAILIMAGE
Pair layoutGroup code on one line, value on the next
Header variablesCode 9, the name with a dollar sign, the value code, then the value
First pair0 then SECTION
Last pair0 then EOF
Version label$ACADVER under group code 1
Newest code in the tableAC1032, AutoCAD 2018
Media typeimage/vnd.dxf, listed in the IANA registry
PRONOMfmt/63 for generic ASCII DXF
Magic numberNone recorded. IANA says only the extension identifies it
Reference licenseCreative Commons Attribution NonCommercial ShareAlike 3.0

Treat this table as the short version. The DXF Reference goes much deeper. Autodesk publishes it at its DXF format overview.

Why no magic number identifies DXF files

Many binary formats start with fixed bytes. The IANA record for image/vnd.dxf says DXF files can only be identified by their extensions. Programs lean on the extension and the opening section pair.

The PRONOM signature does better. It looks for code 0 and SECTION, a code 2 section name, ENDSEC and a closing code 0 and EOF near the end of the file.

Claims about DXF files worth correcting

“DXF files hold only 2D lines” Most do. The reference also lists 3DSOLID, MESH and SURFACE entities.
“DXF and DWG are the same file” DXF carries tagged data and DWG is a proprietary binary. Section 2 compares them.
“Every DXF file opens in a text editor” Binary DXF files start with a sentinel and then look like noise.
“DXF files carry their size” Coordinates are plain numbers. The unit sits in a header variable, as section 7 shows.
“Autodesk keeps the DXF format secret” Autodesk publishes the DXF Reference online, and the Library of Congress calls the format openly documented.

Frequently Asked Questions About DXF Files

What does DXF stand for?
DXF stands for Drawing Exchange Format. Autodesk created it for AutoCAD and its own help calls the file a Drawing Interchange File. Both names describe the same format. DXF files move drawing data between CAD programs.
Is a DXF file the same as a DWG file?
No. DWG is the native AutoCAD drawing format and it is a proprietary binary. DXF files store the drawing as tagged data that other programs can read. Renaming one to the other changes only the name.
How do I open a DXF file for free?
Use Autodesk Viewer in a browser, DWG TrueView on Windows, LibreCAD or FreeCAD. The browser viewer is quickest when you only want to look. LibreCAD and FreeCAD let you measure and edit the lines.
What is the difference between ASCII and binary DXF?
ASCII DXF is readable text made of pairs of lines. Binary DXF starts with the sentinel AutoCAD Binary DXF and holds the same data in compact form. Autodesk says binary files are about 25 percent smaller and AutoCAD reads them about five times faster.
Which program opens a DXF file on a Mac?
LibreCAD works on Windows, Apple and Linux, according to its own site. Autodesk Viewer works in the browser. FreeCAD lists DXF among its formats too. Choose one and open the DXF file from its File menu.
Can I open a DXF file in Notepad?
Yes for ASCII DXF. Notepad shows the section pairs and the version code. It does not draw the shape. A binary DXF file shows only the sentinel as readable text.
How do I convert a DXF file to DWG?
Open the DXF file in AutoCAD and save it as DWG. Autodesk documents this step in its import and export help. Check the size and the layers in the new file before you send it on.
Why does my DXF file open at the wrong size?
DXF coordinates are plain numbers and the unit sits in a header variable. Divide the size you see by the size you expect. A result near 25.4 points to inches against millimeters. A result near 1000 points to meters against millimeters.
Why does my DXF file look blank?
The drawing can sit far from the origin or on a layer that is switched off. Entities in paper space carry code 67 with value 1. Zoom to extents first. Then check the layer list and the layout tabs.
What does AC1032 mean in a DXF file?
AC1032 is the $ACADVER code for the AutoCAD 2018 format. Autodesk lists it as the newest code in its header table. Autodesk also says AutoCAD 2019 through 2026 still save in the 2018 format.
Can I use a DXF file for laser cutting?
Yes. One university makerspace names DXF as the file its laser and waterjet need. Draw at true size and close every outline. Delete duplicate lines so the laser does not cut one path twice.
Is the DXF format documented by Autodesk?
Yes. Autodesk publishes the DXF Reference online. The Library of Congress calls the format proprietary but openly documented. The reference covers all seven sections and the group codes.

Still Stuck With a DXF File? Six Routes After the Basics

Nothing opens it?

Check both ends of the file. Section 5 separates file faults from program faults.

Wrong size?

Measure the ratio. Section 7 names the unit from the factor.

Need triangles for a printer instead of a drawing? STL files describe the triangle format a slicer expects.

Did the sender mention a 3D solid? STP files and IGS files cover the CAD formats that carry one.

Does your plotter want a different file? The PLT file guide and the HPGL file guide cover plotter jobs.

Does the fault sit in the PC and not the drawing? Windows error guides list fixes by error message.

Still learning how extensions work? What a file format is explains the ideas. Our file format index and the what-is hub list every guide. The category list sorts them by topic.

Still holding a DXF file that none of this explains? Send us the first two lines and the file size and we will tell you what it is. You can also start from the FileFix home page.

Was this page helpful? Thanks for your feedback!