GAllGcode

CAD to G-code

Convert CAD models to G-code. DXF drawings are profiled for CNC cutting, STL/OBJ models are sliced for 3D printing. Runs entirely in your browser — no uploads, your files never leave your device.

CAD file

Drop CAD file here or click to browse

CAD to G-code — max 20 MB

Model preview

Toolpath preview

Scroll to zoom · Drag to pan

Model info

No model loaded

Job estimate

Convert a file to see estimates

Machine

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.

Print settings

Used for STL / OBJ slicing
Fixed:Filament 1.75 mm · Travel speed 3000 mm/min · First layer 0.2 mm

G-code

No output yet.
How to use it

About CAD to G-code:CAD models arrive as DXF drawings or STL/OBJ meshes. This tool converts the geometry to mesh toolpaths, so prepare a closed 3D shape for the best results.

  1. Prepare your model. For DXF, export the outlines of the part you want to print as ASCII DXF; for 3D work prefer a closed STL or OBJ mesh centred near the origin. Accepted inputs: DXF · STL · OBJ.
  2. Upload the model.Click the upload area to browse, or drag and drop a file onto it. Files up to 20 MB are supported. The model panel reports the decoded geometry and the preview lets you drag to rotate it.
  3. Set the print parameters. Layer heightcontrols detail and print time.Infill, Wall countandLine widthcontrol strength and material use. SetScaleif the model is not the size you want, then matchNozzle diameter, Nozzle temp, Bed tempandPrint speedto your printer and filament. Filament is fixed at 1.75 mm and travel speed at 3000 mm/min.
  4. Check the preview.Compare the shaded mesh with the toolpath preview below. Drag the model to inspect it from every side and check the layer count, triangle count and print estimate. Confirm the head moves only where you expect before printing.
  5. Export and share.Slicing updates automatically when you change a setting, or you can pressConvert to G-code. UseDownload G-codeorCopy to clipboardto take the result to your printer.
  6. Print safely.Level the bed, use temperatures that suit your filament, and watch the first layers closely. Keep the area ventilated and never leave a running printer unattended.

Please note:DXF drawings are treated as flat geometry — there is no automatic extrusion into a solid model.

Frequently asked questions

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

Related tools

All tools