File Extension File Extension Guide

What is a DXF File?CAD Drawing

A guide to the .dxf extension, the Drawing Exchange Format. What a DXF file holds, why Autodesk created it as an open way to move CAD drawings between programs, how it compares to DWG, and how to open and convert one.

CAD Drawing File ๐Ÿ“ 2D and 3D Vectors ๐Ÿ”“ Open Standard ๐Ÿ”„ Autodesk Interchange
.DXF

Drawing Exchange Format

Type:CAD drawing
Extension:.dxf
Developer:Autodesk
Introduced:1982
Opens With:AutoCAD, LibreCAD, viewers

๐Ÿ“ What is a DXF File?

A DXF file is a CAD drawing saved in the Drawing Exchange Format, an open file type created by Autodesk so that design drawings can move freely between AutoCAD and other computer-aided design programs.

The whole point of the format is sharing. When Autodesk built AutoCAD, it stored drawings in its own native format called DWG, which other companies' software could not reliably read. To let people collaborate across different tools, Autodesk published DXF as a documented, open way of writing out the same drawing, so a design created in one program could be opened in another without either side needing the other's software. Because the specification is public, practically every CAD application on the market can both open and produce DXF, which is exactly why it grew into the common language of the CAD world. A DXF holds the real geometry of a drawing, the lines, arcs, circles, text and other shapes that make up a technical design, in both two-dimensional and three-dimensional form, along with the layers and named blocks that organize them.

It helps to think of DXF as a translator rather than a program's home format. Designers usually work in their software's own native files and then export a DXF when they need to hand the drawing to someone using a different tool, or send it downstream to a machine that will cut or engrave the shape. That role, carrying drawings across tools that would otherwise have no common language, is what a DXF file is for, and it explains most of what makes the format distinctive. The sections below cover how DXF compares to DWG, what the file actually contains, and how to open and convert one.

Key Characteristics

  • Created by Autodesk for AutoCAD in 1982
  • Open standard, readable by almost any CAD tool
  • Holds 2D and 3D vector geometry
  • Built for sharing drawings between programs

Good to Know

  • Often stored as readable ASCII text
  • Opens in AutoCAD, LibreCAD, free viewers
  • Pairs with DWG, Autodesk's native format
  • Carries no units, so set the scale on import
๐Ÿ’ก Why it matters: DXF is an open format Autodesk created so CAD drawings can pass between AutoCAD and other programs. Because nearly every design tool reads it, DXF is the format you reach for when sharing a drawing across different software.

โšก Quick Facts

File Extension.dxf
Full NameDrawing Exchange Format
File TypeCAD drawing (2D and 3D)
DeveloperAutodesk
Introduced1982, with AutoCAD 1.0
FormatOpen standard, ASCII or binary
Related FormatDWG, Autodesk's native format
MIME Typeimage/vnd.dxf

๐Ÿ”€ DXF vs DWG

DXF and DWG come from the same company and describe the same kind of drawing, so people often wonder which to use, and the difference comes down to openness set against native power.

DWG is AutoCAD's own native format. It stores a drawing in a compact binary structure that is efficient to save and quick for software to read, and it captures every last AutoCAD feature in full detail. The trade-off is that DWG is controlled by Autodesk, so other programs need licensed support to read it perfectly, and it is not plain text. DXF was created as the open counterpart. It writes out the same drawing in a documented, published format, most often as readable ASCII text, so any CAD program can understand it. That openness is its strength for sharing, but it comes at a cost, since DXF files tend to be larger than the equivalent DWG and may not preserve every specialized DWG feature perfectly. In everyday terms, you keep your working drawings in DWG when you live inside the Autodesk world and want nothing lost, and you export a DXF when you need to hand the drawing to different software or a fabrication machine. One is the polished native home, the other the universal go-between.

