GAllGcode

DXF to G-code

Convert DXF files to G-code. DXF drawings are profiled into CNC G-code — lines, arcs, circles and polylines become precise cuts with multi-pass depth. Runs entirely in your browser — no uploads, your files never leave your device.

Drawing file

Drop DXF here or click to browse

DXF · max 20 MB

Toolpath preview

Scroll to zoom · Drag to pan

Drawing info

No drawing loaded

Job estimate

Convert a file to see estimates

Machine

Kerf offsets closed contours by half the tool width. Set machine size to 0 to skip work-area checks.

CNC profile settings

Used for DXF 2D profiling
Passes:cut depth ÷ depth per pass, capped at 100. Safe Z is used for every retract between paths.

G-code

No output yet.
How to use it

About DXF to G-code: DXF is the standard 2D drawing exchange format. This tool reads lines, arcs, circles, polylines, ellipses and splines and turns them into CNC toolpaths with real arc commands.

  1. Prepare your drawing. Use ASCII DXF with only the geometry you want to cut on a single layer. Set the drawing units correctly and remove dimensions, text and hatching. Accepted inputs: DXF.
  2. Upload the file.Click the upload area to browse, or drag and drop a file onto it. Files up to 20 MB are supported. The drawing panel reports the entities and dimensions it found.
  3. Set up the machine. Originplaces the cut at the bottom-left corner, the centre, or exactly as drawn.Toolswitches between spindle and laser/plasma commands.Kerfoffsets closed contours by half the tool width andLead in/outeases the tool into the cut. Set machine width and height to check the work area, or leave them at 0 to skip the check.
  4. Set the cutting parameters. Cut depthdivided byDepth per passdecides how many passes are generated (capped at 100). MatchFeed rate, Plunge rate, Rapid rateandSpindle speedto your material and tool.Safe Zis used for every retract between paths.
  5. Check the preview.Review the toolpath preview and toggle cut and travel moves to inspect them separately. Check the drawing info and job estimate, and leaveOptimize travel orderon to shorten rapids.
  6. Export and work safely.G-code updates automatically when you change a setting, or pressGenerate G-code. UseDownload G-codeorCopy to clipboard. Clamp the material, wear eye protection and dust extraction, keep hands clear of the tool, and never leave the machine unattended.

Please note: Binary DXF cannot be read — re-save as ASCII DXF in your CAD app. Units are assumed to be millimetres when the drawing does not declare them.

Frequently asked questions

Is DXF to G-code free to use?
Yes. DXF to G-code is free, needs no account and runs entirely in your browser.
Are my files uploaded when I use DXF to G-code?
No. DXF to G-code processes files locally in your browser; nothing is uploaded to a server.
What can I do with the output from DXF to G-code?
Download the G-code result and check it before using it with your printer, router or laser.

Related tools

All tools