Skip to content
.stl3D mesh

The STL file format

STL is the triangle-mesh format that 3D printing grew up with: simple, universal, and limited to the bare surface of a model.

Open a STL file now

What is an STL file?

An STL file describes the surface of a 3D object as a set of triangles. Each triangle is stored with the coordinates of its three corners and a normal vector that points to the outside. There is nothing else: no curved surfaces, no color, no material, no units and no information about which triangles belong to which part.

3D Systems introduced the format in 1987 for its first stereolithography machines, and it became the de facto standard of the whole 3D-printing industry. Practically every CAD program exports it and every slicer imports it, which is why it remains so common despite its age and its limits.

ASCII and binary STL

There are two encodings. ASCII STL is readable text that starts with the word solid and lists each triangle as a facet with a normal and three vertex lines. It is easy to inspect but bulky. Binary STL is the usual form: an 80-byte header, a 4-byte triangle count, and then 50 bytes per triangle. The size of a binary file follows directly from that — a mesh of one million triangles is about 50 MB.

Both encodings repeat the full coordinates of every corner for every triangle, so a vertex shared by six triangles is written six times. Software has to rediscover which corners coincide in order to know how the triangles connect, and small rounding differences at that stage are a classic source of gaps and non-manifold edges.

Strengths and limits

The strength of STL is its simplicity: triangles are triangles in every program. For sending one single-material part to a printer, nothing more is needed.

The limits appear as soon as more is asked. Because there are no units, a file can be read as millimeters or as inches. Because there is no color or material, multi-color and multi-material prints need another format. Because curves are faceted at export time, resolution is fixed: a coarse STL cannot be made smooth again later. Newer formats such as 3MF address these points while staying mesh-based, and for exchanging editable design data a CAD format like STEP is the right tool.

How to open, check and convert an STL

Drop the file on the STL viewer to rotate it, see its triangles in wireframe, and read its bounding box, triangle count, volume and surface area. The statistics include a watertight check, which reports whether the mesh is a closed shell — the property a slicer depends on. The STL volume calculator adds a weight estimate for a chosen material.

Conversion works between mesh formats and from CAD to mesh: STL to OBJ for modeling and rendering tools, and OBJ, STEP or IGES to STL for printing. Turning an STL back into a STEP solid is a different matter — the exact surfaces were discarded when the mesh was made, so that requires reverse engineering in CAD software rather than a file conversion.

Frequently asked questions

Does an STL file have units?

No. The format has no place to record them. By convention most 3D-printing software reads the numbers as millimeters, so a file exported from an inch-based CAD model contains inch values and imports 25.4 times too small.

What is the difference between ASCII and binary STL?

The content is the same; the encoding differs. ASCII is human-readable text and much larger, binary is compact and by far the more common. Any current program reads both.

Can an STL store color?

Not in the standard format. Some programs put color into spare bytes of the binary format, but these extensions are not standardized and most software ignores them. Use 3MF, OBJ or PLY when color has to travel with the mesh.

What does it mean when an STL is not watertight?

The triangles do not form a closed surface: there are holes, gaps between edges, or edges shared by more than two triangles. A slicer cannot reliably tell inside from outside in such a mesh, so it should be repaired before printing.

Can I convert an STL to STEP?

Not by simple conversion. STEP stores exact surfaces, and an STL only approximates them with facets, so the original geometry would have to be reconstructed. This site converts STL to other mesh formats — OBJ, GLB and PLY.