Milling know-how

Convert STL to STEP: mesh, 3MF or printable model to a CAD solid

In short: an STL is a triangle mesh, a STEP file is a solid made of exact surfaces. Whoever searches for "STL to STEP" almost always wants the second: a part that can be measured, changed and built on in CAD. That is what stl2step on step2gcode does – it finds planes, cylinders, cones and fillets in the mesh and builds a STEP file with real edges from them. The largest deviation from the mesh is stated in millimetres in the result.

The same question sits behind "3MF to STEP", "mesh to STEP", "mesh to solid" or "3D model to STEP": a mesh is to become a solid again. Here is how that works, when it works well and when it does not.

Convert your STL or 3MF to STEP now: to stl2step →

Convert STL or 3MF to STEP in four steps

  1. Have the mesh ready: STL (binary or ASCII) or 3MF. If the model is an OBJ, PLY or another format, export it to STL or 3MF first in your slicer, Blender or MeshLab. Given the choice, take 3MF – it stores coordinates more precisely.
  2. Upload it at step2gcode.com/en/stl2step: the diagnosis shows up front what kind of mesh it is – CAD export, scan or broken mesh – and how many surfaces are found.
  3. Let the solid be built: the triangles become planes, cylinders, cones and fillets, their intersections become edges. The finished solid is then measured against the mesh.
  4. Download the STEP file and open it in CAD: Fusion 360, FreeCAD, Onshape, SolidWorks or any other CAD reads it. For 2.5D parts the contour comes alongside as DXF.

Why an STL is of so little use in CAD

An STL knows no hole, only triangles that together look roughly like one. A hole made of 64 facets has no diameter you could dimension or change. Many converters therefore simply write every triangle into the STEP file as its own face: the file opens, but it has tens of thousands of faces and is just as hard to edit in CAD as before.

A reconstruction goes the other way: it looks for the surface the triangles describe together and writes that. 64 facets become a cylinder with a diameter again, a slanted row of facets a chamfer with an angle.

Printable models from Printables, Thingiverse or MakerWorld

The most common case: a bracket, adapter or lid was designed in Fusion 360, Onshape or FreeCAD, but only the STL or 3MF for the slicer was published. Such parts consist of flat faces, holes, chamfers and fillets – exactly the shapes that can be recovered exactly. The printable model becomes a CAD solid again: adapt a hole to your own thread, thicken a wall, or machine the part from aluminium instead of printing it in PLA.

The model keeps its author's licence. What you may do with a downloaded model is stated on the model's page.

When it works well – and when it does not

Well: parts from CAD with flat faces, holes, cones and fillets along the edges. Cleanly exported, the measured deviation is usually in the range of thousandths of a millimetre.

Harder: freeform surfaces, figures and raw 3D scans have no such primitives. They are not turned away but get a faceted solid (beta) – a STEP file every CAD opens, useful as a reference and for remodelling, but without exact diameters. A mesh with small holes or duplicate triangles is repaired first where possible; a real opening in the mesh cannot become a solid on any route and is reported with its size.

From the STEP solid to a milling program

Once the STEP file is there, step2gcode takes it straight on: upload, pick cutter and material, download G-code for GRBL, Mach3, LinuxCNC and other controllers. Pockets, holes and contours are detected from the solid, including their depths.

Frequently asked questions

Can you convert STL to STEP?

Yes. If the part is made of primitives such as planes, holes, chamfers and fillets, the result is a real solid with exact surfaces. Freeform shapes and scans get a faceted solid (beta).

Does 3MF to STEP work too?

Yes, and 3MF is actually the more precise source. Several objects on a 3MF build plate keep their position and are written as separate solids.

How do I convert OBJ or PLY to STEP?

Export to STL or 3MF in your slicer, Blender or MeshLab first, then upload it like any STL.

What is the difference between "mesh to solid" and "STL to STEP"?

None in substance: "mesh to solid" is the name in CAD (Fusion 360: "Mesh to BRep"), "STL to STEP" and "3MF to STEP" describe the same route through the file formats.

How accurate is the STEP file?

The finished solid is measured against the mesh, and the largest deviation is stated in millimetres in the result. For cleanly designed parts it is usually thousandths of a millimetre.