How to Open DXF Files: Online DXF Viewer, Free CAD and AutoCAD
The fastest way to open a DXF file is an online DXF viewer: drop the file into the DXF Viewer and it renders in your browser, locally, without an upload or an account. If you need to edit the drawing, use a free 2D CAD program such as LibreCAD, QCAD or FreeCAD, or AutoCAD if you have a licence. Autodesk's free DWG TrueView also opens DXF files for viewing.
This guide explains what is inside a DXF file, compares the options, walks through opening a file in our viewer and covers the problems that most often make a DXF look empty or refuse to load.
What a DXF file is
DXF (Drawing Exchange Format) is a CAD data format published by Autodesk to exchange drawings between AutoCAD and other programs. Unlike DWG, its structure is publicly documented in the Autodesk DXF Reference. The Library of Congress also keeps a format description for DXF.
Group codes
An ASCII DXF file is a long list of pairs: one line holds a numeric group code, the next line holds its value. The code tells a reader what the value means. A few examples:
| Group code | Meaning | Example value |
|---|---|---|
| 0 | Start of an entity or section | LINE, CIRCLE, SECTION |
| 8 | Layer name | CUT |
| 10 / 20 / 30 | X / Y / Z of the first point | 100.0 |
| 40 | Radius (for circles and arcs) | 4.0 |
A file is split into sections such as HEADER (drawing settings), TABLES (layers, line types), BLOCKS (reusable block definitions) and ENTITIES (the actual geometry in model space).
ASCII and binary DXF
Most DXF files are plain text, which is why you can open one in a text editor and read the group codes. There is also a binary DXF variant that stores the same data more compactly. It is rarely used, but some programs can export it.
DXF versions
The header variable $ACADVER records which AutoCAD release format the file follows. Common values:
$ACADVER | AutoCAD release |
|---|---|
| AC1009 | R11/R12 |
| AC1012 | R13 |
| AC1014 | R14 |
| AC1015 | 2000 |
| AC1018 | 2004 |
| AC1021 | 2007 |
| AC1024 | 2010 |
| AC1027 | 2013 |
| AC1032 | 2018 |
R12 (AC1009) is still popular for laser cutting and CNC because it only uses simple entities that almost every CAM system understands. Newer versions add entities such as LWPOLYLINE and more complex objects.
Ways to open a DXF file
| Option | Cost | Editing | Install | Good for |
|---|---|---|---|---|
| Online DXF Viewer | Free | No (view and inspect) | None, runs in the browser | Quick check of geometry, layers, units and size |
| LibreCAD | Free, open source | Yes, 2D | Desktop app | Simple 2D edits |
| QCAD (Community Edition) | Free, open source | Yes, 2D | Desktop app | 2D drafting and cleanup |
| FreeCAD | Free, open source | Yes, imports DXF into 2D/3D workflows | Desktop app | Using a DXF as a base for 3D parts |
| DWG TrueView | Free (Autodesk) | No | Desktop app (Windows) | Viewing DWG and DXF exactly as AutoCAD would |
| AutoCAD | Paid | Full | Desktop app | Professional editing and drafting |
If you only want to see what is in a file a customer sent you, check the layer names or confirm the dimensions, a browser viewer is enough. If you need to change geometry, use a CAD program.
How to open a DXF file in our online viewer
- Go to the DXF Viewer.
- Drag the
.dxffile into the drop area or click to select it. The file is read in your browser; it is not uploaded to a server. - Wait for the drawing to render. The viewer uses the open-source dxf-viewer library on WebGL.
- Pan and zoom to inspect the geometry.
- Switch layers on and off to see what belongs to cutting, engraving or annotation layers.
- Check the information panel: DXF version, entity count, units from
$INSUNITSand the bounding box (overall width and height).
The viewer renders LINE, ARC, CIRCLE, LWPOLYLINE, POLYLINE, ELLIPSE, SPLINE, TEXT, MTEXT, INSERT/BLOCK and DIMENSION entities. HATCH is rendered only partially.
If you want numbers rather than a picture, the DXF Cutting Length Calculator reports the path length per layer from the same file.
Units: what $INSUNITS means
A DXF file stores plain coordinates. Whether 100 means 100 mm or 100 inches is defined by the header variable $INSUNITS. Common values:
$INSUNITS | Unit |
|---|---|
| 0 | Unitless (not specified) |
| 1 | Inches |
| 2 | Feet |
| 4 | Millimetres |
| 5 | Centimetres |
| 6 | Metres |
Many files have $INSUNITS = 0 or no value at all. In that case the file itself does not say what unit it uses. Our tools never assume millimetres in that situation: the viewer shows the units as unknown, and the cutting length calculator asks you to choose mm or inch before it reports lengths.
A quick plausibility check: a part with a bounding box of 3.94 × 1.97 units that should be 100 × 50 mm was almost certainly drawn in inches (100 mm ÷ 25.4 = 3.94 in).
Troubleshooting: the DXF opens but looks empty or wrong
Blank screen
- Zoom to extents. The geometry may sit far away from the origin, or a single stray point may make the drawing extents huge so the part shrinks to a dot. Use the viewer's fit or zoom-to-extents function. In AutoCAD, type
ZOOMthenE. - Geometry only in paper space. DXF files have model space and one or more paper space layouts. Our tools analyse model space. If the drawing was placed only in a layout, the model may look empty. Open the file in CAD and move the geometry to model space.
- All layers off or frozen. Check the layer list and switch layers on.
File will not load
- Binary DXF. Our analysis engine reads ASCII and binary DXF, but the browser preview may not render binary DXF. Re-export as ASCII DXF if you need the picture.
- A DWG renamed to .dxf. DWG is a different, proprietary binary format; changing the file extension does not convert it. Open the file in a text editor: a real ASCII DXF starts with readable lines such as
0andSECTION, while a DWG starts with a code such asAC1032followed by unreadable bytes. Convert DWG to DXF in AutoCAD, DWG TrueView or another CAD program. Our tools do not support DWG. - Truncated file. An interrupted download or e-mail attachment can cut the file off before the final
EOFmarker. Ask for the file again.
Text looks wrong
Fonts referenced in the file (SHX or TrueType) may not be available in the browser, so text can look different from AutoCAD. The geometry is not affected.
Limitations
- The DXF Viewer is a viewer, not an editor. You cannot change or save geometry.
- DWG files are not supported, and binary DXF previews may not render.
- HATCH is only partially rendered; complex proxy objects and 3D solids embedded in DXF are not displayed.
- The bounding box and units are only as good as the file: with
$INSUNITS = 0the numbers are in drawing units, not millimetres. - Very large files can be slow, because everything runs in your browser's memory.
Next steps
- Open your file in the DXF Viewer.
- Measure the total cutting path with the DXF Cutting Length Calculator.
- Preparing a file for a laser? Read DXF files for laser cutting and how to check a DXF for open contours.