STL to G-code – mill 3D models on a CNC router

Upload a 3D model as STL, 3MF or STEP and step2gcode writes a three-axis milling program from it: roughing in levels with an end mill, finishing in rows with a ball-nose cutter, flat faces faced off, and a cut-out with holding tabs at the end. The page picks the tools itself if you like.

This is not a slicer: for a 3D printer you need a slicer such as PrusaSlicer or Cura. Here you get G-code for milling – GRBL, Mach3, LinuxCNC and more controllers. The 3D route is in beta. No installation, no account, first model free.

The tool does not load in this view without JavaScript. To convert an STL to G-code for milling, open www.step2gcode.com/en/stl-to-gcode in your browser.

Like a slicer, but for a router

In 3D printing one click takes you from model to program. In milling a CAM package usually sits in between, with roughing and finishing strategies, tool tables and stock. step2gcode takes that off your hands: upload the model, choose material and machine, check the tool paths in the 3D preview, download the G-code.

What is different about milling a 3D model

  • The cutter only comes from above: A three-axis machine cannot reach undercuts. step2gcode mills what can be reached from above, tells you what is left, and offers a second setup for the back.
  • Depth needs a long cutter: Usual flute lengths are about five diameters. If the part is deeper, the page names the sturdier cutter or offers to scale the part down – instead of handing you a program that breaks the tool.
  • The mesh has to be closed: An open mesh makes no solid. step2gcode tries a repair and otherwise tells you how many edges are open and which tools fix the mesh.

STL to G-code: the features

  • STL (binary and ASCII), 3MF and STEP – also STEP files that hold only a triangle mesh
  • Roughing in levels, finishing in rows with a ball-nose cutter, walls and flat faces on their own
  • Tools chosen automatically or fixed, speed and feed per tool from the material table
  • One program per tool in a ZIP – change the tool, start the next program
  • Cut-out with holding tabs, stock height, two setups on request
  • Collision check of the finished program against the model, before the download
  • G-code for 13 controllers, including GRBL, Mach3/4, LinuxCNC, Marlin and Fanuc

Your file stays your file

Uploaded files are processed solely to create the program and to check that result, and deleted after 24 hours at the latest. No sharing, no cookies. Hosted in Germany.

Frequently asked questions

Can I mill an STL file on a CNC machine?

Yes. Upload the STL. A flat part with pockets and holes is milled like a CAD part; for freeform surfaces the page offers "Mill as a 3D part", builds a solid from the mesh and writes roughing, finishing and the cut-out. Meshes with very many triangles are simplified for this, with a note.

Is this the same as a slicer for a 3D printer?

No. A slicer writes paths that add material, a mill removes it. The G-code from here is meant for CNC milling and will not print on a 3D printer.

Which cutters do I need?

An end mill for roughing and the cut-out and a ball-nose cutter for finishing. With the default "Automatic" the page chooses both so that they reach the depth of the part; you can also fix them yourself.

How long does the calculation take?

Small parts take seconds to minutes, large parts up to 15 minutes. If the time does not allow the finest resolution, the page spaces the finishing rows a little wider and says so.

Does a relief or a 3D scan work too?

A relief does, as long as it can be reached from above. A scan must be a closed mesh; open scans need a repair first, for example in PrusaSlicer or Blender.

What does it cost?

Uploading, calculating and previewing are free. Only the download is charged: your first model is free, after that a new model costs one credit or runs on a subscription. The same model stays free for good.

Turn the mesh back into an exact solid: STL to STEP