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

Toolpath Preview
Cut Rapid

How to Use

1

Upload SVG file

Upload your vector design as an SVG file.

2

Configure machine settings

Set feed rate (mm/min), spindle speed (RPM), safe height, and cut depth.

3

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?
G-Code is the programming language used by CNC machines, 3D printers, laser engravers, and similar equipment. It specifies tool movements (G0, G1, G2, G3), spindle speed (S), feed rate (F), and other machine parameters.
Will this work with my GRBL controller?
Yes. The output is standard G-Code compatible with GRBL 0.9, 1.1, and most popular CNC controllers.
What settings should I use for laser engraving?
For laser, set spindle speed as laser power (0–255 or 0–1000 depending on your firmware), feed rate to your material's recommended value, and cut depth to 0 (laser does not move in Z).
Can I preview the toolpath?
A live toolpath preview is shown before download, so you can verify the path order and coverage.

Related Tools

Explore other tools in this category.

Looking for something else?