SVG to G-code – mill or laser your logos and drawings

Upload an SVG from Inkscape, Illustrator, Affinity or an online editor, enter size, tool and depth, and step2gcode turns it into G-code: cut out with holding tabs, engrave along the lines with a V-bit, or cut and engrave with a laser.

Curves stay curves: Bézier paths are written into the program as real arcs (G2/G3), within 0.02 mm of the drawing – instead of hundreds of tiny straight moves that make the machine stutter. No installation, no account, first file free.

The tool does not load in this view without JavaScript. To convert an SVG to G-code, open www.step2gcode.com/en/svg-to-gcode in your browser.

From vector to machine without a detour through DXF

An SVG does not have to be converted to DXF and imported into a CAM program first. step2gcode reads the paths directly, takes the dimensions from the file, shows the tool paths in a 3D preview and writes the G-code.

Where SVG files usually go wrong

  • Text is not a path: Lettering in an SVG is a text object, not a line – it is not milled. step2gcode tells you on upload how many texts are left out; in Inkscape, "Path → Object to Path" converts them.
  • The size is off: SVGs often work in pixels. step2gcode takes millimetre and inch sizes from the file, shows the size of the part and lets you change it on the page – the file stays the same and does not cost again.
  • A picture instead of lines: A photo inside an SVG is not a tool path. If the file holds nothing but an embedded picture, it takes the image route automatically – engraved or turned into lines. If it only links to a picture file, the page tells you to upload the picture itself.

SVG to G-code: the features

  • Paths, rectangles, circles, ellipses, lines and polygons, also in groups with transforms
  • Curves as real arcs (G2/G3), within 0.02 mm of the drawing
  • Dimensions from the file (mm, cm, inch), size adjustable on the page
  • Milling: cut out with holding tabs, cut-outs, engraving with a V-bit
  • Laser: cut or engrave for GRBL and Marlin, holes before the outline
  • Arrange SVG, DXF and STEP parts together on one sheet (nesting)
  • G-code for 14 controllers, including GRBL, Mach3/4, LinuxCNC and Marlin

Your file stays your file

Uploaded files are processed solely to create the program and deleted after 24 hours at the latest. No analysis, no sharing, no cookies. Hosted in Germany.

Frequently asked questions

How do I convert an SVG to G-code?

Upload the SVG, check the size, choose milling or laser, enter tool and depth. step2gcode finds the outside profile, cut-outs and holes itself, shows the tool paths in a 3D preview and writes G-code for your controller.

What size will my SVG be?

If the file states its size in millimetres, centimetres or inches (as Inkscape does), that size is used. Without a unit, one unit counts as one millimetre. The page shows the size and lets you change it before generating.

Why is my text missing?

Text in an SVG is a font object, not a line. Convert it to paths before exporting – in Inkscape with "Path → Object to Path", in Illustrator with "Type → Create Outlines". step2gcode reports on upload how many texts will not be milled.

Can I engrave a logo with a V-bit?

Yes. With "Engraving" the V-bit follows exactly the lines of the SVG at the depth you set. To cut out, the end mill runs around the outside and inside the cut-outs, with holding tabs.

Can I laser an SVG?

Yes. In laser mode every closed contour is cut, inner ones before outer ones, and the kerf is compensated; engraving along the lines works too. G-code for GRBL lasers and for Marlin.

What does it cost?

Uploading, checking, previewing and generating are free. Only the download is charged: your first file is free, after that a new file costs one credit. The same file stays free for good – with any settings or size.

Knowledge: STEP, DXF or SVG – which format for what?