Skip to content
Engineering File Tools

How to Open DXF Files: Online DXF Viewer, Free CAD and AutoCAD

Last reviewed November 30, 2026

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 codeMeaningExample value
0Start of an entity or sectionLINE, CIRCLE, SECTION
8Layer nameCUT
10 / 20 / 30X / Y / Z of the first point100.0
40Radius (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:

$ACADVERAutoCAD release
AC1009R11/R12
AC1012R13
AC1014R14
AC10152000
AC10182004
AC10212007
AC10242010
AC10272013
AC10322018

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

OptionCostEditingInstallGood for
Online DXF ViewerFreeNo (view and inspect)None, runs in the browserQuick check of geometry, layers, units and size
LibreCADFree, open sourceYes, 2DDesktop appSimple 2D edits
QCAD (Community Edition)Free, open sourceYes, 2DDesktop app2D drafting and cleanup
FreeCADFree, open sourceYes, imports DXF into 2D/3D workflowsDesktop appUsing a DXF as a base for 3D parts
DWG TrueViewFree (Autodesk)NoDesktop app (Windows)Viewing DWG and DXF exactly as AutoCAD would
AutoCADPaidFullDesktop appProfessional 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

  1. Go to the DXF Viewer.
  2. Drag the .dxf file into the drop area or click to select it. The file is read in your browser; it is not uploaded to a server.
  3. Wait for the drawing to render. The viewer uses the open-source dxf-viewer library on WebGL.
  4. Pan and zoom to inspect the geometry.
  5. Switch layers on and off to see what belongs to cutting, engraving or annotation layers.
  6. Check the information panel: DXF version, entity count, units from $INSUNITS and 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:

$INSUNITSUnit
0Unitless (not specified)
1Inches
2Feet
4Millimetres
5Centimetres
6Metres

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 ZOOM then E.
  • 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 0 and SECTION, while a DWG starts with a code such as AC1032 followed 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 EOF marker. 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 = 0 the numbers are in drawing units, not millimetres.
  • Very large files can be slow, because everything runs in your browser's memory.

Next steps