Skip to content
Vecaria
Go Pro

SVG to G-code Generator

SVG to G-code turns SVG outlines into laser and engraving toolpaths: drop the file, set pass depth, tabs and tools, preview the path on the page (solid = cut, dashed = rapid), then download standard G-code for GRBL or Marlin.

This tool runs entirely in your browser — your files are never uploaded to a server.

  • Formats: SVG, G-code
  • Flow: SVG outlines → laser / engraving G-code
  1. Drop an SVG file that contains <path> elements (run Object to Path in Inkscape/Illustrator for shapes).
  2. Set sampling, feed, Z heights, tabs and pass depth as needed; optionally maintain a tool library (name/diameter/feed/rpm — shared across the CNC converter pages in this browser) and assign tools per path.
  3. Pick the work coordinate system (G54–G59, default G54), then click “Convert & download” — the .gcode file saves automatically, with an in-page toolpath preview.
  • Paths are sampled into polylines (Bézier/arc approximation).
  • Transforms: translate/scale/rotate/matrix are applied (including nested <g> accumulation and per-path transform); skew and other transform functions are ignored.
  • Subpaths inside one <path> (multiple M commands) are cut as separate toolpath segments with rapid G0 moves between them — no bridging cut across disjoint shapes.
  • Drop an SVG → set depth/tabs → click Convert & download

Open SVG to G-code Generator in the tools site →