Free online CAM export

DXF to G-code converter

To convert a DXF to G-code free, open the .dxf in the CADdillo editor in your browser (free account, no card, nothing to install), select the shapes to cut, choose File ▸ Export G-code (CAM), pick Profile, Pocket or Drill and your tool, and download G-code for GRBL, Marlin, LinuxCNC or Mach3/Mach4.

Open a DXF, select the shapes to cut, and export G-code for GRBL, Marlin, LinuxCNC or Mach3/Mach4 with real cutter compensation and multi-pass depth stepping. Free, in your browser — no CAM software to install.

Post processors and the file each one writes
Post processorFileDrill cycles
GRBL .ncExpanded to plain moves
Marlin .gcodeExpanded to plain moves
LinuxCNC .ngcG81 / G83
Mach3 / Mach4 .tapG81 / G83

Operations: Profile (outside, inside or on the line), Pocket (stepover, ramp, helix or straight-plunge entry) and Drill (optional peck).

Convert DXF to G-code in 4 steps

  1. Open your DXF. Launch app.caddillo.com and drop your .dxf onto the canvas — it parses on your own machine, no upload. You can also just draw the part here: rectangle, circle, or a closed polyline is all the toolpath needs.
  2. Select the shapes to cut. Click the shapes you want to cut; select several to cut them in one file. A Pocket, or a cut inside or outside a shape, needs a closed shape (closed polyline, rectangle or circle), because that is what gives the cutter an inside and an outside. With no closed shape selected, a Profile cuts each open line, arc or polyline, on the line or offset to one side. Under Profile, a selection that mixes closed and open shapes skips the open ones, so cut those in a second export. The laser cuts every selected path.
  3. File ▸ Export G-code (CAM). Pick the machine (router or laser), the post processor and the operation — Profile, Pocket or Drill — then tool diameter, cut depth, stepdown per pass, cutter side, feed rate and safe Z. Values are typed in the drawing’s own units and fractions work — type 1/8" for an eighth-inch endmill. The toolpath is drawn on the canvas before you commit.
  4. Check the backplot, then download the .nc. The preview shows the actual offset path the tool will travel, plus a cutting-time estimate. If it looks right, download the G-code file and load it into your sender or controller.

Checked against the converter on .

Starting from another format? Same export from DWG to G-code, SVG to G-code and PDF to G-code. All CNC tools.

Output is a plain-text G-code file: .nc for GRBL, .gcode for Marlin, .ngc for LinuxCNC, .tap for Mach3/Mach4. Toolpath preview and cutting-time estimate before you download.

What you set

Six numbers, typed in your drawing’s units

The export dialog asks for the things that actually change the toolpath and nothing else. Units follow the document — a millimetre drawing gets G21 and millimetre coordinates, an inch drawing gets G20 — and fractional input works, so 1/8" is a valid tool diameter.

Under the hood

Cutter compensation that measures right

The offset is computed in the geometry and baked into the coordinates, not handed off to the controller with G41/G42. Cut the outside of a 100 mm part with a 3.175 mm endmill and the toolpath spans exactly 103.175 mm — so the finished part comes off the machine at 100 mm.

Honest limits

What it does not do

Here is where the CAM export stops, so you can decide before you open it rather than after.

As always with generated G-code: read the file, dry-run it above the stock, and confirm your work zero before you cut anything you care about.

Keep exploring

Related tools

If your part started as a photo or scan, get the image sized and converted first at imageinseconds.com — free, in the browser, no upload.

Answers

DXF to G-code, answered

How do I convert a DXF to G-code for free?

Open your .dxf in CADdillo at app.caddillo.com, click the shapes you want to cut, then choose File ▸ Export G-code (CAM). Pick the post processor and the operation (Profile, Pocket or Drill), enter tool diameter, cut depth, stepdown per pass, cutter side, feed rate and safe Z, check the toolpath preview drawn on the canvas, and download the G-code file. The whole flow is free and runs in the browser — no CAM software to install, on a free account (email link, no card).

Which G-code dialects (post processors) does it output?

Four: GRBL (.nc), Marlin (.gcode), LinuxCNC (.ngc) and Mach3/Mach4 (.tap). You pick one in the export dialog. Every file is plain text using G21 or G20 to match your drawing’s units, absolute positioning (G90), rapids at safe Z, feed moves at your feed rate and true arcs as G2/G3, with the depth broken into passes at your stepdown. Drill cycles are G81/G83 on LinuxCNC and Mach; GRBL and Marlin have no canned cycles, so drilling is written as plain moves.

Can it cut pockets and drill holes, or only outlines?

All three. Profile cuts around a shape (outside, inside or on the line), Pocket clears the area inside a closed shape with a stepover and a ramp, helix or straight-plunge entry, and Drill drills small circles, with optional peck drilling. Select several closed shapes to cut them in one file.

Does it do cutter compensation?

Yes, and it is computed in the geometry rather than left to the controller. You pick outside, inside or on-line, and the toolpath is offset by exactly half the tool diameter in that direction. Concretely: the outside path around a 100 mm part cut with a 3.175 mm (1/8") tool spans exactly 103.175 mm, so the finished part measures 100 mm. Because the offset is baked into the coordinates, you do not need G41/G42 support in your controller.

Can I use a DWG file instead of a DXF?

Yes. The G-code export works on the drawing’s geometry, and opening a DWG in the editor (File > Open DWG) sends it through CADdillo’s converter and puts that geometry on the canvas, so you can export the toolpath straight away. The whole chain stays free.

What machines does this G-code work with?

The GRBL post covers most hobby and prosumer CNC routers: Shapeoko, X-Carve, Onefinity, MPCNC, and 3018-class desktop mills, in senders such as Universal Gcode Sender, cncjs, Candle and Carbide Motion. The Marlin post is for 3D-printer firmware machines and diode lasers, and LinuxCNC and Mach3/Mach4 have their own posts. Whatever the post, open the file and check the header and units line before cutting.

Is there a file size limit or do I need to sign up?

You need a free account (email link, no card). The DXF is read in your browser rather than uploaded, and the G-code is written in your browser too. G-code export is part of the free tier.

Draw it, offset it, cut it.