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.
Maker & CNC Workflow Suite
Seamlessly move your design from vector artwork to machine-ready G-code. Use our connected suite of free, private fabrication tools.
AutoCAD R12/R14 DXF export for LightBurn, Fusion 360 & CAD.
Convert engineering DXF drawings back to clean web-ready SVG vectors.
Convert vector boundaries and polygons to GeoJSON & KML for QGIS and web mapping.
Generate clean GRBL G-code toolpaths directly from SVG files for laser & routers.
Raster photo engraving with M4 dynamic power & Floyd-Steinberg dithering.
Interactive 2D/3D cut simulation, time estimate, and workpiece bounds check.
CAM toolpath generation for Mach3, LinuxCNC, and multi-pass CNC routing.
Calculate optimal spindle RPM, feed speed, and chip load per tooth.
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.
DXF to G-Code Converter
Convert DXF files directly to G-Code for CNC routers, mills, and laser cutters. Configure all machine parameters and download ready-to-run G-Code.
SVG Closed Path Checker
Check whether all paths in an SVG file are closed. Closed paths are required for laser cutting and CNC routing to produce complete cuts.
SVG to DXF for CNC
Convert SVG to DXF specifically optimised for CNC routing and milling. Ensures paths are clean, closed, and scaled correctly for your machine.
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.
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.