You export a DXF, open it in your laser or CAM software, and the part comes in as a postage stamp, or a giant that overruns the bed. The geometry is perfect; only the size is wrong, usually by an oddly specific factor. It is one of the most common and most frustrating problems in 2D manufacturing, and it has a single root cause and a thirty-second fix.
The real cause: DXF has no fixed unit
Here is the thing almost nobody tells you: a DXF file does not really know how big your part is. The geometry inside it is stored as unitless coordinates, a line from 0,0 to 100,0is just “100 units long”. Whether those 100 units mean 100 millimetres or 100 inches is decided by the software that opens the file, not by the file itself.
There is a header variable, INSUNITS, that is supposed to record the intended unit. But it is optional, and plenty of exporters leave it unset or set it wrong. When it is missing, your laser or CAM software falls back to its own default unit. If that default does not match what you drew in, the numbers are read at the wrong scale and your perfect geometry comes in the wrong size. This is the same reason a DXF is so portable and so easy to get wrong, the format was built for exchange, not for carrying a guaranteed scale. For where DXF sits next to DWG, STEP and PDF, see which file to send your manufacturer and the difference between DWG and DXF.
The 25.4× tell
The size error is rarely random. If your part is exactly 25.4 times too small or too big, you have a millimetre-versus-inch mismatch, because there are 25.4 millimetres in an inch. That single number tells you exactly what happened:
| You see | What happened | The file is really in |
|---|---|---|
| Part is 25.4× too small | Drawn in mm, imported as inches | millimetres |
| Part is 25.4× too big | Drawn in inches, imported as mm | inches |
| Off by some other factor | An explicit scale was applied on export or import | check the export/import scale setting |
So before you touch anything, measure one known feature in the software and work out the ratio between what you see and what it should be. If it is 25.4 (or 1/25.4), you have confirmed a unit mismatch and the fix is straightforward.
25.4 is always the fingerprint of mm ↔ inch.The fast fix: rescale to a known dimension
You do not need to re-export to rescue a file that is already open and the wrong size. Every serious laser and CAM program can scale geometry:
- Pick a feature whose real size you know, an overall width, a hole spacing, an edge length.
- Measure it as currently imported.
- Scale the whole drawing by
target ÷ current. For a clean mm/inch mismatch that factor is25.4or0.03937(which is 1 ÷ 25.4). - Confirm with a second known dimension. If both read right, the entire part is right.
Many programs also let you set a known dimension directly and scale the rest to match, which is even faster. Either way, the rule is the same: never trust the imported size, verify against something you measured.
The proper fix: set the unit on export
Rescaling fixes the file in front of you; setting the unit stops the problem at the source so the next file is right the first time. In your CAD tool, before exporting:
- Set the document units (mm or inch) so the design knows what its numbers mean.
- Check the DXF export options for a units field, and set it explicitly so the
INSUNITSvalue is written correctly. - Match your shop or machine. Millimetres are the safest default for laser, plasma and most CNC work; agree the unit if you are unsure.
- State the unit when you send it.“DXF, millimetres” in the message removes all doubt on the other end.
Where to set units, by software
The exact menu differs, but the idea is identical everywhere. A few of the common ones:
- LightBurn: the import scale is governed by
File → Settings, where you choose how DXF units are interpreted. If files come in wrong, this is the first place to look. - Fusion / AutoCAD / other CAD:set the design units before export, and use the DXF export dialog's units option so the file is tagged correctly.
- Illustrator and vector editors: these often ignore or mishandle DXF units entirely, so expect to rescale on the receiving end and verify against a known dimension.
- QCAD / LibreCAD / free CAD tools: set the drawing unit in the document properties; their DXF export respects it.
When it's not the size: other import problems
A wrong-size DXF is the most common complaint, but a few cousins show up in the same forums. The quick diagnoses:
- Lines import as open, not closed.The cutter reads open paths as single strokes, so parts will not cut out. The usual cause is endpoints that nearly meet but do not snap. Use your software's join or close-gaps function within a small tolerance.
- Everything comes in as separate lines. The export exploded polylines into individual segments. Re-export as polylines, or rejoin the segments in CAD before cutting.
- Curves look faceted or won't import. Splines are not handled the same by every tool. Convert splines to polylines or arcs on export and they import reliably.
- The file is empty or nothing cuts. A DXF that only contains a pasted bitmap has no vectors to follow. The machine cuts geometry, not pictures, so the image has to be traced into vectors first.
- Text won't cut or fill. Live text depends on a font the cutter may not have. Convert text to outlines so it becomes geometry.
How to never hit this again
Build these into your export routine and the wrong-size DXF disappears:
- Set document units before you draw or before you export.
- Tag the DXF with the right unit in the export dialog.
- State the unit in your message or filename, e.g.
bracket_100mm.dxf. - Verify one known dimension at the machine before every job. Thirty seconds versus a scrapped sheet.
- For a traced or converted DXF, remember it has no real size at all, set it deliberately after importing.
That last point matters if you build files from images. When you turn a photo or sketch into a DXF with our free image to DXF converter, the trace captures the shape but not the scale, so the size step is yours to set, exactly as above. The full workflow is in turning a sketch into a CNC-ready DXF.
Frequently asked questions
Why is my DXF importing too small?
Almost always a unit mismatch. The file was drawn in millimetres but your software imported it as inches, so every coordinate is read as 1/25.4 of its intended size and the part comes in 25.4 times too small. Fix it by setting the import units to millimetres, or rescale the geometry by 25.4 in your laser or CAM software.
Why is my DXF 25.4 times too big?
The reverse mismatch. The file was drawn in inches but imported as millimetres, so each unit is treated as a millimetre instead of an inch and the part comes in 25.4 times too large. Set the import unit to inches, or scale the geometry down by 25.4.
Does a DXF file store its units?
A DXF has a header variable called INSUNITS that can record the intended unit, but it is not mandatory and many exporters leave it unset or wrong. When it is missing, the receiving software falls back to its own default, which is how a correct file ends up the wrong size. The coordinates themselves are just unitless numbers.
How do I set the scale of a DXF for laser cutting?
Don't trust the imported size. Pick one feature whose real measurement you know, an overall width or a hole spacing, measure it in the laser software, and scale the whole drawing until that feature reads correctly. Then check a second dimension to confirm. This works regardless of what units the file claims.
Why does my traced or converted DXF have no real size at all?
A DXF traced from an image carries the shape but not the scale, because the source image had no real-world dimensions. The geometry comes in at whatever size the tracer guessed, so you must set the true size yourself after importing, exactly as you would fix a unit mismatch.
