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.
| Property | ASCII STL | Binary STL |
|---|---|---|
| Structure | Readable text with keywords such as facet and vertex | 80-byte header, triangle count, 50 bytes per triangle |
| File size | Roughly four to five times larger | Compact |
| Precision | Depends on printed decimal digits | 32-bit floating point |
| Typical use | Debugging and teaching | Everyday printing and exchange |
| Color support | None | Only through nonstandard extensions |
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.
| Setting | Typical value | Result |
|---|---|---|
| Coarse | Deviation about 0.1 mm | Visible facets on holes and fillets |
| Medium | Deviation about 0.01-0.05 mm | Good balance for FDM printing |
| Fine | Deviation below 0.01 mm | Smooth resin prints, very large files |
| Angular tolerance | 5-15 degrees | Lower values add facets on small radii |
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.
| Defect | Consequence in the slicer | Typical repair |
|---|---|---|
| Holes or open edges | Missing walls or failed slicing | Automatic hole filling |
| Flipped normals | Regions treated as inside out | Recalculate normals |
| Non-manifold edges | Ambiguous inside and outside | Remesh or delete stray faces |
| Self-intersections | Overlapping shells, odd infill | Boolean union of shells |
| Degenerate triangles | Tiny gaps and artifacts | Merge close vertices |
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.
| Format | Geometry type | Best use |
|---|---|---|
| STL | Triangle mesh only | Simple single-material printing and sharing |
| 3MF | Mesh with units and metadata | Multi-material projects and slicer projects |
| STEP | Exact boundary representation | Exchanging editable designs between CAD tools |
| OBJ | Mesh with optional textures | Visualization and colored models |
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.