Free · no signup · your file stays on this device
SVG / DXF Tools

SVG to DXF for straight-segment artwork

Convert a local SVG with paths and basic shapes into an ASCII DXF in millimetres. Unsupported SVG features are rejected in your browser.

Drop one SVG into the panel above. The converter reads its viewBox and declared size, turns every supported shape into straight LINE and LWPOLYLINE entities, writes an ASCII DXF in millimetres, and stops with a visible list of refused elements instead of dropping them silently.

Choose one SVG. This local converter accepts a documented 2D subset and creates an ASCII DXF; it does not claim broad CAD or machine compatibility.

Scope: local browser processing; LINE and LWPOLYLINE only. Unknown units and unsupported semantics remain visible.

What the converter actually produces

The output is an ASCII DXF (AC1015) with $INSUNITS set to 4, so every coordinate is millimetres. Each supported path subpath becomes one LWPOLYLINE, a closing Z sets the closed flag, and a line element becomes a LINE entity. The Y axis is flipped once, which keeps the drawing the right way up when the file is opened in CAD or laser software.

Everything lands on layer 0. SVG groups, ids and CSS classes are not mapped to DXF layers, so a layer structure built in Illustrator or Inkscape does not survive. Circles and ellipses are approximated with 48 straight segments, and no curve is rebuilt as a spline or bulge.

What is converted and what is refused

SVG contentWhat the converter doesDownload available
path with M, L, H, V, Z (absolute or relative)One LWPOLYLINE per subpath; Z closes itYes
lineOne LINE entityYes
polylineOpen LWPOLYLINEYes
polygonClosed LWPOLYLINEYes
rect without rx or ryClosed four-point LWPOLYLINEYes
circle and ellipse48-segment closed polyline, an approximationYes
g with matrix, translate, scale or rotateTransform applied to child coordinatesYes
text, use, image, filter, mask, clipPath, style, symbolReported as outside the subsetNo
path commands C, S, Q, T, A (curves and arcs)Not parsed at allNo
href, xlink:href, url(), on* attributesTreated as unsafe contentNo
rect with rounded cornersCorner arcs are not approximatedNo

Where the physical size comes from

Size is read from the SVG root. A width and height in mm, cm, in, pt or px is converted to millimetres, with px taken at 96 dpi. When the root has no width and height, the viewBox numbers are treated as pixels. The drawing is never stretched to a size the file did not ask for.

The DXF stores millimetres only. If the next program needs inches, set the unit there rather than scaling geometry here, then measure one known dimension after import. A 25.4× or 1/25.4× mismatch is the usual symptom of a unit decision made twice.

A file you can compare

The 100 × 70 mm calibration drawing: one path with three subpaths becomes three closed LWPOLYLINEs on layer 0, and the bounds stay 100 × 70 mm.

Retry a supported-size SVG that was rejected

A supported-size SVG can still be refused if it uses a path command this converter does not accept. In this fixture, rejected.svg uses one quadratic Q at the upper corner; TraceDXF rejects it rather than silently dropping the curve.

corrected.svg replaces that Q with four straight chords and ends in Z. Both files keep the same 100 by 70 mm bounds; the approximation changes the corner shape itself, though the overall bounds remain unchanged. expected.dxf shows the measured result: one closed eight-vertex LWPOLYLINE with units mm. Retry with corrected.svg, then check one closed contour and the 100 by 70 mm dimensions.

  • Text-to-path output can still contain curve commands; flatten curves to straight segments if acceptable.
  • A centerline and a visible stroke outline are different geometry; convert stroke to an outline in your editor and recheck path commands and dimensions.
  • For a filter, clip, or mask, recreate the intended boundary as explicit supported 2D geometry; visible features are not automatically expanded.

Questions this page can answer

Does it convert curves or arcs?

No. The C, S, Q, T and A path commands are outside the subset and block the download. Only M, L, H, V and Z are read.

Will my layers be preserved?

No. Every entity is written to layer 0, so layer names and colours do not carry over.

Is the SVG uploaded anywhere?

No. Parsing and DXF writing happen in this browser tab and the file is not sent to a server.

Can I open the DXF in AutoCAD, LightBurn or Cricut?

The output is a plain ASCII DXF containing LINE and LWPOLYLINE entities. Whether a given program and version accepts it is a separate question; no such import is recorded for this page, so open your own file in your own software before you cut.