Skip to content

Convert SVG to G-code Online

Secure & Private
G-code Converter— GRBL-compatible G-code for laser engravers and CNC routers

Upload your image to convert to G-code

Drag & drop or click — PNG, JPG, WebP up to 25MB

Free previewNo signupFull-quality output

The SVG you upload is rendered and traced again, so the toolpath follows the shapes you can see rather than the node list underneath; then those paths become ordered machine moves in GRBL-compatible G-code for UGS, Candle, LaserGRBL or bCNC. Two things decide whether the result is usable, and neither is obvious: an SVG carries no physical size of its own, and a path that is not closed cannot be cut as a shape.

For laser cutting and plasma tables

SVG to G-code with kerf and passes set for the sheet

Choose the sheet you are cutting and the toolpath is offset for the beam and repeated as needed: 0.12 mm of kerf and one pass for 3 mm acrylic, 0.18 mm and two passes for 6 mm plywood, all written into the file.

Photo of an old moose crossing road sign bolted to a post
The moose crossing sign as a clean SVG
The kind of artwork this page turns into moves: a photo redrawn as 32 shapesJPG photo, 1337 x 1002 px, 641 KBSVG, 23 KB, 32 paths

Senders and machines that take the file

  • G-codG-code GRBL lasers and routers through LaserGRBL, UGS or Candle; Mach3-style moves for plasma
  • DXFDXF the geometry, for CAM that writes its own toolpath
  • SVGSVG the cleaned paths, to edit and send again
Black anodized aluminum plate laser engraved with a tractor and plough, from a VectoSolve SVG
Engraved anodized aluminum plate. A 600 px photo, sharp at plate size.
Birch plywood panel laser engraved with a stag weathervane, from a VectoSolve SVG
Laser-engraved birch panel. Closed paths for LightBurn, DXF and G-code from the same file.

Product photos are mockups: each design is the real VectoSolve file, not retouched. Source photos are public domain or CC0. Photo: JPark99, Wikimedia Commons, public domain. Photo: Zarateman, Wikimedia Commons, CC0. Photo: Renardo la vulpo, Wikimedia Commons, CC0.

Studio quality

Custom · On quote

Top-of-market quality for complex jobs: large-format murals, detailed illustrations, photo to vector, multi-layer print files. Finished by hand by our team and checked before delivery.

An SVG has no size — this is the number one surprise

It feels wrong the first time. You drew something 100 mm wide, you export, and it cuts at 26 mm.

The reason is that SVG stores a coordinate system, not a physical dimension. The viewBox defines an abstract grid. The optional width and height may be given in pixels, points, millimetres, or omitted entirely, and every editor makes a different choice. Older Inkscape files assumed 90 DPI, newer ones use 96, and Illustrator historically used 72 — which is exactly where the odd ratios come from.

The fix is not to hunt for the correct exporter setting. It is to set the real size once, in the sender, and verify it on the first run. Ten seconds with a ruler on a scrap piece prevents an entire sheet of material going in the bin.

Closed paths cut; open paths draw

The second failure is quieter, because the file looks perfect on screen. A rectangle drawn as four separate lines renders identically to a rectangle drawn as one closed path. To a cutter they are completely different: the first is four strokes it will follow and leave a corner uncut, the second is a shape it can go round.

Anything traced, imported from a PDF, or heavily edited tends to carry these. Before converting, close your paths, join stray nodes, and delete the duplicates that stack invisibly on top of each other and make the machine cut the same line twice.

If your artwork is not vector yet, start from image to G-code, which traces first. If it is heading for CAD rather than straight to the machine, SVG to DXF keeps it editable.

See the conversion

What Do Users Ask About This Converter?

9 questions about SVG to G-code conversion

Because an SVG has no inherent physical size. It has a viewBox, which is a coordinate system, plus optional width and height that may be in pixels, points, millimetres or nothing at all. Different editors write those differently, so the same file can land at 25 mm in one toolchain and 100 mm in another. Always set the finished size in your sender or CAM before running, and measure the first cut against a ruler.

Almost always an open path: the start and end points are close enough to look joined on screen but are not actually the same point. A cutter follows what is there, so it stops where the path stops. In Inkscape, select the path and use Join selected nodes; in Illustrator, Object then Path then Join. Closing paths before converting saves far more time than fixing it at the machine.

No. A stroke is a drawing instruction, not geometry. The toolpath follows the path centreline, and the width of the cut is set by your tool: the router bit diameter or the laser beam. A 5 mm stroke and a hairline stroke produce exactly the same cut. If you want the stroke thickness to matter, convert it to an outline first, so it becomes a real closed shape.

Anything GRBL-based: 3018, X-Carve, Shapeoko, OpenBuilds, home-built routers and diode laser engravers, driven through UGS, Candle, LaserGRBL or bCNC. The output uses standard G0 and G1 moves rather than vendor-specific extensions, which is what makes it portable.

Yes, once you pick a material on this page: the G-code carries that preset's feed rate and laser power (or spindle speed and depth per pass for a router) and its number of passes, all listed in the comment lines at the top of the file. The Generic preset keeps neutral values for you to set in your sender. Either way, run the first job on scrap, because your machine and your sheet decide the final numbers.

Less on a laser: the material presets offset the cut by a typical kerf, for example 0.12 mm on 3 mm acrylic, and the file header says so. The Generic preset applies none. On a router the toolpath follows the line with no tool offset, so offset by half the bit diameter in your CAM. For press-fit joints, measure the first part either way.

Yes, with a material preset: the paths are offset by that material kerf before the moves are written, from 0.03 mm for fabric to 0.22 mm for 6 mm MDF on a laser, and up to 1.5 mm for 6 mm steel on plasma. The Generic preset keeps the kerf at zero.

Yes. Choose a mild steel preset and the output switches to Mach3-style moves with a pierce delay and pierce, cut and safe heights. Try them on scrap before a full sheet.

The preset decides: one pass for 3 mm acrylic or plywood, two for 6 mm plywood and MDF. Each pass repeats the same path, and the estimate on the page counts them.

Ready to Convert Your SVG?

Preview your result free, with no signup, before you download.

Doing this for customers?

If CNC and routing is your business, you are probably paying per file.

An outside art service charges 6 to 26 dollars a logo and comes back the next day. Redrawing it yourself costs half an hour you could bill. A year here is $49 for 25 conversions every month, every machine format included, which works out cheaper than two outsourced logos.

Everything on this page stays free. This is only worth it if you do volume.