Skip to content

SVG to DXF converter for laser cutters and CNC

Flatten SVG Bezier paths, arcs, primitives, and nested transforms into clean AutoCAD R12 (AC1009) DXF geometry ready for LightBurn, Cricut, and CNC CAM.

Your files are open only in this tab. Nothing is uploaded.

SVG vector input

Flattens Bezier curves, arcs, transforms, and primitives into clean AutoCAD R12 DXF geometry.

Drop an SVG drawing here

Converted locally for laser cutting, CNC routing, and CAD.

How to use SVG to DXF converter

  1. Upload an SVG file, paste SVG markup, or load the sample bracket. Drop a vector drawing into Choose SVG, paste raw XML paths directly, or inspect the 100 mm by 80 mm sample laser bracket.
  2. Choose CAD units, source DPI, and DXF entity mode. Set Millimeters (mm) or Inches (in), pick 96 DPI (Inkscape / Web) or 72 DPI (Illustrator), and select POLYLINE / VERTEX or Flat LINE segments.
  3. Adjust curve tolerance and stroke color layers. Drag Curve tolerance between 0.02 and 1.50 mm, and check Layers by color to group cut and engrave paths into ACI layers.
  4. Convert SVG to DXF and inspect the wireframe before downloading. Click Convert SVG to DXF, review the Y-up CAD preview and ACI layer counts, then download the .dxf file.

Your files are processed on this device and never uploaded. They stay private, and there's nothing to delete afterwards.

Why convert SVG files to AutoCAD R12 DXF?

Laser cutters, vinyl plotters, and CNC CAM suites import AutoCAD R12 (AC1009) ASCII DXF reliably because every curve simplifies into deterministic straight coordinate segments without proprietary Bezier extensions. According to the Library of Congress ASCII DXF specification, ASCII DXF remains the universal CAD baseline across LightBurn, Cricut Design Space, and workshop routers.

This browser SVG to DXF converter runs inside local worker memory so bracket CAD drawings never cross external networks. Graphic editor exports often retain unused clip masks or nested styles that complicate machine parsing, so you can optimize SVG markup and flatten redundant tags before conversion.

Every generated CAD drawing writes clean AC1009 header tables alongside explicit millimeter or inch $INSUNITS metadata. Shop controllers load flattened geometry immediately without choking on newer spline objects or nested styling rules.

Important: AutoCAD R12 (AC1009) omits complex SPLINE records intentionally. Flattening paths into verified vertex loops prevents open contour errors in laser controllers.

Flattening Bezier curves, 96 DPI scaling, and transforms

Turning web graphics into fabrication geometry takes four deterministic geometry steps inside the browser worker. Raw bitmap artwork such as scanned logos or ink sketches cannot be flattened directly until traced into coordinates; start by using our vector tracer to convert raster logos into editable vector outlines first.

Adaptive Bezier curve tolerance from 0.02 to 1.50 mm

Every SVG <path> string supports M, L, H, V, C, S, Q, T, A, and Z drawing instructions defined in the W3C SVG 2 Paths specification. Rather than subdividing curves into fixed step counts that look jagged on large arcs and bloated on tiny fillets, adaptive de Casteljau splitting tracks midpoint flatness error.

The Curve tolerance slider spans 0.02 to 1.50 (0.15 mm default, internally clamped from 0.01 to 5). Primitive shapes convert alongside paths: rounded rectangles generate corner arcs, ellipses emit 48 chords, and circles adapt between 16 and 96 chords based on radius.

Resolving 96 DPI Inkscape and 72 DPI Illustrator units

Physical dimensions depend directly on whether the source SVG declares explicit millimeter, centimeter, inch, point, or pica dimensions. When documents specify unitless pixel counts or missing physical headers, scale derives from 25.4 / sourceDpi across viewBox rectangles.

  • Inkscape and web exports: Set Source CSS DPI to 96 DPI so CSS pixel ratios (96 px per inch) convert accurately into real millimeters or inches.
  • Legacy Illustrator SVGs: Switch to 72 DPI (72 px per inch convention) whenever designs from older Adobe exports import one-third smaller than expected.
  • Ignored non-geometry: The XML tree walker strips <defs>, <clipPath>, <mask>, and <pattern> tags cleanly so hidden editor stencils never trigger stray cutter moves.

Converting transforms and flipping CAD Y-up origin

Web SVGs stack matrix, translate, scale, rotate, skewX, and skewY attributes across nested <g> groups relative to a top-left down-pointing Y axis. Our converter multiplies every nested 2D affine matrix down to raw leaf shapes before translating coordinates.

After evaluating transforms and converting physical units, the exporter shifts bounding boxes cleanly so the bottom-left part corner lands at (0, 0) and flips Y coordinates upward (maxY - y, rounded to 4 decimals). Both LightBurn and CAD viewers display upright geometry matching the live CAD wireframe preview.