AspectDXFDWG
OpennessOpen, published standardAutodesk proprietary
FormUsually readable ASCII textCompact binary
CompatibilityRead by almost any CAD toolBest in Autodesk software
File SizeLargerSmaller
Best ForSharing between programsNative working drawings
โœ… In short: DWG is AutoCAD's compact, proprietary native format, while DXF is the open, usually text-based version made for sharing. Work in DWG inside Autodesk tools, export DXF when a drawing needs to travel.

๐Ÿ”Ž What Is Inside a DXF

Opening a DXF in a text editor reveals something unusual for a graphics file, a long list of readable codes and values rather than a picture, and knowing how it is arranged makes the format far less mysterious.

A DXF is organized into named sections that each describe part of the drawing, such as the header with overall settings, the tables that list layers and text styles, the blocks that define reusable groups of shapes, and the entities section that holds the actual geometry. Within these, the drawing is written as pairs of numbers and values, where a code says what a value means and the value follows. A line, for example, is recorded by its start and end coordinates, a circle by its centre and radius. This tagged, text-based structure is what makes DXF so portable, since any program can walk through the pairs and rebuild the drawing, and it is also why the files are human-readable and even programmable. One important quirk is that the coordinates carry no built-in units, so a value of 10 could mean ten millimetres or ten inches depending on the drawing. Because of that, the program opening a DXF has to be told, or has to assume, the correct unit scale, which is a common source of drawings that import at the wrong size.

A DXF describes a line as tagged code and value pairs

# a short excerpt from the text inside a DXF file
0
LINE          the kind of shape
8
Layer1        the layer it sits on
10
0.0           start X coordinate
20
0.0           start Y coordinate
11
100.0         end X coordinate
21
50.0          end Y coordinate

๐Ÿ“‚ How to Open a DXF File

Because DXF was designed to be widely readable, opening one is rarely difficult, and you have choices ranging from professional CAD suites to free viewers that need no installation.

The most complete option is AutoCAD itself, where you open a DXF the same way as any drawing and can then edit it fully. Many people do not have AutoCAD, though, and do not need it. Free desktop programs such as LibreCAD, QCAD and DraftSight open DXF drawings and let you view or edit them, and FreeCAD handles them as part of its 3D modelling. For a quick look without installing anything, Autodesk offers a free online viewer, and other browser-based viewers let you drop in a DXF and inspect it on screen. If you only need to see a DXF rather than work on it, a viewer is the fastest path, and you can use a browser-based DXF viewer like the one Univik provides to open the drawing straight away. Since a DXF can also be plain text, you can even open it in a text editor to inspect the raw contents, though that is useful only for checking the file, not for viewing the drawing as a picture.

For a quick, install-free look at a drawing, open it with the Univik File Viewer and inspect the geometry in your browser.

๐Ÿ”„ How to Convert a DXF File

Converting a DXF is common, since the format so often sits between two tools that expect something else, and the right target depends on where the drawing is heading next.

The most frequent conversion is between DXF and DWG. Opening a DXF in AutoCAD and saving it as DWG turns the shared file back into Autodesk's native format, and the reverse export produces a DXF for sharing. Free tools such as LibreCAD and QCAD can move between the two as well. Beyond that pairing, a DXF is often converted to a PDF so a drawing can be viewed or printed by anyone, to an SVG for use on the web or in graphic design, or to formats a manufacturing machine understands when the shape is going to be cut. Because a DXF holds real vector geometry rather than a flat picture, these conversions keep the drawing as editable shapes wherever the destination format allows. The simplest route for the everyday cases is an online converter, where you upload the DXF, choose the format you want and download the result. You can convert a DXF with the Univik File Converter, which handles the upload and conversion in your browser without installing CAD software.

๐Ÿ—‚๏ธ DXF Versions and Compatibility

One detail catches people out when they save a DXF, the format has versions, and picking the wrong one can quietly break the file for whoever receives it.

