STL

Also known as: Standard Tessellation Language · .stl file

On this page 7

STL, commonly expanded as Standard Tessellation Language and also known as an .stl file, is a file format that describes the surface of a three-dimensional object as a mesh of triangles. In 3D printing & making, it is the traditional hand-off between CAD for makers and the slicer, which reads the mesh and converts it into toolpaths.

The format stores only surface geometry: no units, no colors in the standard form, no materials and no design history. That simplicity made STL the universal exchange format for additive manufacturing for decades, but it also explains its main limitations compared with newer formats such as 3MF.

How an STL file represents geometry

An STL file approximates every surface with flat triangular facets. Each facet is defined by three vertices with X, Y and Z coordinates and a normal vector that points outward from the solid. The ordering of vertices follows the right-hand rule, so a slicer can tell inside from outside.

Curved surfaces cannot be stored exactly. A cylinder becomes a polygonal prism whose smoothness depends on the tessellation settings chosen at export, usually expressed as chordal deviation and angular tolerance. Finer settings give smoother curves but larger files.

STL exists in two encodings, compared in the table below.

PropertyASCII STLBinary STL
StructureReadable text with keywords such as facet and vertex80-byte header, triangle count, 50 bytes per triangle
File sizeRoughly four to five times largerCompact
PrecisionDepends on printed decimal digits32-bit floating point
Typical useDebugging and teachingEveryday printing and exchange
Color supportNoneOnly through nonstandard extensions
ASCII and binary STL compared

Exporting STL from CAD software

STL is produced by exporting a finished body from a CAD program such as Autodesk Fusion, Onshape, FreeCAD or SOLIDWORKS. The export converts exact boundary representation geometry into triangles, so the resolution chosen at export permanently limits the quality of curved surfaces.

The table shows how typical export settings affect the result.

SettingTypical valueResult
CoarseDeviation about 0.1 mmVisible facets on holes and fillets
MediumDeviation about 0.01-0.05 mmGood balance for FDM printing
FineDeviation below 0.01 mmSmooth resin prints, very large files
Angular tolerance5-15 degreesLower values add facets on small radii
Effect of STL export resolution

Because STL has no unit field, the receiving program must assume one. Most slicers assume millimeters, so a model exported in inches appears 25.4 times too small. Exporting in millimeters avoids this common scaling error.

Mesh quality and watertightness

A printable STL must describe a watertight mesh, also called a manifold solid: every edge is shared by exactly two triangles and the surface fully encloses a volume. Slicers need this property to decide which regions are inside the part and should receive walls and infill.

Meshes from scans, sculpting tools or careless modeling often contain defects. The following table lists the frequent ones and their usual remedies.

DefectConsequence in the slicerTypical repair
Holes or open edgesMissing walls or failed slicingAutomatic hole filling
Flipped normalsRegions treated as inside outRecalculate normals
Non-manifold edgesAmbiguous inside and outsideRemesh or delete stray faces
Self-intersectionsOverlapping shells, odd infillBoolean union of shells
Degenerate trianglesTiny gaps and artifactsMerge close vertices
Typical STL mesh defects

Models exported directly from a solid body in parametric CAD are usually clean. Problems tend to appear when several bodies are exported together without being joined, or when a surface model is exported instead of a closed solid.

STL compared with 3MF and STEP

STL is simple and universally supported, but it carries far less information than modern alternatives. 3MF stores a mesh plus units, colors, materials and print settings in one package, while STEP keeps exact CAD geometry that can still be edited.

FormatGeometry typeBest use
STLTriangle mesh onlySimple single-material printing and sharing
3MFMesh with units and metadataMulti-material projects and slicer projects
STEPExact boundary representationExchanging editable designs between CAD tools
OBJMesh with optional texturesVisualization and colored models
Common formats in maker workflows

A practical rule is to archive the native CAD file or STEP as the master design and treat STL as a disposable output for a particular print. Editing an STL directly is possible with mesh tools, but precise changes such as resizing a hole are far easier in the original model.

STL also lacks any notion of assemblies or multiple materials. When a print needs two colors or a soft insert, makers either export one STL per body and align them again in the slicer, or switch to 3MF, which keeps the parts positioned together. Model repositories still distribute STL widely because every slicer and mesh tool reads it, which keeps the format relevant despite its age.

Resin printing places different demands on the format than FDM. Because resin printers resolve details of 0.05 mm or less, facets from a coarse export become clearly visible on curved faces, so resin users typically export at much finer tessellation and accept files of tens of megabytes.

Limitations and common mistakes

Most problems with STL come from what the format does not store rather than from file corruption.

  • Missing units: a part exported in inches or meters arrives at the wrong scale.
  • Low export resolution: round holes print as polygons and fit poorly on shafts.
  • Unjoined bodies: overlapping shells confuse the slicer and weaken internal walls.
  • Treating STL as the master file: later design changes become slow and imprecise.
  • Ignoring file size: extremely fine meshes slow down slicers without improving FDM prints.

A plain-language summary

An STL file describes the outside shape of an object. It does this with many small flat triangles. Put enough of them together, and they form any shape, much like a disco ball forms a sphere from small mirrors.

A 3D printer program reads these triangles. It then works out how to build the object layer by layer. The file only knows the shape. It does not know size units, colors or how the object was designed.

An example from practice

A hobbyist designs a replacement knob for a kitchen appliance in parametric CAD. The knob has a 6 mm D-shaped bore that must grip a metal shaft. The first export uses the default coarse setting, and the printed bore turns out to be a visibly faceted polygon that wobbles on the shaft.

The designer exports the body again in millimeters with a chordal deviation of 0.01 mm and an angular tolerance of 10 degrees. The file grows from about 200 KB to 1.5 MB, which the slicer handles easily. The second print has a smooth, round bore that fits the shaft snugly, and the native CAD file is kept as the master so the bore size can be adjusted later in seconds.