Skip to content

SVG to DXF for laser cutting: sizes, curves, fills and strokes from Inkscape, Illustrator and CorelDRAW

Vector art becomes a cut file when every shape you want cut is a closed path at the right size, text and thick strokes are converted to outlines, and nothing hidden, clipped or embedded is left in. Size is the usual trap: an SVG pixel is 1/96 inch, but Illustrator works at 72 pixels per inch, so the same art can arrive at 75 % or 133 %. Zorocut reads SVG directly, so you may not need a DXF at all.

7 min read · Updated · By the Zorocut team
Steps
  1. Set the document size in mm before you export
  2. Convert text and strokes to paths, release clips, and delete images and hidden objects
  3. Save as SVG (or as DXF in mm) and open it in the DXF checker
  4. Measure one dimension you know before you quote

Units: 96, 72 and the viewBox

CSS and SVG define 1 in = 96 px and 1 pt = 1/72 in. The root of an SVG can carry a width and a height with a unit (mm, in, pt, px…) and a viewBox: four numbers giving the rectangle of drawing coordinates that is fitted into that width and height. A width or height without a unit is in px. Illustrator works at 72 px per inch: in Adobe's community forum, a 10 cm square exported as 283.46 px where 377.95 px was expected — 72 against 96 per inch, so a 96-per-inch program shows it at 75 %. Adobe's community experts suggest unchecking Responsive in the SVG export, which writes fixed dimensions.

The SVG's root saysHow Zorocut reads it
width and height in mm, cm or in, and a viewBoxExactly: the viewBox is scaled to that size
width and height in px or without a unitOne unit = 1/96 in; 1/72 in in an Illustrator file
width and height in ptOne pt = 1/72 in
A viewBox only, or width and height in %One unit = 1/96 in (1/72 in for Illustrator), with the warning “The SVG has no size in mm”
width and height that don't keep the viewBox's proportionsRead at the smaller scale, with a warning

Zorocut treats a file as an Illustrator file when it finds the comment “Generator: Adobe Illustrator” in it. If some tool has stripped that comment, an Illustrator file in px is read at 96 per inch and comes in at 75 % — which is why you measure one known dimension.

Curves

  • Circles, and SVG arcs with equal radii, stay true arcs; so do rounded rectangle corners with equal radii.
  • Béziers and ellipses are fitted with arcs and lines within 0.01 mm and listed as approximated in the pre-cut check.
  • If you export a DXF from Inkscape instead, each Bézier segment becomes its own SPLINE and a document in px is written without a unit at 96 px per inch — see DXF units and splines and arcs.

Fills, strokes, text, clips

In the artWhat Zorocut readsDo this first
A filled shapeIts outline; the fill is ignoredNothing, if the outline is closed
A thick strokeOnly the centre line, as an open contour: the stroke width is ignoredConvert the stroke to a path (Path → Stroke to Path in Inkscape)
TextSkipped and countedConvert to paths: Object to Path in Inkscape, Create Outlines in Illustrator
A clipped or masked objectThe whole object: the clip is not appliedRelease the clip and use Path → Intersection so only the visible part stays
Embedded images, clonesSkipped and countedRedraw images as vectors; turn clones into real paths
Hidden objects and layersSkippedDelete them, so nobody cuts them by showing the layer
Overlapping shapes meant as one outlineSeparate contours that cross, not one partPath → Union

The Inkscape commands are in its own manual: Object to Path turns a shape into a path, Stroke to Path turns a stroke into its own object, Union keeps the common outline, Intersection keeps only what all selected paths cover, and a clip only hides what lies outside it — the hidden part is still in the file.

Layers

In an Inkscape SVG, each layer's name becomes a layer name; in other SVGs, the id of each top-level group does. The names decide the process the same way as in a DXF: MARK, ETCH or SCRIBE is marking, ENGRAV engraving, names containing TEXT, DIM, BORDER and the like are left out, everything else is cut. Colours are not used. (SheetCAM, by contrast, can turn colours into layer names on SVG import.)

By program

  • Inkscape: set the document unit to mm and save as Inkscape SVG, which keeps the layer names Zorocut reads. Its DXF exporter converts text to paths by itself but writes px documents without a unit.
  • Illustrator: draw in mm, uncheck Responsive in the SVG options, use Create Outlines for text. A part at 75 % is the 72/96 mismatch.
  • CorelDRAW: we found no documentation of how its SVG export sets the size. Export a 100 mm test square once and check that it reads as 100 mm.
  • Raster logos (PNG, JPG) hold nothing to cut until someone redraws them as vectors. Zorocut reads DXF and SVG only: save AI, EPS, PDF or CDR files as SVG first.

Sources

  1. W3C, CSS Values and Units Module Level 3, §5.2 Absolute lengths
  2. W3C, SVG 2, Coordinate systems, transformations and units (viewBox)
  3. Adobe Community, Illustrator: incorrect size when exporting SVG file (2020)
  4. Adobe Community, Illustrator: vectors scaled down 75% when saving SVGs (2023)
  5. Inkscape Beginners' Guide, Release 1.3 (PDF): paths, Boolean operations, clipping
  6. Inkscape extensions, DXF outlines exporter (dxf_outlines.py)
  7. Inkscape extensions, DXF outlines exporter options (dxf_outlines.inx, 96 px = 1 in)
  8. SendCutSend, Preparing text for laser cutting
  9. SheetCam TNG Setup and Operation Manual v3.1.17

Stuck on something else? Ask — the Zorocut team answers every question.

Ask a question

Nesting and quoting tips in your inbox

About one e-mail a month: nesting and quoting tips, fixes for the problems people ask about in the community, and Zorocut news.

About one e-mail a month with new cutting and quoting guides, videos and Zorocut news. We e-mail you a link to confirm first, and you can unsubscribe anytime. Privacy policy

Nest and price it in Zorocut

The spacing rule, unit check, starter speeds and quote formula from these guides are built into Zorocut Nest and the free online nester. Your DXF files stay on your computer.