SVG to DXF converter
Turn an SVG into a DXF in millimetres for your laser or CNC. Lines that touch are joined, and open shapes, double lines and crossings are shown before you download. The file never leaves your browser.
Your drawing appears here, at true size, with every line checked before you download it.
A DXF your laser reads at the right size
SVG files describe their size in many ways: millimetres, inches, points, or pixels whose real size depends on the program that saved them. DXF files for lasers and CNC machines should simply be in millimetres. The converter reads the SVG's width, height and viewBox, applies every transform and scale, and writes a DXF whose units are set to millimetres, so LightBurn, xTool Creative Space, Fusion or FreeCAD open it at true size. The size of your drawing is shown above the problems list so you can check it before you download.
Problems are shown, not hidden
A laser cuts exactly the lines in the file. A shape that is not closed will not drop out as a part; two lines on top of each other are cut twice and burn the edge; outlines that cross make parts fall apart. The converter checks the file it writes for all of these and explains what it found in plain words. It only joins lines whose ends are at the same point, which is how many CAD programs export one outline as separate pieces. Anything else stays as it was drawn.
Cuts, scores and engraves
With “All cuts”, every outline becomes a cut line, filled shapes included, which is what most SVG to DXF conversions need. With “By colour”, filled shapes become engrave areas, blue lines become scores and other lines become cuts, on separate DXF layers named CUT, SCORE and ENGRAVE with matching colours.
Pictures instead of drawings
A PNG or JPG has no lines to convert: it has to be traced first. Open it here or use the image to DXF page, which explains the tracing settings. To make a box from scratch, use the box generator.
Questions
Why is my DXF the wrong size?
Usually because the SVG is sized in pixels. Inkscape and browsers use 96 pixels per inch, Illustrator 72. Pick the right one under “If the file is sized in px”; files sized in mm, cm or inches are read exactly.
Does the converter close open shapes?
Only where the ends of separate lines are at the same point, as CAD programs export them. A real gap, however small, is shown as a problem and left as it is, so you decide how to fix it.
Are curves kept?
Curves and arcs are turned into short straight segments that stay within 0.01 mm of the true curve, which every laser and CNC program reads.
What about text in the SVG?
Text needs a font, which a DXF cannot carry. Convert text to paths in your drawing program first; the converter tells you if it skipped any.
Is my file uploaded?
No. The file is read and converted in your browser, and the DXF is saved straight from it.