Because DXF has tracked AutoCAD since 1982, each major AutoCAD release brought its own DXF version, and export dialogs still list them by name, R12, 2000, 2004, 2007, 2010, 2013, 2018 and so on, sometimes shown by their internal codes like AC1009 for R12 or AC1027 for the 2018 generation. Newer versions store more, including advanced 3D data and richer entity types, while older ones keep only the simplest shapes. The rule of thumb is that a newer version preserves more of your drawing, and an older version travels more widely. If you are sending a drawing to a modern CAD program, exporting as the 2018 version is a safe default that keeps almost everything. If it is heading to an older program or a cutting machine, the R12 version is the classic choice, because it strips the drawing down to the plain lines and arcs that nearly every tool understands. The trap is that some programs default the version dropdown to R12 and give no warning, so a modern drawing with layouts or advanced entities can lose them silently on export. When a received DXF opens with pieces missing, the version it was saved in is an early thing worth checking.

DXF VersionCodeBest For
R12AC1009Oldest software, CNC and laser machines
2000 to 2002AC1015Wide support with curves kept as curves
2018 and newerAC1027+Modern CAD, fullest feature retention
โš ๏ธ Watch the version dropdown: If a drawing arrives with layouts, curves or text missing, it was often saved as an older DXF version like R12 that cannot hold those features. Re-exporting from the source in a newer version usually restores them.

๐Ÿ“„ ASCII vs Binary DXF

A DXF can be written in two flavours, and although both carry exactly the same drawing, the difference occasionally matters when a file behaves oddly.

The common flavour is ASCII DXF, the readable text form shown earlier, where every entity and coordinate is spelled out in plain numbered groups. It is the one most tools produce, and its openness is what lets you inspect a DXF in a text editor or process it with a script. The less common flavour is binary DXF, which packs the same information into a compact binary structure. Binary files are smaller and quicker for software to parse, but you lose the ability to read them by eye. Most people never choose deliberately between the two, since the ASCII form is the default nearly everywhere, and any program that reads DXF handles both. The distinction is worth knowing mainly for two reasons, a binary DXF will look like gibberish if you open it in a text editor expecting readable codes, and a few older machines or scripts expect one form specifically. When in doubt, the plain ASCII version is the safer, more portable choice.

โœ‚๏ธ Using DXF for Laser Cutting and CNC

The single biggest reason people handle DXF files outside the CAD world is fabrication, since laser cutters, plasma tables, waterjets, CNC routers and vinyl plotters almost all take a DXF outline as their cutting path.

These machines read the geometry in a DXF and trace it, so the file has to be prepared with the machine in mind rather than just the screen. A few habits make the difference between a file that cuts cleanly and one the software rejects. Cut profiles should be closed polylines rather than loose separate segments, so the machine can tell inside from outside. The drawing should be set to real-world size at a one to one scale, so a part meant to be a hundred millimetres actually measures a hundred millimetres in the file. Curves drawn as splines are best converted to arcs and lines where possible, because some controllers handle splines poorly. And exporting as an older DXF version, often R12, gives the widest chance that the machine's software will accept it. Beyond loading the DXF directly, some workflows turn the drawing into G-code, the step-by-step instructions a machine actually follows, using CAM software or a dedicated tool that reads the DXF outline and writes out the tool path. Getting these details right up front is what turns a drawing into a part.

Getting a DXF ready for a cutting machine Your drawing 1 ยท Close the profiles 2 ยท Set real 1:1 size 3 ยท Splines to arcs 4 ยท Export R12 DXF Machine accepts it closed paths + true scale + simple curves + an older version = a file the cutter reads first try

๐Ÿ› ๏ธ What DXF Files Are Used For

The DXF format shows up wherever a technical drawing needs to cross from one piece of software or hardware to another, which covers a surprising range of fields.

