DXF to G-code — What to Check Before You Cut
Turning a DXF drawing into G-code is where a design stops being pixels and starts moving a machine. The conversion itself is mechanical; the quality is decided by what you check before you press start. This guide covers the checks, and links to the tools that do the conversion locally in your browser.
The conversion
Section titled “The conversion”DXF to G-code generates laser and engraving toolpaths from DXF outlines: feed rate and laser on/off commands are configurable, and layers map to cut, engrave or exclude. It runs locally — a Pro feature, no upload, no sign-in. For V-carve style 2.5D profile work with cutter compensation and multi-depth passes, see CAM Profile Toolpath; for pocketing, CAM Pocketing.
What actually becomes a toolpath
Section titled “What actually becomes a toolpath”Not every DXF entity generates motion. Line, polyline, circle and arc entities do. Spline, insert (block reference), hatch and other off-whitelist entities are skipped — and the result panel counts them by type instead of silently dropping them. If your part relies on splines, convert them to polylines in your CAD tool first.
Arcs are approximated as polylines: a full circle becomes 64 segments, and arc segments are sampled by centre angle. For most laser and engraving work this is invisible; for precision work, check the segment count against your tolerance.
The settings that matter
Section titled “The settings that matter”- Layer mapping — assign each layer to cut, engrave or exclude instead of cutting everything
- Lead-in / lead-out — the converter does not add them. If your material needs a clean entry (thick acrylic, for instance), plan the entry points yourself
- Tabs — supported: the tool lifts over tabs so parts do not come loose mid-cut
- Multi-pass depth — supported for cutting that needs more than one pass
- Engraving layers — single shallow pass at the surface (Z0), one scan, no depth stepping
- Feed and laser commands — set per layer; the output is standard G-code, readable by common controllers
Before you press start
Section titled “Before you press start”- Open the G-code in a viewer. G-code Viewer renders the toolpath in 3D with a material-removal simulation and static safety checks — missing F words, negative feed, rapids below the deepest cut, missing tool/end/units words. Each finding links to its line.
- Dry-run on the machine. No static check replaces an air cut with the laser off or the spindle clear of the stock.
- Estimate the run. G-code Time Estimator estimates run time and bounding box from the program, so a 40-minute cut does not surprise you.
Starting from SVG instead
Section titled “Starting from SVG instead”If the artwork is SVG rather than DXF, SVG to G-code does the same job with open paths kept open, tabs and multi-pass depth, and G54–G59 work offsets.