SVG to DXF Converter
Runs in your browser — your files are never uploaded.
Convert SVG vector artwork into a DXF file for CAD, CNC and laser cutting — at the size you actually drew it. OkConverter reads your paths, lines, polygons, rectangles, circles and ellipses, applies their transforms, flips the Y axis for CAD, and writes the geometry at true size in millimetres or inches, with a matching unit declaration in the DXF header. The measurements in the file are the measurements you drew. Everything runs locally in your browser — your file is never uploaded.
How to convert SVG to DXF
- 1
Drop your .svg file onto the box, or click to choose one.
- 2
Pick the unit your CAD or laser software expects — millimetres or inches.
- 3
Click “Convert”, check the output size shown, then “Download”.
Share
Embed this tool on your site
Paste this where you want the tool to appear. It runs entirely in your visitor's browser — no uploads, no account, no tracking.
Please keep the attribution line — it's what keeps these tools free.
Need a different size, a dark theme, or a different tool? Build an embed lets you preview it first.
Frequently asked questions
What gets converted?+
Geometric shapes: paths, lines, polylines, polygons, rectangles, circles and ellipses. Curves and arcs are flattened to smooth polylines. Text, images and fills are not exported — DXF is a vector-geometry format.
Should I choose millimetres or inches?+
Pick whichever your machine software is set to. The physical size of your part is identical either way — a 200 mm plate is the same object as a 7.874 in plate — so this only changes the numbers written into the file and the unit declared in its header. Millimetres is the default because most laser and CNC workflows use it.
Which DXF version is produced?+
AutoCAD 2000 (AC1015) ASCII DXF by default. That is the oldest revision in which the unit declaration is part of the specification, which is what makes your millimetres-or-inches choice binding rather than a hint. You can switch the output to R12 (AC1009) if you are feeding an older machine controller that rejects newer files — the geometry is still written at true size, but R12 has no official way to record the unit, so you may need to set it on import.
Will my part import at the right size?+
Yes. The geometry is written at true size — a 200 mm plate is 200 units across, not 755 — and the header declares which unit that is through $INSUNITS (4 for millimetres, 1 for inches). Because the default output is AutoCAD 2000 format, that declaration is part of the DXF specification rather than an extension, so CAD, CAM and laser software reads it and places the part at 1:1. The one case that still needs care is switching the output to R12 for an older controller: R12 predates $INSUNITS and is unitless by specification, so while the geometry remains correct, you may have to tell your importer it is in millimetres.
What size will the DXF be if my SVG has no units?+
If your SVG declares a physical size — for example width="200mm" from Inkscape — that size is honoured exactly. If it only has pixels or a bare viewBox there is no real-world size to read, so OkConverter reads the pixels at 96 per inch, the ratio fixed by the CSS specification. A 96-pixel square becomes 25.4 mm. To control the result precisely, set your document to millimetres before exporting the SVG.
Why is my design flipped compared to the screen?+
It isn’t — SVG measures Y downward while DXF measures Y upward, so OkConverter flips the Y axis so your design appears the right way up in CAD tools.
Are my files uploaded?+
No. The conversion runs entirely in your browser on your device — your SVG is never uploaded.