Canonical: https://toolipedia.app/svg-to-gcode

# SVG to G-code Converter

Turn SVG paths, shapes and curves into G-code for a router, laser or pen plotter with feed rate, depth passes, units and a toolpath preview.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > SVG to G-code Converter

## About SVG to G-code Converter

G-code is the list of moves a router, laser or pen plotter follows. This tool reads the SVG you paste, flattens every path, rectangle, circle, ellipse, line and polygon into short straight G1 moves, applies the scale and moves the drawing to 0, 0 with the Y axis flipped, because SVG points down and machines point up. You set feed rate, plunge rate, safe height, total depth and depth per pass, or choose laser or pen mode. A preview shows the cut path and the dashed rapid moves, so you can check it before it goes near material.

## How to use SVG to G-code Converter
1. Paste your SVG code or open an .svg file and check the unit and scale so the size matches your design.
2. Pick the machine type and set the feed rate, depth, depth per pass and safe height.
3. Check the toolpath preview, then copy or download the G-code and run an air cut first.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- svg to g code converter
- svg to gcode online
- convert svg to gcode for cnc
- svg to gcode for laser
- svg to grbl gcode
- svg path to gcode toolpath preview

## Frequently asked questions

### Does the converter use G2 and G3 arc commands?

No. Curves are cut as many short straight G1 moves, controlled by the curve accuracy field. That is accurate enough for most work and works on every controller, including GRBL, Marlin, Mach3 and LinuxCNC.

### Which SVG elements are not converted?

Text, images, gradients and use elements are skipped, and the page lists what it skipped. Convert text to outlines in your drawing program first. Stroke width and fill are ignored, so the toolpath follows the centre line of every shape.

### Why is my design mirrored or the wrong size?

Tick the flip Y option when the design appears upside down. For size, the page uses the width, height and viewBox of the SVG when present; otherwise choose what one SVG unit means, such as 1 px at 96 per inch.

### Is SVG to G-code Converter free?

Yes. SVG to G-code Converter on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with SVG to G-code Converter:
- [SVG to DXF Converter](https://toolipedia.app/svg-to-dxf)
- [SVG to data URI](https://toolipedia.app/svg-to-data-uri)
- [SVG to Android Vector Drawable](https://toolipedia.app/svg-to-android-vector-drawable)
- [Lines of code counter](https://toolipedia.app/code-line-counter)
- [SVG to React component](https://toolipedia.app/svg-to-react)
