· STEP and STL

STEP vs STL: B-rep and mesh are different objects

A B-rep's tolerance is chosen at export; an STL's is fixed.

On this page
  1. What does a STEP file store?
  2. What does an STL file store?
  3. Why a mesh cannot become a B-rep again
  4. Is STL more accurate than STEP?
  5. File size: exact surfaces versus triangles
  6. What the two files weigh
  7. What can you edit in each format?
  8. Which file should you keep?
  9. Where this converter sits
Technical diagram: Exact STEP surfaces and an STL triangle list are different objects. Diagram, not a photograph.

STEP stores exact B-rep geometry; STL stores a triangle sample. STEP carries a boundary representation with exact surfaces and topology; STL carries a triangle mesh with vertices, normals and no surfaces at all.

What does a STEP file store?

A STEP file is a Part 21 text file defined by ISO 10303-21. Inside it, a typical mechanical part is a boundary representation, or B-rep. The geometry is analytic where it can be: a cylinder is an axis, a radius and a height; a plane is a point and a normal; a fillet is a torus or a NURBS patch. The topology is a separate tree of vertices, edges, loops, faces, shells and solids. The OCCT modeling data guide describes both layers and how the kernel evaluates them.

That structure carries things a mesh cannot. A face knows which surface it lies on and which edges trim it. An edge knows which two faces meet there. The file can declare a length unit, an assembly structure, colors, layers and, in AP242, product manufacturing information such as tolerances and annotations. A STEP file can also contain a tessellated representation, so the format is not synonymous with B-rep, but a CAD export intended for manufacturing is normally exact geometry.

AP203, AP214 and AP242 differ mainly in what they carry beside the geometry:

Schema Assemblies Defining scope
AP203 Yes Geometry and configuration control
AP214 Yes Colour, layers and presentation data
AP242 Yes Semantic PMI and tessellated geometry

The ISO 10303-242:2022 catalogue entry sets out the AP242 scope; the converter reads the geometry either way.

What does an STL file store?

An STL file stores a triangle list. Binary STL has an 80-byte header, a 4-byte triangle count, and then 50 bytes per triangle: a normal vector and three vertices, each as three 32-bit floats, plus a 2-byte attribute count. The Library of Congress description of binary STL documents that record layout. There is no unit field, no face identity, no surface type, no color and no assembly tree.

Connectivity is implied rather than stored. Two triangles are neighbors if their vertices share coordinates, and a slicer has to weld those coordinates before it can tell whether the mesh is closed. Two coincident but separate surfaces look identical to two joined ones until that weld is attempted. This is why an STL can be valid as a file and still be unusable as a solid.

Diagram of one cylindrical STEP face tessellated into a 280-triangle STL mesh.
One cylindrical side face and two planar caps leave as 280 triangles in total.

Why a mesh cannot become a B-rep again

Converting STL to STEP does not recover the original surfaces. The usual route wraps each triangle in a planar B-rep face. A cylinder that was one analytic face in the STEP returns as a fan of flats, and a fillet returns as a strip of narrow planes. The result is a solid in the technical sense, with a closed shell and a volume, but every curved surface is now a polyhedron.

The feature history is gone as well. A hole is no longer a hole feature with a diameter and a position; it is a ring of triangles. Editing that hole means moving vertices or rebuilding the region, not typing a new diameter. The converter on this site only goes one way, STEP to STL, so this reconstruction is not something it attempts. A desktop STL-to-STEP tool can produce the faceted solid, but it cannot produce the model the designer made.

Is STL more accurate than STEP?

No. STEP is exact at rest; the cylinder is a cylinder at any zoom. STL is a sample of that surface, and its accuracy is fixed when the file is written. The mesh can be accurate enough for a printer, but it is never more accurate than the STEP it came from.

The comparison that matters is against the process. A 0.2 mm layer cannot show a 0.01 mm chord error, so a fine STL and a coarse one may print the same. A CNC finish cut can express it, which is why the same mesh that is generous for FDM can be too coarse for a ±0.05 mm drawing. The process, not the extension, sets the useful tolerance.

Bar chart of STEP face counts against STL triangle counts for seven fixtures.
The cube and square tube stay near one triangle per face; the threaded plate, cylinder, sphere and rod do not. Counts read from the same fixtures.

File size: exact surfaces versus triangles

A B-rep cylinder is compact because it is described once. A mesh cylinder is described as many flat strips, and the count rises as the tolerance tightens. Take a cylinder 20 mm in diameter and 30 mm tall, meshed at 0.1 mm chord deflection. The segment length is 2 × √(2 × 10 × 0.1 − 0.01) ≈ 2.82 mm. The circumference is 62.83 mm, so the mesh needs about 23 segments around; the height needs about 11 rings. The side is roughly 2 × 23 × 11 = 506 triangles, the two caps add 46, and the total is about 550 triangles. At 50 bytes each, that is about 27.7 kB. The figures are arithmetic from the chord formula and the binary record, not a measurement of a particular file.

