G-code
A G-code generator for CNC routers that knows your machine
Cutline Studio generates G-code for Grbl and Mach3/Mach4 CNC routers from three starting points: a DXF, an SVG, or a plain-language description of the project. It offsets every cut for your bit, cuts pockets to their real depth, adds holding tabs and dogbones, and sets feeds and speeds your machine can run. On a Grbl machine it can also run the job for you with Cutline Control (beta).
Updated November 27, 2026.
What goes into good G-code
A G-code file is just moves and numbers, but small mistakes ruin parts. A generator has to get these right:
- Bit offset: outside profiles cut outside the line and inside profiles inside it, by exactly the bit radius, or every part comes out the wrong size.
- Depth: through cuts go just past the material; pockets and dados stop at their depth instead of cutting through.
- Depth per pass: matched to the bit and how stiff the machine is, so a light router isn't overloaded.
- Holding tabs: small bridges that keep parts from breaking loose on the last pass. See how to size tabs.
- Inside corners: a round bit can't cut a square inside corner, so joints need dogbone fillets.
- Entry: plunge or ramp into the cut, at a plunge rate the bit can take.
- Format: units (G20 inches or G21 millimetres), true arcs (G2/G3) and a header the controller accepts.
Three ways to start
From a DXF or SVG
Import the drawing, choose which shapes are cut out, which are holes and which are pockets, check the toolpath preview and save. Basic mode asks a few questions and does the rest; Advanced mode exposes every property. Step by step: DXF/SVG to G-code.
From a description
Type "a wall shelf 30 inches wide with three shelves" and Cutline Studio designs the parts, sizes the joints to your plywood, nests them on your sheet and generates the G-code. How project design works.
From a ready-made project
Every CNC project on this site comes with DXF files to open in Cutline's CAM, and many include tested G-code.
Controllers
Output is standard G-code for Grbl (Shapeoko, LongMill, X-Carve, Onefinity, OpenBuilds, 3018 machines) and Mach3/Mach4, saved as .nc by default. On a Grbl, grblHAL or FluidNC machine you can run it straight from Cutline Studio's Machine tab with Cutline Control (beta): jog, set zero, start, pause, change the feed and resume from a line, with your phone as a remote on the same Wi-Fi (it is not an emergency stop). You can still run the file in gSender, Candle, Universal G-code Sender, Carbide Motion or Mach3/Mach4. Grbl and Mach3 senders compared.
More guides: Grbl alarm and error codes · feeds and speeds for plywood · DXF/SVG to G-code · all guides
FAQ
Is there a free G-code generator?
Can it make G-code from an image or photo?
Does it write G-code for laser engravers or 3D printers?
Can I edit the G-code afterwards?
Try Cutline Studio
Design one project free in your browser, or download the 7-day free trial for Windows 10 and 11.