Guides ·
DXF for laser cutting: check units, open paths and doubles
A DXF can look perfect on screen and still cut wrong: 25 times too big, with a hole that never falls out, or with an edge burned twice. Here are the three checks to make before a DXF goes to a laser, shown on a keychain file with all three mistakes in it, and the tools that find each one for you.

What a laser needs from a DXF
A DXF (Drawing Exchange Format) is a text file of lines, arcs, circles and polylines. A polyline is a chain of segments joined end to end. Your laser software reads each one as a path for the beam to follow.
Three things must be right: the unit, so the part comes out the size you drew; a closed outline for every piece that should fall out; and every line exactly once.
Check 1: the unit and the real size
A DXF stores plain numbers. A circle 60 across is stored as a radius of 30, with no unit attached. The unit lives in one header setting, $INSUNITS, where 0 means no unit, 1 means inches and 4 means millimetres.
If that setting is wrong, every number keeps its value but changes its meaning. An inch is 25.4 mm, so a 60 mm keychain labelled in inches becomes 1,524 mm wide. Your laser software may trust the setting, ask you, or assume a default, so read the real size, with its unit, before you cut.
Check 2: a closed outline for every hole
A closed shape is a path whose end meets its start, like a circle or a closed polyline. The beam goes all the way round and the piece inside drops out. An open path has two loose ends: the beam follows it and stops, so you get a thin cut line instead of a hole. A filled engraving needs closed shapes too.
Open paths usually come from lines and arcs that touch on screen but were never joined. LightBurn's Edit menu has the tools: Select Open Shapes finds them, Auto-Join Selected Shapes joins ends within 0.05 mm of each other, and Close Path closes a shape whose ends are within 0.5 mm. Close Selected Paths With Tolerance can join wider gaps with a straight line; a shape that must not get one, like the smile below, needs redrawing.
Check 3: no line drawn twice
Two identical lines on top of each other look like one. The laser cuts both, so that edge gets twice the heat: a wider, darker cut and wasted time. They often come from copying, or from exporting the same outline twice.
In LightBurn, Delete Duplicates (Alt or Option + D) removes objects with identical shapes, sizes and positions. Stray lines, such as a forgotten construction line, are the other leftover: delete them or move them to a layer you turn off.
Reading the file in the viewer
The unmake DXF viewer opens the file in the browser and puts the real size, with its unit, in large type at the top; Details counts the objects. Under the size, it checks the shapes: open ones are drawn in orange with a dot at each loose end, lines drawn twice are counted, and a clean file gets "All 5 shapes are closed outlines".
It also compares the unit with the file's other settings. When a file says inches but everything else in it is metric, it asks "Drawn in mm?" and offers a Use mm button.

Fixing the unit, and exporting for the laser
The cleanest fix is in the program that made the file: change the drawing unit without scaling the geometry, and save the DXF again.
In the viewer, Use mm (or Drawing unit under Details) changes what the numbers mean; Show lengths in only converts what you read. If your laser program prefers SVG, the viewer's SVG export carries its real width and height, with a transparent background and a 2 % empty border round the drawing.
A worked example: the smiley keychain, right and wrong
- Open smiley-keychain.dxf in the DXF viewer. It reads 60.00 × 60.00 mm and says "All 5 shapes are closed outlines"; Details counts 5 objects.
- Open smiley-keychain-oops.dxf. Same smiley at first glance, but the size reads 60.00 × 60.00 in, Details counts 7 objects, and two warnings appear.
- The first: "The file says inches, but its other settings are metric. Drawn in mm?" Details confirms the units in the file are in ($INSUNITS). At 60 inches the part is 1,524 mm wide; exported as it is, the SVG came out 1,585 mm wide.
- The second: "2 open shapes", drawn in orange. One is the smile, a single arc whose ends are 24 mm apart, far beyond what Close Path can fix: it has to be redrawn as a closed crescent. The other is a short stray line on the left edge.
- Under it: "1 line is drawn twice". The stray line is both open and doubled, which explains the 7 objects: 4 closed shapes, the arc, and the stray line twice.
- Tap Use mm. The size reads 60.00 × 60.00 mm, and the SVG export is 62.4 × 62.4 mm: the 60 mm keychain plus its border. The arc and the doubled line still need fixing in the drawing or laser program.
Common mistakes
- Trusting the picture. A 60 mm and a 60 in drawing look the same on screen; read the size and its unit.
- Scaling instead of changing the unit. In your CAD program, change the drawing unit without scaling the geometry; scaling by 25.4 keeps the 1,524 mm part.
- Joining shapes by eye. Two arcs whose ends touch on screen are still two open paths until they are joined into one closed shape.
- Forgetting the kerf, the width the beam burns away. It is a fraction of a millimetre, so holes come out slightly bigger and parts slightly smaller. Cut a test piece for tight fits.
Questions
What unit should a DXF for laser cutting use?
Any unit your laser software handles, as long as the unit setting ($INSUNITS) matches the unit the numbers were drawn in.
Why does my DXF import at the wrong size?
Almost always the unit: the file says inches and the numbers are millimetres, or it says nothing and the software guesses. Look for a size 25.4 times too big or too small.
How do I find open paths in a DXF?
Let software find them: the unmake DXF viewer marks open shapes in orange, and LightBurn's Select Open Shapes selects them. Then join, close or redraw each one.
Sample file: smiley-keychain-oops.dxf (the correct smiley-keychain.dxf is published next to it) · ours (made by unmake for this post)
Sources
- ezdxf documentation: Drawing units ($INSUNITS)
- LightBurn documentation: Edit menu (Select Open Shapes, Auto-Join, Close Path, Delete Duplicates), LightBurn 2.2