The STEP version of the same cylinder holds one cylindrical face, two circular edges and two planar caps. Its text does not grow with the desired roundness, but it is not tiny: a FreeCAD-exported 10 mm cube in the occt-import-js test suite is about 17 kB of Part 21 text, and a cylinder swaps planar faces for a cylindrical surface and circular edges, so its entity count stays in the same range. We did not export and measure the 20×30 cylinder; treat the 27.7 kB STL as arithmetic and the STEP size as the same order of magnitude, not a guaranteed win for either format. STEP size stays flat as roundness rises; STL size grows.

Property STEP STL
Geometry Exact surfaces Triangles
Topology Vertices, edges, faces, shells, solids Shared vertex coordinates only
Units Declared in the file None
Assembly Can preserve structure One triangle list
Editability Feature-based in CAD Vertex-level in a mesh tool
Size Depends on entity count 84 + 50 × triangles bytes
Color and PMI Possible, especially in AP242 No

What the two files weigh

The run of 13 November 2026 makes the trade concrete. A cube written as faceted STEP is 9,008 bytes of Part 21 text carrying 230 entities, 12 ADVANCED_FACEs and one CLOSED_SHELL; the STL it converts to is 684 bytes, which is 84 + 50 × 12 exactly. The tube gives 21,746 bytes of STEP for 566 entities and 32 faces, and 1,684 bytes of STL for 32 triangles. Both STEP sizes are dominated by the text entity records — one per vertex, edge and face — while the STL pays a flat 50 bytes per triangle. The cube is cube-20mm.step; both runs are on the test page.

File Bytes What it holds
cube-20mm.step 9,008 230 entities, 12 faces, 1 closed shell
cube-20mm.stl 684 12 triangles
square-tube-20mm.step 21,746 566 entities, 32 faces, 1 closed shell
square-tube-20mm.stl 1,684 32 triangles

What can you edit in each format?

In STEP, you edit the model: change a hole diameter, suppress a fillet, move a face, replace a component. The kernel recomputes the surfaces and the mesh is regenerated later. In STL, you edit the mesh: move vertices, cut it with a plane, sculpt it, or run a boolean on triangles. Those operations are useful for art, scan cleanup and repair, and they are the wrong tool for a dimensioned mechanical part.

The practical consequence is that a change request should go to the STEP. If the only file is an STL, every change is a remodel or a mesh edit, and neither preserves the design intent. Keep the STEP even when the printer only wants the STL.

Which file should you keep?

Keep the STEP as the master and the STL as a print snapshot. The STEP is the file you edit, archive, send to a machinist and use to regenerate a mesh at a different tolerance. The STL is the file you slice, and it is disposable once the print is verified.

If the part came from a supplier, ask for the native STEP even when you also receive an STL. The STL may have been exported at a tolerance chosen for a different process, and the STEP lets you choose again. If the supplier will only send STL, treat it as a mesh and check it before printing; the hollow-shell check is the first one to run.

Where this converter sits

The converter reads STEP or STP, runs OpenCascade in the browser, tessellates at a fixed linear and angular deflection, and writes binary STL in millimetres. It does not expose the deflection, does not preserve assembly structure, and drops color and material data. Input is capped at 12 MB, and the file never leaves the device. Over the cap, split the assembly and convert each part, simplify the solids in CAD, or use a desktop converter without the cap. Those limits are documented on how the conversion works and in the format reference.

Use it when you have exact geometry, the part is simple enough for the fixed deflection, and the next step is a slicer. Do not use it to archive, to edit, or to recover a model from a mesh. The decision is easy to state: if the file will be edited or measured, keep it as STEP; if it will be printed, convert it and check the triangles.

By the steptostl.org Editor Team, reviewed 14 November 2026 by the converter maintainers. Editorial standards.

How this page was written: the entity hierarchy comes from the OCCT modeling guide, the record layout from the Library of Congress, the AP scope from ISO 10303-242, and the cylinder figures were calculated from the chord formula and the 50-byte triangle record. The STEP file-size comparison uses a published test file. We converted the two files in “What the two files weigh” in Chrome on 13 November 2026 and parsed the exported STLs for triangles, bounds and shell count. AI-assisted drafting was used, and each claim was checked against those sources. No print was made and no slicer was opened.

Sources:

Related on this site: Why a STEP file exports as a hollow shell and STEP tessellation: chord tolerance and file size. See also Large STEP assemblies to STL: convert one part at a time.

Try it on your own file

Open the STEP to STL CAD converter and drop a file. It runs in this tab; nothing is uploaded and no account is needed.

All posts