SVG to G-Code Converter
Convert SVG files to G-Code for CNC machines, laser engravers, and pen plotters. Configure feed rates, cutting depth, and spindle speed.
Drop SVG file here or click to browse
Processed in browser · Private & Instant
Toolpath & Machine Settings
How to Use
Upload SVG file
Upload your vector design as an SVG file.
Configure machine settings
Set feed rate (mm/min), spindle speed (RPM), safe height, and cut depth.
Generate and download G-Code
Click Generate. Download the .gcode or .nc file and load it into your machine controller.
How SVG to G-Code Conversion Works
G-Code is the universal machine language for CNC equipment. Converting SVG to G-Code involves two steps: path extraction and toolpath generation.
First, the SVG file is parsed to extract all vector paths — lines, arcs, Bézier curves, rectangles, circles, and polygons. These are then sampled and linearised into a sequence of G0 (rapid) and G1 (linear interpolation) or G2/G3 (arc interpolation) moves that follow the path contour.
For each move, the converter inserts the configured feed rate (F), spindle speed (S), and Z coordinates (for plunge depth and safe height). The result is a standard G-Code file that can be loaded into any G-Code sender such as UGS (Universal Gcode Sender), bCNC, or directly into the machine's controller.
Key Settings Explained
- Feed Rate: How fast the tool moves through material, in mm/min. Depends on material and tool.
- Spindle Speed: Router RPM or laser power level.
- Cut Depth: How deep the tool plunges per pass. For laser, this is typically 0.
- Safe Height: The Z height for rapid moves between cuts, above any clamps or fixtures.
Real-World Examples & Use Cases
CNC Router Cutting
Convert an SVG sign design to G-Code for cutting on a CNC router from materials like MDF, plywood, or acrylic.
Laser Engraving
Turn an SVG logo into G-Code for a diode or CO₂ laser engraver.
Pen Plotting
Generate G-Code for a pen plotter to produce precise line drawings from SVG artwork.
Frequently Asked Questions
What is G-Code?▼
Will this work with my GRBL controller?▼
What settings should I use for laser engraving?▼
Can I preview the toolpath?▼
Related Tools
Explore other tools in this category.
SVG to G-Code CNC Converter
Convert SVG to G-Code optimised for CNC routers. Configure passes, cut depth, and feed rates for wood, aluminium, and acrylic cutting.
SVG to G-Code Laser Engraver Converter
Convert SVG to G-Code for laser engravers and laser cutters. Supports GRBL, Smoothieware, and Marlin laser mode. Configure power and speed.
SVG Path to G-Code Generator
Generate G-Code directly from SVG path data. Paste or upload an SVG path and get optimised G-Code toolpaths for CNC and laser machines.
SVG to DXF Converter
Convert SVG files to DXF format instantly in your browser. No upload required — your files stay private.
CNC Feed Rate Calculator
Calculate optimal CNC feed rates and spindle speeds for any material and tool combination. Uses chip load formulas for wood, aluminium, acrylic, and more.
SVG to DXF (MM Scale Preserved)
Convert SVG to DXF with millimetre scale preserved. Ideal for precision manufacturing where exact real-world dimensions matter.