STEP files and 3D printing
STL describes a shape as flat triangles. STEP describes it the way a CAD program does: planes, cylinders and curved surfaces joined at exact edges, in a declared unit. For printing an unchanged part, either works. For changing a part, checking a dimension or building something that mates with it, the STEP file is worth asking for.
Solids and meshes
A mesh such as STL is an approximation. A 10 mm hole is a polygon with as many sides as the exporter chose, and the file does not know it was ever meant to be round. A solid in STEP is exact: the hole is a cylindrical face of radius 5 mm with a defined axis, joined to its neighbours along exact edges. The STL basics are in what an STL file is; this guide covers what STEP adds and when that matters.
| STEP | STL | |
|---|---|---|
| Geometry | Exact surfaces: planes, cylinders, cones, spline surfaces | Flat triangles approximating them |
| Units | Declared in the file | None; read as millimetres by convention |
| Structure | Bodies, faces, edges, assemblies with part names | One list of triangles |
| Editable in CAD | Yes, as a solid body | Only as a mesh, or after conversion |
| Accepted by slicers | By some, converted on import | By all |
| Size for a mechanical part | Usually small | Grows with resolution |
What a STEP file contains
STEP is the international standard ISO 10303, and a .step or .stp file is plain text that any CAD program can write and read. Its content is a boundary representation: the solid is defined by its faces, each face lies on a mathematical surface and is bounded by edges, and the edges meet at vertices. Because the faces are connected, a CAD program knows which side is inside, which faces form a hole and how large it is.
Files are written to one of several application protocols. AP203 and AP214 are the long-established ones, with AP214 adding colours and layers; AP242 is the newer one, which can also carry product data such as tolerances and annotations. For printing and ordinary CAD exchange, any of them works.
STEP can hold a whole assembly: every part as its own body, in its assembled position, with names. That is useful for printing, because each body can become its own object.
What STEP does not store is the design history. The sketches, constraints and feature order that built the part stay in the native file of the CAD program that made it. A STEP file is the finished solid.
Why printing still uses meshes
A slicer cuts the model into layers and computes an outline for each one. Intersecting a plane with triangles is simple and fast, so slicers are built around meshes. Some slicers now open STEP files, but they convert them to triangles on import, which is the same step a converter performs, done inside the slicer. When they offer a quality setting on import, it is the same trade-off described in STL resolution.
For an unchanged part, a well-exported STL or 3MF prints exactly as well as the STEP it came from. The STL vs 3MF guide covers the choice between those two mesh formats.
When to ask for the STEP file
Ask the designer, or download the STEP when a model page offers one, when you need to:
- Change the part. Move a mounting hole, make a bracket 5 mm longer, add a cut-out for a connector. On a solid these are quick CAD operations; on a mesh they are awkward.
- Resize it without breaking the fits. In CAD you can change the body and keep screw holes and threads at their real sizes, which plain scaling cannot do; see what must not be scaled.
- Measure it exactly. A hole diameter or a distance between two faces can be read straight from a solid, instead of estimated from facets.
- Design something that mates with it. A cover, a mount or an adapter is easiest to build on exact faces of the original.
- Control the export yourself. With the STEP you choose the mesh resolution, the orientation and whether bodies stay separate.
- Have it made another way. Machining, sheet metal and moulding services generally work from STEP.
Use the STEP viewer to check what a file contains before importing it, including how many bodies it has and their sizes.
STEP to STL: tessellation
Converting a solid to a mesh is called tessellation, and it is one-way: the result prints perfectly well but is no longer an exact solid. Keep the STEP as the master and treat the STL as an export. Four things to get right:
- Resolution. The only real decision. Too coarse, and holes print undersized and curves show flats; too fine, and the file grows without any difference the printer can reproduce. STEP to STL offers coarse, normal and fine quality and shows the triangle count for each.
- Units. A STEP file declares its unit, so a part designed in inches comes out at the right physical size in millimetres. Check the size anyway; it should match the design to a hundredth of a millimetre.
- Assemblies. STL merges all bodies into one mesh. To print parts separately or in different colours, convert to 3MF instead with STEP to 3MF, which keeps each body as its own object.
- Orientation. Most CAD programs use Z up, as slicers do, but some exports arrive with Y up and the part lies on its side. Rotate it once and save the corrected file.
STL to STEP: what you get and what you do not
Going the other way is possible, but it cannot recover information that the mesh never had. STL to STEP builds a closed solid from the triangles: CAD programs then open it as a body you can cut, drill, extend and combine with other parts. What it cannot do is turn facets back into true curves. A cylinder that was 64 triangles around becomes 64 flat faces, so you cannot select it as one cylindrical face, put a fillet on its edge or dimension it as a diameter.
Practical rules for converted meshes:
- Keep the triangle count low. CAD programs are built for parts with dozens or hundreds of faces, not hundreds of thousands. A mechanical part of a few thousand triangles converts to a file CAD handles instantly; for a large scan, reduce the triangle count first with Compress STL.
- Repair first. CAD programs are stricter than slicers and may refuse to treat a leaky mesh as a solid; see repairing an STL.
- Merge flat facets. Many CAD programs can merge coplanar faces into one, which makes flat sides selectable again. In FreeCAD, for example, the Part workbench turns a mesh into a shape, the shape into a solid, and a refined copy merges the coplanar faces.
- Redraw what must be exact. For holes, threads and fits, use the converted body as a reference: sketch the feature on its faces, cut the faceted geometry away and model the feature again at its true size.
For a part that only needs a hole or a cut-out, it can be quicker to stay with the mesh: the online 3D modeler subtracts shapes from an STL directly.
A STEP made from an STL is a valid solid with the exact shape of the mesh. For extending a bracket or adding holes it works well. It only falls short when you need the curved faces themselves, which is the job of reverse engineering, not conversion.
IGES and other exchange formats
IGES (.igs, .iges) is an older CAD exchange format. It often arrives as a set of separate surfaces rather than a closed solid, and gaps between them can make the converted mesh open. Prefer STEP when both are offered. When IGES is all there is, check it in the IGES viewer and convert with IGES to STL, then check the mesh for holes. Native CAD files keep the design history but need the program that wrote them; ask for STEP alongside them if you do not use that program.
Which file for which job
| You want to | Use |
|---|---|
| Print the part unchanged | STL or 3MF; STEP if the slicer opens it and you want to set the resolution |
| Print several bodies separately or in colours | 3MF, converted from STEP so the bodies stay separate |
| Change dimensions, holes or features | STEP in a CAD program |
| Change a part you only have as STL | STL to STEP for simple edits, or a mesh tool for adding and subtracting shapes |
| Design a part that mates with another | STEP of the other part |
| Share a design so others can modify it | STEP together with STL or 3MF |
When you publish a model yourself, including a STEP file alongside the STL costs nothing and saves anyone who wants to adapt it from rebuilding your part from triangles.
Frequently asked questions
Can I 3D print a STEP file directly?
Some slicers open STEP files and convert them to a mesh on import, so you can drop the file in and print. Otherwise convert it to STL or 3MF first. Either way the printer receives G-code made from a mesh; the STEP file only gives you control over how that mesh is made.
Is STEP better quality than STL?
For editing and measuring, yes: it stores exact surfaces and dimensions. For printing, a well-exported STL gives the same result, because the slicer turns the STEP into triangles anyway. A STEP file only helps the print if the STL you would otherwise use was exported too coarsely.
Does converting STL to STEP give me smooth surfaces?
No. The STEP file is made of the same flat facets as the STL, one face per triangle or per group of coplanar triangles. Real curves have to be redrawn in CAD using the mesh as a reference.
Does a STEP file contain the design history?
No. STEP stores the finished solid, not the sketches and features that built it. You can cut, extend and add features to it in CAD, and many programs can move or delete faces directly, but you cannot reopen the original sketch and change a dimension.
Why is my STEP file so much bigger than the STL?
If it came from an STL, every facet is written as a face with its plane, edges and points in text, which takes roughly ten times the space. A STEP file from CAD is usually small, because one cylinder face replaces hundreds of triangles.