SVG to G-code Converter: the complete guide
SVG files are everywhere: Cricut and Silhouette cutting and websites and icons. It has no native idea of physical units, so whether a width means millimetres depends on the program reading it. That is when people search for SVG to G-code, and it is what this page does: the same geometry, carried across with its scale and the right way up.
Searching for SVG to G-code converter lands you here too. The steps are short: drop your SVG into the box above, check the result, and download a G-code when it looks right.
SVG and G-code: what changes
- SVG: An XML document describing shapes as coordinates and curves rather than pixels. It has no native idea of physical units, so whether a width means millimetres depends on the program reading it.
- G-code: Motion commands a controller runs directly: move here, at this speed, with the tool on. No interpretation left. The machine does exactly what the file says.
How the SVG to G-code converter works
An SVG already holds shapes, so it is not traced at all. Its paths are read directly (curves, lines and the transforms applied to them) and written out as a G-code, so nothing is thrown away and re-approximated.
The G-code moves the tool along those paths with the tool off for every reposition and a safe retract before every rapid, and the toolpath is drawn for you to check before you download.
What the G-code is used for
- Laser cutting and engraving
- CNC routing
- Sending straight to the controller
Why convert SVG to G-code here
- No re-tracing. Your SVG geometry is carried across, not redrawn from pixels.
- Units stated. G-code output says what its numbers mean.
- Checked before you cut. The output file is read back and drawn on screen.
- Private. The conversion runs in your browser.
Tips for the best G-code
- Convert text to outlines in your design software before converting, so fonts are not needed.
- Convert text to outlines in your SVG before converting if your design software can; fonts are not available to a cutter.
- Remove guides, hidden layers and anything you do not want cut.
- Check the reported size against the size you expect before sending it to the machine.
On the blog: How to Convert SVG to G-code Free, Step by Step
How it works
Upload your artwork
Mono mode is preset, a single cut outline is what a machine wants, not colour layers.
Set your real size
Choose millimetres or inches and the finished width. The file carries physical units, not pixels.
Check the preview, then cut
Inspect the toolpath before you download. Cuts draw solid, rapids dashed.
SVG to G-code for GRBL lasers and CNC routers
SVG to G-code without installing anything: drop the SVG, set feed, speed and power (laser) or depth and passes (router), and download a .gcode file. This svg to gcode converter orders the cuts, holes before outlines and short hops between them, so parts do not drop out before they are finished.
The output is plain svg to gcode grbl code: G0/G1 moves, M3/M5 for the laser (or M4 dynamic power), a safe Z for the router, and it ends with the tool off. It runs in Universal G-code Sender (UGS), LaserGRBL, Candle, bCNC and LightBurn’s G-code console.
People also search for
- svg to gcode inkscape
- svg to nc
- gcode generator
- laser gcode
- svg to gcode for pen plotter
Why it matters
Correct units, stated in the file
DXF exports write $INSUNITS. Without it a part imports at 25.4x the intended size, which is the single most common cause of a ruined first cut.
Y axis the right way up
SVG puts +Y down the screen; CAD and CAM put it up. We flip it. Exporting without that correction gives a part mirrored about the X axis, it cuts, but backwards.
Closed contours
A cutter following an open outline leaves the part attached. Outlines are closed, and anything that is not is flagged before you download.
Conservative G-code
The tool is disengaged before every reposition, retracted before every rapid, and the program always ends tool-off and clear.
Is SVG to G-code worth paying for?
A G-code is the file a shop actually runs. Walk through the
artwork requirements a laser cutter, a CNC shop or a sign maker
publishes and the same request appears: send something a machine can
follow. What turns up instead is a screenshot or a logo pulled off a
website at 600 pixels, and somebody redraws it by hand, twenty-five to forty minutes, or sends it to
an art service at $25 to $60 a file.
The conversion and the preview here are free and
unlimited. The G-code itself is $3.99 as a guest, with
no sign-up, or comes with a plan, and it arrives clean: a machine file
is never watermarked, because a mark in a cut file is extra cut paths
a machine would run.
What the plan includes
Reviews
No reviews yet. Used this tool? Yours could be the first.
Used this tool? Sign in to write a review.
Something not right with this tool? Raise a support ticket and a person will look into it.
Questions
How do I convert SVG to G-code?
Drop your SVG into the box at the top of this page and press Convert to G-code. The conversion runs in your browser in a few seconds. Check the result, then download a G-code.
What is the best SVG to G-code converter?
One that gives you the same geometry, carried across with its scale and the right way up, shows the result before you pay, and does not upload your file. That is what this page is built to do.
Does the G-code work with GRBL?
Yes. It uses only the commands GRBL supports: G0, G1, G21/G20, G90, M3, M4, M5 and F/S values. It homes nothing and assumes you have set your own work origin.
Can I run it in UGS or LaserGRBL?
Yes. Open the .gcode file in Universal G-code Sender or LaserGRBL, set your origin, and run a frame or dry run above the material first.
What feed and speed should I use?
For a diode laser on 3 mm plywood, start around 300–600 mm/min at full power with several passes; for engraving, 1500–3000 mm/min at lower power. For a router, use the chip load for your bit. Always test on scrap: feed rate and power vary by machine.
Why does my laser burn at the start of each line?
Constant-power mode (M3) fires while the head accelerates. Tick "Dynamic power (M4)" here and enable GRBL laser mode ($32=1): power then scales with the actual speed, so corners and line starts stop over-burning.
What units does the file use?
Whichever you pick, millimetres or inches, and the choice is written into the file header so the receiving software does not have to guess.
Will this work with my laser?
DXF is written as R2000 by default, which LightBurn, Fusion, AutoCAD and current CAM packages all read. There is an R12 option for older controllers that predate LWPOLYLINE.
Can I trust the G-code?
Preview the toolpath first, and dry-run any new program above the material. The generated code assumes you have set your own work origin, and it homes nothing.
Related tools: Image to G-code · PNG to G-code · Logo to DXF · PDF to DXF · Background Remover · SVG Optimizer · Image to SVG
Reading on G-code and machine files
SVG to G-code: here, by hand, or on a server
More converters and tools
Ready to convert your SVG?
Free, unlimited, no account, and nothing leaves this tab.
Convert a SVG now