In architecture and engineering it is the standard way to swap floor plans, site drawings and technical diagrams between firms that use different CAD packages, so a drawing made in one office can be marked up in another. In manufacturing it is the bridge between design and machine, since laser cutters, plasma cutters, water jets and CNC routers commonly take a DXF outline and turn it directly into a cut path, which makes the format central to fabrication, signage and metalwork. Product and furniture designers export DXF profiles to send parts for cutting, and the format also travels into fields like GIS mapping and even embroidery, anywhere a precise outline has to be handed to specialist equipment. Across all of these, the reason is the same. DXF is the neutral, widely understood format that lets a drawing leave the program it was born in and be used somewhere else, which is why decades after its introduction it remains a fixture of professional design and production work.

โ“ Frequently Asked Questions

DXF: the neutral format that lets a drawing travel Native file DWG or other CAD export .DXF open, any tool reads it A different CAD program CNC or laser cutter PDF or SVG export one open file, opened and reused wherever the drawing needs to go

A DXF file is a CAD drawing saved in the Drawing Exchange Format, an open file type that Autodesk created so drawings can be shared between AutoCAD and other computer-aided design programs. It holds the real geometry of a technical drawing, the lines, arcs, circles, text, layers and blocks, in both 2D and 3D form, rather than a flat picture. Because the format is openly documented, nearly every CAD program is able to open and produce it, which is why DXF turned into the common language designers use to move a drawing from one piece of software to another. In short, it is the neutral, widely understood format you export to when a drawing needs to leave the program it was made in.

You have several choices depending on whether you want to view or edit the drawing. AutoCAD opens a DXF fully and lets you edit it, but you do not need it just to look. Free desktop programs such as LibreCAD, QCAD and DraftSight open DXF drawings for viewing or editing, and FreeCAD handles them for 3D work. For a quick look without installing anything, Autodesk provides a free online viewer, and browser-based viewers let you drop in a DXF and see it on screen. If you only need to inspect the drawing rather than change it, an online viewer is the fastest route. Because a DXF is often plain text, you can also open it in a text editor to check the raw contents, though that shows codes rather than the drawing itself.

DWG is AutoCAD's native format, a compact binary file that Autodesk controls and that captures every AutoCAD feature efficiently. DXF is the open counterpart Autodesk publishes so the same drawing can be written in a documented, usually text-based form that any CAD program can read. The practical difference comes down to openness against native power, so DWG stays smaller and preserves everything inside Autodesk software, while DXF is larger and may drop some specialized features but travels easily between different programs. As a rule, you keep working drawings in DWG when you stay inside Autodesk tools, and you export a DXF when the drawing has to go to different software or a fabrication machine.

A DXF file can hold both. The format supports two-dimensional geometry, the lines, arcs, circles and text of a flat drawing, and it also supports three-dimensional geometry for models that have depth. In practice most DXF files people encounter are 2D, because the format is so widely used for flat technical drawings, floor plans and shapes headed for cutting machines. That said, a DXF made from a 3D model will carry the three-dimensional data too. Whether a given file is 2D or 3D depends on the drawing it came from rather than on any limit of the format itself.

The most direct way is to open the DXF in a CAD program and save it as DWG. In AutoCAD you open the DXF and then use Save As, choosing DWG as the format, and the drawing becomes a native Autodesk file. Free tools such as LibreCAD and QCAD can do the same, opening the DXF and exporting it to DWG. When installing software is not an option, an online converter takes the uploaded DXF, lets you pick DWG as the target and gives you the result to download. The conversion is straightforward because both formats describe the same kind of drawing, so the geometry carries across cleanly, and it is exactly the round trip DXF was designed to make possible.

Yes, and most people do. AutoCAD is only one of many programs that read DXF, and because the format is open, plenty of free alternatives handle it well. LibreCAD, QCAD, DraftSight and FreeCAD all open DXF drawings on the desktop, and Autodesk's own free online viewer plus other browser-based viewers let you see one without installing software at all. For 2D drawings, even a vector graphics editor like Inkscape can import a DXF. So while AutoCAD gives you the fullest editing experience, opening and viewing a DXF is something you can do with free tools on any computer.

