Blog / Guide
November 3, 2026 · 5 min read
Why your DXF imports 25.4 times too big or too small

Greg Dlubacz
Design Engineer

The numbers in a DXF have no unit attached, so whatever opens the file has to decide what a 100 means. Read a file drawn in inches as millimetres and it comes in 25.4 times too small. Read a file drawn in millimetres as inches and it comes in 25.4 times too big. To fix it, find out what the file was really drawn in, set that as the import unit before you import, and measure one dimension you know before you cut.
The factor tells you what went wrong
Measure the part as it came in and divide by the size it should be. The ratio is rarely random, and each common one points at a specific mix-up:
| Off by | What happened | A 100 mm part comes in at |
|---|---|---|
| 25.4 times too small | Drawn in inches, read as millimetres | 3.94 mm |
| 25.4 times too big | Drawn in millimetres, read as inches | 2,540 mm |
| 10 times too big | Drawn in millimetres, read as centimetres | 1,000 mm |
| 2.54 times too big | Drawn in centimetres, read as inches | 254 mm |
| 3.78 times too big | Drawn in pixels at 96 per inch, read as millimetres | 378 mm |
If your ratio is none of these, the file itself may be odd. In one LightBurn forum thread the coordinates turned out to be in microns. The fallback there is the same one we'd give you: scale it against a dimension you know.
What the file says about itself
A DXF can name its unit in a header variable called $INSUNITS. A DXF is plain text, so you can open it in any text editor and search for that word. The value is two lines down. This is from the header of a file Tracer writes:
$INSUNITS
70
4| Value | Unit |
|---|---|
| 0 | No unit set |
| 1 | Inches |
| 2 | Feet |
| 4 | Millimetres |
| 5 | Centimetres |
| 6 | Metres |
There are three ways that header lets you down. It can be missing: as LightBurn's Oz puts it, “DXF often do not store the unit of measurement they were created in.” It can be 0, which says nothing. And it can be wrong: users on Onshape's forum reported exports with $INSUNITS set to inches while the numbers were in the document's own unit, so a 500 mm line arrived as 500 inches. That report may be out of date, but the failure is a general one.
The header doesn't change the geometry, and this is the part people miss. We took a file of ours, changed that 4 to a 1, and read both with the ezdxf library: every coordinate came back identical. The label changed and the numbers didn't. In ezdxf's words: “Any length or coordinate value in DXF is unitless in the first place.” So if the numbers are right for millimetres and the label says inches, fixing the label is enough. If the numbers themselves are wrong, it isn't.
What the program does with it
We don't own all of these, so this comes from their documentation and forums rather than our own tests. Check it against your version.
- LightBurn has DXF import units under Edit > Settings > File Settings, and an “Auto-detect units if possible” option. Oz's advice: “If the file doesn't specify it, then you have to manually set the units to interpret the file in, before you import.” If auto-detect picks wrong, turn it off and choose the unit yourself.
- Fusion asks only if you bring the file in the right way. An Autodesk specialist says to use the Insert command, where a dialogue asks which unit you want. Forum users report that a DXF without units otherwise defaults to centimetres, which makes a millimetre part 10 times too big.
- Silhouette Studio doesn't carry the size at all. Silhouette's own support page says DXF files “are not formatted such that they retain size information”, so you set the size after you open the file.
The check that saves the sheet
- Know one real dimension before you import. A hole diameter, an overall width, anything you can state in millimetres.
- Set the import unit first, then import. The setting applies when the file comes in, so if it's already on your canvas, delete it and bring it in again.
- Measure that dimension in the program, not by eye against the bed. A part 25.4 times too small on a big bed can look like a small part you meant to cut.
- If it's off, scale by the exact factor, with the aspect ratio locked: 25.4, or 0.03937 going the other way. Don't type a size you estimated, or holes and slots stop fitting.
- Fix the source if you'll cut it again. Re-export with the right unit, or correct
$INSUNITSin a text editor if the numbers are already right. A scale you have to remember every time is a mistake waiting for a busy day.
What a Tracer DXF does
A Tracer DXF declares millimetres ($INSUNITS is 4) and writes every coordinate in millimetres, with the longer side at 100 mm. An image has no physical size to carry over, so that 100 mm is a starting point, and you'll scale it to the size you want in your laser software. It comes through PNG to DXF from a picture, or SVG to DXF from a vector you already have, which shows you the size and how many closed shapes the file holds before you download. The preview is free; downloading the DXF is part of Pro.
Try it on your file
You know what to look for.
Now check your own image.
Upload it and compare the vector with the original before you download anything. SVG export is free.