Color-based DXF layers and ACI cutting groups

Checking Layers by color maps SVG stroke and fill hex values into distinct AutoCAD Color Index (ACI) tables so laser operators assign speed and power settings per pass automatically. Coordinate unit handling aligns with the W3C SVG 2 Coordinate Systems specification for consistent origin mapping across nested design groups.

DXF Layer Name ACI Code Trigger SVG Colors Fabrication Role
CUT_RED 1 Red strokes (#ef4444, #ff0000) Outer contour and through-cut paths
SCORE_YELLOW 2 Yellow or amber (#eab308, #ffff00) Fold crease lines and light scoring
CUT_GREEN 3 Green strokes (#22c55e, #00ff00) Secondary interior pocket cuts
GUIDE_CYAN 4 Cyan or teal (#06b6d4, #00ffff) Alignment jigs and non-cut guides
ENGRAVE_BLUE 5 Blue strokes (#2563eb, #0000ff) Surface etching and text marking
FILL_MAGENTA 6 Magenta or purple (#d946ef, #ff00ff) Area raster fills and hatch targets
LAYER_0 7 Black, gray, or unmapped hex Default fallback vector geometry

Numeric coordinate transformations also appear in geospatial workflows where vector waypoints switch projection frames. Engineers debugging path precision across formats sometimes rely on coordinate-based GPX and GeoJSON geometry cleanup for GPS tracks.

Choosing POLYLINE or flat LINE segments for CAM

DXF HEADER metadata writes $ACADVER as AC1009 alongside $INSUNITS (4 for millimeters or 1 for inches) and $EXTMIN/$EXTMAX part bounds. Choosing between grouped loops and raw line entities changes how CAM tools chain toolpaths.

POLYLINE closed contours versus flat LINE segments

Following the Autodesk DXF POLYLINE documentation, POLYLINE / VERTEX mode writes group code 66=1, marks closed shapes with flag 70=1, emits individual VERTEX points, and terminates each shape cleanly with SEQEND. Keeping closed flags intact prevents open corner gaps during laser kerf compensation.

Switching DXF entities to Flat LINE segments breaks every polygon edge and tessellated arc into disconnected two-point LINE entities. Use flat lines strictly for legacy plasma tables or firmware parsers lacking POLYLINE chaining support.

Testing laser bracket geometry offline before cutting

Clicking Load sample CAD SVG imports laser-bracket-sample.svg, a 100 mm by 80 mm mounting plate containing a red perimeter loop with four corner holes on CUT_RED and a blue translated center slot on ENGRAVE_BLUE. Reviewing the AutoCAD R12 layers summary table confirms vertex density before firing physical lasers.

  • Closed-loop check: Verify expected path counts per color group inside the layer table before exporting .dxf.
  • 3D print companion checks: Flat bracket layouts frequently pair with 3D printed housings, so complete local STL mesh verification before 3D printing before starting multi-material builds.

Questions

Why is my DXF export the wrong size between Inkscape and Adobe Illustrator?

Web browsers and modern Inkscape assume 96 DPI when SVG widths omit physical units, whereas legacy Illustrator exports assume 72 DPI. Switching the Source CSS DPI selector between 96 DPI and 72 DPI prevents a 1.333x scaling error when your SVG lacks explicit millimeter or inch width attributes.

Should you export POLYLINE VERTEX loops or flat LINE segments for laser cutting?

Keep POLYLINE / VERTEX selected for modern LightBurn, Fusion 360, and Cricut imports because closed contours carry DXF group flag 70 equal to 1 as single joinable loops. Switch to Flat LINE segments only when older Mach3 or legacy CNC controllers reject POLYLINE entity headers.

What curve tolerance setting works best for CNC milling and LightBurn?

The default 0.15 mm chordal tolerance balances smooth curved slots against compact vertex counts for most plywood, acrylic, and aluminum parts. Lower Curve tolerance toward 0.02 mm for tiny precision gears or raise it toward 0.50 mm on large signage to reduce CAM path clutter.

How does Layers by color separate cut, score, and engrave strokes into DXF layers?

When enabled, the parser inspects hex and named stroke or fill colors on every SVG shape and assigns matching AutoCAD Color Index codes. Red outlines land on CUT_RED (ACI 1), blue paths land on ENGRAVE_BLUE (ACI 5), and neutral strokes fall back to LAYER_0 (ACI 7).

Does pasted or uploaded SVG artwork leave the browser during DXF generation?

All XML parsing, transform composition, curve tessellation, and DXF serialization execute inside your browser Web Worker. Proprietary enclosures, hardware brackets, and commercial stencils stay strictly in local device memory without remote uploads.

Updated