Markdown copy of https://cadquill.com/dxf-inches-to-mm/ (a CADQuill guide, language: en), from cadquill.com.

# Convert a DXF or DWG from inches to millimetres

The part comes out 25.4 times too small in the laser software, or the drawing says inches and your shop works in millimetres. Fix the units in your browser.

[Fix the units of a drawing](https://cadquill.com/app/)

## With the assistant

1. Open the drawing in the [editor](https://cadquill.com/app/).
2. Ask: *"Convert the drawing from inches to millimetres."*
3. The assistant scales everything by 25.4 (texts and dimensions too) and sets the drawing units to millimetres. Check the size with the measure tool, then apply.
4. Download it as DXF or DWG.

## With a script

The same change, written down, to run on every drawing of a set:

```
ops.scale(doc, {}, 25.4);
ops.setUnits(doc, "mm");
```

From millimetres to inches it is the other way: scale by 1 / 25.4 and set the units to "inch".

## Is it really in inches?

Not every file says its units, and some say the wrong ones. Measure a part you know: if a 100 mm plate measures 3.94, the drawing is in inches. If it measures 100 but your program shows it tiny, only the units setting is wrong: ask to set the units to millimetres without scaling.

## Questions

**Are the dimension values changed too?**

Yes. Dimensions are scaled with the geometry, so they show the new values.

**Is the file uploaded?**

No, the change is made in your browser.

## More guides

- [Open a DWG file online, without AutoCAD](https://cadquill.com/dwg-viewer/)
- [A free online CAD, in your browser](https://cadquill.com/free-online-cad/)
- [Convert DWG to DXF online](https://cadquill.com/dwg-to-dxf/)
- [Convert DWG to PDF online](https://cadquill.com/dwg-to-pdf/)
- [Convert DXF to DWG online](https://cadquill.com/dxf-to-dwg/)
- [Edit a DWG without AutoCAD](https://cadquill.com/edit-dwg-without-autocad/)
- [A free DXF editor, in your browser](https://cadquill.com/dxf-editor/)
- [Open and edit a DXF file online](https://cadquill.com/dxf-viewer/)
- [Change a text in a DWG or DXF](https://cadquill.com/change-text-in-dwg/)
- [Fix overlapping texts and dimensions in a DWG or DXF](https://cadquill.com/fix-overlapping-text-dxf/)
- [Delete duplicate lines in a DXF or DWG](https://cadquill.com/delete-duplicate-lines-dxf/)
- [Add dimensions to a DWG or DXF](https://cadquill.com/add-dimensions-dxf/)
- [Prepare a DXF for laser cutting](https://cadquill.com/prepare-dxf-for-laser-cutting/)
- [AutoCAD alternatives for DWG files: how CADQuill compares](https://cadquill.com/autocad-alternatives-browser/)
- [Text to DXF and DWG: describe a drawing, get a CAD file](https://cadquill.com/text-to-dxf/)
- [Put one part in front of another, without masks](https://cadquill.com/remove-hidden-lines-dwg/)
- [Open a DWG on a Mac, a Chromebook, Linux or an iPad](https://cadquill.com/open-dwg-on-mac/)
- [Convert DXF to PDF online](https://cadquill.com/dxf-to-pdf/)
- [Convert DXF or DWG to SVG online](https://cadquill.com/dxf-to-svg/)
- [Convert DWG or DXF to PNG online](https://cadquill.com/dwg-to-png/)
- [Convert DWG or DXF to STL, OBJ, GLB or STEP](https://cadquill.com/dwg-to-stl/)
- [Convert to DXF R12 online](https://cadquill.com/dxf-r12-converter/)
- [Save a drawing for an older AutoCAD](https://cadquill.com/dwg-to-older-version/)
- [Measure a DWG or DXF online](https://cadquill.com/measure-dwg-online/)
- [An AI assistant for DWG and DXF drawings](https://cadquill.com/ai-assistant-dwg/)
- [Text to 3D CAD: describe a part, get a STEP file](https://cadquill.com/text-to-step/)
- [Sketch to 3D model](https://cadquill.com/sketch-to-3d-model/)
- [Free 3D CAD online](https://cadquill.com/free-3d-cad-online/)
- [STEP viewer online, free](https://cadquill.com/step-viewer/)
- [STL viewer online, free](https://cadquill.com/stl-viewer/)
- [3MF viewer online, free](https://cadquill.com/3mf-viewer/)
- [OBJ viewer online, free](https://cadquill.com/obj-viewer/)
- [Convert STL to STEP online](https://cadquill.com/stl-to-step/)
- [Convert STEP to STL online](https://cadquill.com/step-to-stl/)
- [Convert OBJ to STL online](https://cadquill.com/obj-to-stl/)
- [Convert 3MF to STL online](https://cadquill.com/3mf-to-stl/)
- [Convert STL to OBJ online](https://cadquill.com/stl-to-obj/)
- [Convert STEP to OBJ online](https://cadquill.com/step-to-obj/)
- [Convert OBJ to STEP online](https://cadquill.com/obj-to-step/)
- [Convert STL to 3MF online](https://cadquill.com/stl-to-3mf/)
- [Convert STEP to 3MF online](https://cadquill.com/step-to-3mf/)
- [PDF to 3D model](https://cadquill.com/pdf-to-3d-model/)
- [AI CAD generator](https://cadquill.com/ai-cad-generator/)
- [Examples: one message, and what came out](https://cadquill.com/examples/)

Last changed on 2026-11-14.