This is one of the most common DXF headaches, and it comes from the format carrying no built-in units. A drawing exported in millimetres can arrive in a program that assumes inches or centimetres, so a part meant to be a hundred millimetres opens as a hundred inches or shrinks by a factor of ten. Fusion 360, for instance, defaults to centimetres when you import a DXF unless you tell it otherwise. The fix is to set or confirm the units at the moment you import, choosing the same unit the drawing was made in, and if the size is still off you can scale the imported sketch to the correct real-world dimension. Checking a known measurement, such as a hole you know should be ten millimetres, quickly tells you whether the scale came in right.

For a laser cutter, CNC router or other fabrication machine, the older R12 version is usually the safest choice. R12, shown in some dialogs as AC1009, strips a drawing down to the simplest, most universally understood shapes, which is exactly what shop-floor cutting software tends to want. A modern DXF can sometimes confuse an older controller, while a plain R12 file loads first try. If your machine's software is newer and handles curves well, a version like 2000 keeps splines as true curves rather than breaking them into segments. When in doubt, ask the fabricator which version they prefer, and export closed profiles at real one to one scale alongside whichever version you pick.

They are two ways of writing the same drawing. ASCII DXF is the readable text form, where every shape and coordinate appears as plain numbered groups you can open in a text editor, and it is the version nearly every program produces by default. Binary DXF packs the identical information into a compact binary structure that is smaller and faster for software to read, at the cost of no longer being human-readable. Both hold the same geometry and any DXF-capable program opens either, so the choice rarely matters. The main thing to know is that a binary DXF looks like nonsense if you open it in a text editor expecting codes, and the plain ASCII form is the more portable default for sharing.

Both conversions are straightforward. To make a PDF, open the DXF in a CAD program and print or export to PDF, or upload it to an online converter and download the PDF, which gives you a drawing anyone can view or print without CAD software. Many converters preserve the drawing's layers in the PDF so they can be toggled later. To make an SVG, which suits the web or graphic design, tools like Inkscape import a DXF and export SVG, and online converters do the same in one step. Because a DXF holds real vector geometry, both a PDF and an SVG keep the drawing as crisp scalable shapes rather than a flattened image, so lines stay sharp at any zoom.

Yes. G-code is the step-by-step set of instructions a CNC machine follows, and a DXF is a common starting point for creating it. Some machine software reads a DXF outline directly and generates the tool path for you, while other setups use CAM software or a dedicated converter that takes the DXF and writes out the G-code. Before that step, it helps to prepare the drawing with closed cut profiles at true one to one scale, so the resulting tool path traces the shape correctly. The DXF supplies the outline, and the CAM step decides how the machine moves along it, including cutting order, speeds and depths.

A DXF stores drawings as a set of named shape types called entities. The everyday ones are lines, arcs and circles, joined by polylines that chain segments into a continuous path, and by splines for smooth flowing curves. Text and dimension labels are entities too, as are blocks, which are reusable groups of shapes inserted wherever they are needed, like a door symbol repeated across a floor plan. Layers sit alongside these, organizing the entities into groups that can be shown, hidden or coloured together. When a program opens a DXF, it walks through this list of entities and rebuilds the drawing shape by shape, which is why the format can faithfully carry a complex technical drawing from one tool to another.

Key Takeaways

A DXF file is a CAD drawing in the Drawing Exchange Format, an open standard Autodesk created in 1982 so that 2D and 3D drawings can move between AutoCAD and other design programs.

Its defining trait is openness. Where DWG is Autodesk's compact, proprietary native format, DXF writes the same drawing in a documented, usually text-based form that almost any CAD tool can read, which makes it larger but far more portable.

You open a DXF in AutoCAD or free tools like LibreCAD, QCAD and online viewers, and you convert it most often to and from DWG, or onward to PDF, SVG and the cutting formats used in manufacturing.