Online DXF viewer
Drop a DXF to see it at its real size, layer by layer, with the total length of its lines and a list of anything the viewer could not draw. Download it as an SVG in millimetres, or open it in FlatCad to edit. SVG files open too.
View a DXF
Reading the status line
After a file loads, one line under the drop zone sums it up, for example:
bracket.dxf: 120 × 80 mm · 14 shapes on 3 layers · 1.24 m of lines · 6 text(s) not shown · 2 unsupported entities skipped
- Size is the bounding box of everything drawn, in the file's units. A part you expect to be 120 mm wide showing as 4.72 is an inch file read as millimetres, or the other way round.
- Shapes counts joined paths, not entities. Lines whose ends meet within 0.001 units are chained into one path, so a rectangle drawn as four LINEs counts as one shape. If a part you drew as one outline shows as several shapes, its ends don't quite meet: a laser will cut it, but CAM software that needs closed profiles won't offset it.
- Length of lines adds up every path on every layer, including the ones you have switched off.
- Text(s) not shown and unsupported entities skipped tell you the preview isn't the whole file. Nothing in the file is lost, it's just not drawn here.
What the viewer draws
| DXF entity | How it is shown |
|---|---|
| LINE | As drawn |
| LWPOLYLINE, POLYLINE | With their bulges, so arc segments stay round |
| CIRCLE, ARC, ELLIPSE | Smooth curves, drawn to within 0.05 mm |
| SPLINE | Evaluated from its control points and knots |
| INSERT (blocks) | Placed, rotated and scaled, including rectangular arrays up to 1000 columns and rows and blocks nested up to 8 deep |
| TEXT, MTEXT | Counted, not drawn |
| HATCH, DIMENSION, 3DFACE, IMAGE and others | Skipped and counted |
Two details that trip up other viewers are handled. Entities inside a block that sit on layer 0 take the layer of the block they are inserted on, as AutoCAD does. And shapes drawn with their extrusion direction pointing down (a mirrored arc from some CAM exports has its Z axis set to −1) are flipped back, so they don't appear mirrored in the wrong place.
Units
The size depends on the $INSUNITS value in the file's header. The viewer understands inches, feet, millimetres, centimetres and metres. Many files leave it out, especially those from older programs and online generators; then the drawing is read as millimetres and the status line adds "No units in the file: read as millimetres."
If that guess is wrong, change Units to what the drawing was made in and the size and line length update. A quick check: a part drawn in inches and read as millimetres is 25.4 times too small, so a 6 inch shelf bracket shows as 6 × 4 mm instead of about 152 × 102 mm. The units choice also goes into the SVG you download.
Layers and the background
Each layer appears in the list under the drawing with its colour and the number of shapes on it. Untick a layer to hide it, for example dimensions or a title block, and see only what will be cut. Lines that are black in the file and white lines meant for a dark CAD screen would vanish on one background or the other, so Light/Dark swaps them over rather than hiding them.
Downloading an SVG
The SVG is in millimetres with its origin at the drawing's top-left corner, so it imports at the right size into Inkscape, LightBurn, Glowforge, xTool Creative Space and Cricut Design Space. Every visible layer is a separate Inkscape layer. Lines are 0.1 mm thick, and white lines are written black so they still show on a white page. Curves are written as fine polylines, which every program reads; if you need true arcs in the output, open the file in FlatCad and export from there.
When a file won't open
- "No drawable lines found … (only N text(s))." The file holds text and nothing else the viewer draws: often a DXF where all the geometry is hatches or 3D solids. Explode them in CAD and save again.
- "Could not read that file. Is it a DXF or SVG?" The file couldn't be parsed as a DXF. Files renamed from another format and files cut short during a download end up here; export a fresh ASCII DXF from the program that made it.
- "That file is too big for the viewer" appears over 60 MB. Open big files in FlatCad itself, or purge unused blocks in CAD first; a 60 MB DXF is usually a survey or a site plan with millions of hatch lines.
- AI, PDF and FlatCad files dropped here are opened straight in the FlatCad editor instead.
Need a DXF from an SVG, PDF or Illustrator file? See SVG to DXF, PDF to DXF and AI to DXF. For G-code, see DXF and SVG to G-code.
Questions
Can it open DWG files?
No. DWG is AutoCAD's closed format, and the viewer tells you so. Save the drawing as DXF from AutoCAD, DraftSight or LibreCAD, or batch-convert DWG files with the free ODA File Converter, then open the DXF.
The status line says some entities were skipped. Do I lose them?
Only in the preview and the SVG. The DXF itself is not changed. Skipped entities are usually hatches, dimensions, 3D faces or images; if you need to cut them, explode them to lines in your CAD program and save again.
Why don't I see the text in my drawing?
TEXT and MTEXT are counted but not drawn in the viewer, because drawing them properly needs the fonts named in the file. Press Open in FlatCad to edit: FlatCad reads the text there.
Is the line length the same as the cutting time?
It is the distance the head travels while cutting, so it is the main part of it. Divide by your cutting speed for a first estimate: 3.6 m at 20 mm/s is 3 minutes, plus moves between shapes. It counts hidden layers too.
Does the SVG keep my layers?
Yes. Each visible DXF layer becomes its own Inkscape layer, named after the DXF layer. Hidden layers are left out of the SVG, so switch off what you don't want before downloading.
Is my file uploaded?
No. The viewer reads the file in your browser and nothing is sent anywhere.