The Xometry app works best with JavaScript enabled!
Resources3D Printing DesignSTL File Format: Types and Converter

STL File Format: Types and Converter

Megan Conniff - Xometry Contributor
Written by
 23 min read
Published August 30, 2022
Updated March 19, 2026

Learn about the importance and use of this file format in 3D printing.

STL file name. Image Credit: Shutterstock.com/Profit_Image

Stereolithography (STL) file format is a 3D model file type that uses an object as a triangle mesh describing exterior surfaces. STL file format transfers printable geometry from CAD or modeling software into slicing programs used for additive manufacturing. The file stores surface geometry and generally excludes material definitions, textures, assemblies, tolerances, and CAD feature history, while software extensions support basic color data for non-standard or vendor-specific extensions. The STL file format does not define units, which creates scale ambiguity across software that assumes different measurement systems. 

Slicing software converts the STL mesh into layer cross sections and generates toolpaths for walls, infill, and supports. The slicer exports machine instructions as G-code or a printer-specific job file rather than sending STL directly to the printer. STL converters translate other 3D formats into STL when a slicer requires mesh input. STL file format fits projects that need basic shape transfer for printing or quoting, while 3MF and STEP fit workflows that require metadata or editable CAD solids.

What Is an STL File Format?

A STL file format is a 3D model file that stores a part as a triangle-based surface mesh. STL is associated with stereolithography, and the format gained early adoption through additive manufacturing systems that needed a simple surface description. The file records only the external geometry of the model and excludes material definitions, textures, and CAD-level design intent. The standard STL specification also does not define color attributes, although some non-standard vendor-specific binary extensions allow limited color storage. Each triangle defines a flat surface patch, and the full shape emerges from the connected facets across the model. The minimal structure simplifies parsing and compatibility with slicing software, although file size can become large for complex or high-resolution meshes because STL stores explicit triangle data without compression.

How Is the STL File Format Defined in 3D Printing?

The STL file format is defined by a triangulated representation of a 3D object’s surface geometry. The model is broken into small triangular facets, and each facet defines a flat patch of the exterior surface. The full shape forms from the connected facets across the mesh. The triangle mesh gives slicers a consistent surface to process into layer outlines. The slicer converts the mesh into toolpaths for walls, infill, and supports. STL excludes units, materials, and CAD feature history in the official specification; however, limited color data exists in non-standard vendor-specific extensions. The simplified data structure improves compatibility and parsing across software used in 3D Printing, although file size can become large for high-resolution meshes because STL stores explicit triangle data without compression.

Is STL the Standard File Format for 3D Printing?

No, STL is the standard file format for 3D printing. STL is widely used and historically dominant, but it is not an official or universal standard for 3D printing. The mesh format works across nearly every slicer and stays easy for CAD tools to export. The file uses the part as a triangle surface shell, which keeps the structure lightweight and readable. Slicers import STL to generate layer contours, calculate deposition paths, and output printer commands. Printers run the generated command file rather than the STL file itself. 3MF continues to grow in popularity because the format keeps units and print metadata, yet STL remains a common option for simple model sharing.

The STL preview of a Xometry X tile.
The STL preview of a Xometry X tile.

What is an STL File Used For?

An STL file is used for transferring a 3D part from CAD into print preparation for additive manufacturing. CAD software exports the model as an STL, so slicing software reads the geometry as a triangle mesh. The mesh describes the exterior surfaces and excludes parametric features and design history. The slicer converts the mesh into stacked layer outlines based on settings like layer height and line width. The slicer calculates extrusion paths for walls, infill, and supports. The slicer outputs a printer instruction file (G-code or a vendor job format). The printer executes the instructions to build the part layer by layer.

What Role Do STL Files Play in 3D Printing?

The STL files play a foundational role in 3D printing by serving as the mesh-based geometry file passed from design export into slicing. The STL file defines the outer surfaces of the part using connected triangles rather than CAD solids. Slicing software converts the mesh into layer outlines and calculates deposition routes for walls, infill, and supports. The slicer outputs printer instructions as G-code or a proprietary job file that the machine controller executes. STL competes with newer formats (3MF, OBJ) that preserve more metadata, yet STL remains common because nearly every CAD and slicing tool supports it.

Are STL Files Required to Create 3D Prints?

No, STL files are not required to create 3D prints. STL files are not required because other formats (3MF, OBJ, AMF) are used in printing workflows. Modern slicers accept 3MF and OBJ directly, and printer ecosystems support 3MF-based transfer. STL remains a supported option across slicers, printer brands, and CAD export tools. The format stays common because it transfers basic geometry reliably across software. 3MF is preferred for workflows that need units, colors, and print settings stored with the model. The choice depends on the printer, slicer, and project requirements.

What Type of File Is an STL File?

An STL file is a 3D mesh format that stores the surface geometry of a part. The format uses the shape as a set of connected triangular facets. Each triangle approximates a small section of the model’s exterior surface. STL files do not store parametric features, sketches, constraints, or CAD design history. STL files do not store units, which can cause scale errors across software. The lightweight structure makes STL supported in slicers, mesh repair tools, and additive manufacturing workflows. The format works well for geometry transfer, but the mesh representation limits precision on curved surfaces compared to CAD solids.

How Are STL Files Classified Among 3D File Types?

STL files are classified as surface-mesh files with objects represented as a network of connected triangles. The format describes the external shape of the model without storing information about materials, colors, or internal structure. Each triangular facet defines a small portion of the surface, and the full geometry comes from the combined mesh. The approach differs from solid CAD formats (STEP, IGES), which store precise, editable geometry and feature data.

Is an STL File Different from a CAD File?

Yes, an STL file is different from a CAD file. The difference is due to the storage of a triangular mesh rather than editable solid geometry. CAD files contain parametric features, dimensions, and precise surfaces that allow design changes and modifications. An STL file holds the surface triangles that define the object’s shape, without feature history or parameters. The limited data structure makes the mesh difficult to edit compared with a native CAD File format.

how to convert an STL file in FreeCAD
How to convert an STL file in FreeCAD

How Does a STL File Represent 3D Geometry?

A STL file uses 3D geometry by using a network of connected triangles that approximate the outer surface of the object. The model is divided into small triangular facets, and each triangle describes a flat portion of the surface. The full shape emerges from the combination of the facets arranged across the model. A higher number of triangles increases the resolution of the mesh and produces smoother curves and surfaces in the final printed part.

How Is Geometry Stored Inside a STL File?

Geometry is stored inside an STL file by lists of triangular facets that define the outer surface of the object. Each facet contains three vertex coordinates that specify the triangle’s corners and a normal vector that indicates the outward-facing direction of the surface. The collection of the triangles forms the complete external shape of the model. The structure allows slicing software to interpret the geometry and prepare it for printing.

Does STL Use Only Triangular Facets?

Yes, STL uses only triangular facets. STL approximates the outer surfaces of a 3D model using connected flat triangles. Each facet defines a small planar patch of the object’s exterior. The complete shape forms when thousands of facets connect edge to edge across the surface. STL does not store curves, quad surfaces, or CAD-level parametric geometry. Curved features become faceted unless a high tessellation setting is used during export. The triangle-only structure keeps the file format simple and compatible. The limited geometry representation reduces accuracy and editability compared to B Rep CAD formats.

What Are the Limitations of STL Files?

The limitations of STL files are tied to the format’s focus on triangle mesh surface geometry without design intent or manufacturing context. STL files do not carry material definitions, textures, or full color data, which limits use in workflows that require appearance information. STL files do not define units, which creates scale ambiguity when files move from software that assumes different measurement systems. STL files do not support assemblies, part hierarchies, constraints, or parametric feature history from CAD models. The missing metadata reduces STL's usefulness for complex product design, revision control, and advanced manufacturing workflows.

What Data Cannot Be Stored in an STL File?

STL files cannot store color, material definitions, textures, or printer profiles because the format records geometry. The file describes the part as a triangle-based surface mesh rather than a full CAD model. STL files exclude slicer settings like layer height, infill percentage, support strategy, and temperature targets. STL files exclude CAD-level data like feature history, constraints, parametric dimensions, and assembly relationships. The missing attributes limit STL to basic shape exchange rather than full manufacturing intent.

Does STL Store Color or Material Information?

No, STL does not store color or material information because it contains geometric shape data. The format is limited to triangular facets that define the object’s surface. Color, textures, and material properties are not included in the file structure. Other formats (3MF, OBJ) are used when color or material data must be preserved.

The STL file format is a practical but limited geometric exchange standard in additive manufacturing. It reduces a 3D model to a triangulated surface mesh, enabling broad compatibility across CAD systems and slicing software. Its simplicity makes it efficient and widely supported, particularly in FDM and consumer printing workflows. However, the absence of units, metadata, materials, and parametric design information restricts its usefulness in advanced engineering and product lifecycle management contexts. As a result, STL functions best as a finalized geometry transfer format rather than a comprehensive design or manufacturing file.
Mahder Tewolde
Dr. Mahder Tewolde PhD

What Programs Can Open STL Files?

3D programs can open STL files. Applications across CAD, mesh editing, and slicing (Blender, Autodesk Fusion, Rhino, MeshLab, Cura, PrusaSlicer) accept STL because the format uses surfaces using connected triangles. Modeling tools load STL for measurement, orientation checks, and mesh cleanup. Mesh editors handle tasks (closing holes, fixing flipped normals, and reducing triangle count). Slicers import STL as the geometry source for layer generation and toolpath calculation. The shared STL support across major tool categories makes the format a practical option for transferring printable geometry from programs.

Which Software Tools Support STL Files?

3D printing and CAD software (Ultimaker Cura, PrusaSlicer, Bambu Studio, OrcaSlicer, SOLIDWORKS, Autodesk Fusion, Onshape, Blender) support STL because STL is an accepted triangle mesh format. Slicing tools that support STL include Simplify3D and ideaMaker. CAD and modeling tools that support STL import or export include Autodesk Inventor, Solid Edge, FreeCAD, Rhino, and Tinkercad. File conversion and repair tools that support STL include Meshmixer, Netfabb, MeshLab, and Microsoft 3D Builder. The broad compatibility makes STL a common handoff format across FDM, SLA, and SLS printing workflows.

Can STL Files Be Opened Without CAD Software?

Files can be opened without CAD software. STL Files are opened without CAD software because the programs support the format. Slicing software and simple mesh viewers are able to read STL files directly without requiring full CAD tools. The programs allow users to inspect, scale, rotate, or prepare the model for printing. Free applications (MeshLab, online STL viewers) provide basic viewing and editing features, which make STL files accessible even without traditional CAD software.

How Are STL Files Used in FDM 3D Printing?

STL files are used in FDM 3D printing by acting as the printable shape reference passed from design export to print preparation. The STL mesh loads into slicing software, where the surface gets converted into 2D layer outlines. The slicer computes the nozzle route for shells, internal fill, bridges, and support contact areas. The slicer outputs a machine command file that specifies axis positions, extrusion amounts, travel speeds, and heater setpoints. The printer follows the command sequence to build the part one layer at a time.

How Does STL Fit Into the FDM Printing Workflow?

STL fits into the DFM workflow through early manufacturability checks that rely on mesh-based geometry. Engineers use the STL to evaluate wall thickness, minimum feature size, hole resolution, and surface faceting before committing to production settings. Mesh inspection tools identify non-manifold edges, self-intersections, and open surfaces that cause slicing errors or inaccurate toolpaths. The workflow uses STL to verify that the exported geometry matches the CAD intent after tessellation. The workflow supports quoting and production planning for additive manufacturing because the mesh defines external volume, bounding dimensions, and print orientation constraints. The DFM process treats STL as a validation and communication format rather than the authoritative design file, since STEP preserves exact B Rep geometry and tolerancing intent.

Is STL Converted into G-Code Before Printing?

Yes, STL is converted into G-code before printing on FDM 3D printers. The conversion step exists because the printer controller requires step-by-step motion and extrusion instructions rather than a mesh file. Slicer software converts the STL into stacked layers and calculates nozzle travel paths for walls, infill, and support structures. The generated G-code lists coordinates, extrusion amounts, feed rates, and temperature targets. The printer follows the command sequence to deposit material and form the part layer by layer.

How Do Filament Materials Use STL Files?

Filament materials use STL files as a geometric reference that defines the shape to be printed. The STL file contains the triangular surface mesh of the object, without any information about material type or print settings. A slicer reads the STL geometry and then applies material-specific parameters (nozzle temperature, bed temperature, print speed, and cooling). The same STL file is printed using different filaments (PLA, ABS, PETG) by adjusting the slicer settings. The file provides the shape, while the material settings determine how the printer builds that shape.

Why Is STL Independent of Material Type?

STL is independent of material type because the file stores geometric surface data. The format contains triangles that describe the object’s shape, but it does not include information about material, color, or print parameters. Material selection occurs later in the slicing stage, where the user chooses filament type and related settings. The separation allows a single STL file to be used with different filament materials without changing the geometry.

Does STL Change Based on Filament Type?

No, an STL file does not change based on filament type because it stores the geometric shape of the model. The file contains a triangular mesh that is the object’s surface, without any material or print setting data. Print parameters (temperature, speed, and cooling) are applied later inside the slicer based on the selected filament. The geometry in the STL remains identical regardless of the material used for printing.

What Is an STL Converter?

An STL converter is a software tool that changes 3D model files from one format into the STL mesh format used for 3D printing. The converter reads the original file (STEP, OBJ, native CAD) and translates the geometry into a triangular surface mesh. CAD programs, online tools, and dedicated converters include STL export functions. The converted STL file becomes compatible with slicers, which prepare the model for printing.

Why Are STL Converters Used in 3D Printing?

STL converters are used in 3D printing because they translate models from CAD or modeling formats into a triangular mesh that slicing software can process. Design programs often create files in formats including STEP, OBJ, or native CAD types that slicers cannot interpret directly as printable meshes. Conversion tools transform the original geometry into an STL surface mesh that slicers analyze to generate layer outlines and toolpaths. Many modern slicers support formats including 3MF and OBJ, so STL is not always required, but it remains widely used for compatibility. The software exports machine instructions, including G-code or printer-specific job files that the printer executes during fabrication after slicing.
Converters are used in 3D printing because STL converters change models from other file formats into the STL mesh required by slicing software and printers.

Does File Conversion Affect Model Accuracy?

Yes, file conversion affects model accuracy. Accuracy loss occurs primarily during solid-to-mesh tesselation (e.g., STEP to STL). Conversion between mesh formats (e.g OBJ to STL) typically preserves geometric shape unless re-tessellation or precision reduction occurs. When a solid model is converted into an STL mesh, curved surfaces are approximated by triangles. Lower mesh resolution reduces file size but creates rough or faceted surfaces. Higher resolution preserves smoother geometry but increases file size and processing time. Engineers must balance resolution and file size to maintain acceptable accuracy after conversion. It is noted that not all conversions alter geometry. Tesselation introduces approximation, not simple format rewriting.

How to Convert CAD Files to STL?

CAD files are converted to STL through an export workflow in the CAD program. CAD applications generate STL directly from a solid body or surface model. The export step tessellates the CAD geometry into a triangular mesh that uses the part’s exterior surfaces. The STL output stores faceted shape data and excludes parametric features, constraints, and design history. Slicers use the triangulated mesh to compute layer contours and generate toolpaths for 3D printing.

What Happens During CAD-to-STL Conversion?

Tessellation occurs during CAD-to-STL conversion. CAD software converts the solid model into a triangular mesh that approximates the part’s exterior surfaces. The conversion process breaks curved and complex faces into small planar facets. Each facet uses a small portion of the geometry. Higher mesh resolution increases triangle count, which improves surface finish and preserves small features, but increases file size and slicing workload.

Can STEP Files Be Converted to STL?

Yes, STEP files can be converted to STL because CAD systems and file conversion tools include an STL export function. STEP files store precise solid geometry used for design and engineering work. The export process converts the solid into a faceted triangle mesh that uses the exterior surfaces. The STL output contains the mesh surface and removes parametric features and model history. The STL format works for slicing and 3D printing because slicers generate toolpaths from triangulated geometry.

How to Convert STEP Files to STL?

STEP files are converted to STL by opening the STEP model in CAD software and exporting it as an STL mesh. CAD programs provide an export or save-as option that includes STL among the available formats. Online converters and dedicated conversion tools offer another method for generating STL files from STEP geometry. During the export process, users adjust mesh resolution settings to control the balance of surface smoothness and file size, which explains the role of STEP Files in design-to-print workflows.

Why Is STEP-to-STL Conversion Common?

STEP-to-STL conversion is common because STEP files are designed for precise CAD modeling, while STL files are intended for 3D printing workflows. STEP stores accurate solid geometry that engineers use for design, modification, and assembly work. Most slicing programs accept STL as a common input format, while 3D printers execute G-code or other machine instruction files generated by the slicers. Converting STEP to STL changes the solid model into a triangular mesh that slicers process into printable layers. The conversion step connects the design environment with the manufacturing process and allows the model to move from CAD software into the printer workflow.

Is STL Better Suited for Printing than STEP?

Yes, STL is better suited for consumer and FDM printing because the format is simpler and supported by slicing software. STL files contain the surface mesh needed to create toolpaths, which match the requirements of printers. STEP files hold precise solid geometry and are intended for editing and engineering design rather than direct printing. STL provides a compatible and straightforward format for typical printing workflows, while STEP remains suitable for design and modification tasks.

How to Convert STL Files to STEP?

STL files are converted to STEP by importing the mesh into CAD software and rebuilding the geometry as a solid model before exporting it in STEP format. CAD programs include mesh-to-solid or reverse-engineering tools that analyze the triangular facets and attempt to reconstruct smooth surfaces and solid features. The software converts the faceted mesh into boundary surfaces, then joins the surfaces into a closed solid suitable for STEP export. The result requires manual repair because gaps, distorted surfaces, or missing features appear during the reconstruction process.

What Challenges Exist in STL-to-STEP Conversion?

STL-to-STEP conversion presents challenges because an STL file stores a triangular mesh, whereas a STEP file is a precise solid model. The conversion process must interpret thousands of triangles and rebuild smooth surfaces, which becomes difficult when the mesh has low resolution or defects. Poor mesh quality produces gaps, inaccurate surfaces, or geometric inconsistencies. Converted files require manual repair or remodeling inside CAD software to restore accurate dimensions and clean surfaces.

Is STL-to-STEP Conversion Fully Accurate?

No, STL-to-STEP conversion is not fully accurate. Inaccuracy of STL-to-STEP conversion occurs when an STL file stores a triangular mesh rather than true solid geometry. The mesh must be interpreted and rebuilt into surfaces or solids, which leads to small deviations from the original shape. Geometric details are commonly lost when the mesh resolution is low or contains errors. Engineers need to remodel or refine the converted file to restore precise dimensions and smooth surfaces.

How to Convert OBJ Files to STL?

OBJ files are converted to STL by importing the OBJ mesh into a modeling, repair, or slicing tool and exporting the geometry as an STL file. 3D tools include a direct STL export option (Blender, MeshLab, Ultimaker Cura) for mesh conversion workflows. The conversion process rewrites the triangle mesh into STL surface data without changing the core geometry. The export step drops UV mapping, texture references, and material library data because STL does not support the attributes. The mesh conversion preserves shape while removing appearance metadata, which converts STL to OBJ Files.

Why Is OBJ Converted to STL for Printing?

OBJ files are sometimes converted to STL for printing to maintain compatibility with workflows that use STL as a common mesh exchange format. Modern slicing software widely supports OBJ directly, so conversion is not required in most current workflows. OBJ files store additional information including vertex colors, UV coordinates, and references to material libraries that are not typically used in FDM printing. Converting OBJ files to STL removes texture and material references and leaves the triangular mesh required for slicing. The conversion step is mainly used for compatibility with legacy software or pipelines that expect STL as the primary mesh input format. 

Is Color Data Lost When Converting OBJ to STL?

Yes, color data is lost when converting an OBJ to STL. Color data loss occurs when STL stores geometric surface data. The STL format contains triangular facets that describe shape, but it does not include information about color, textures, or materials. The additional visual data is removed during conversion when an OBJ model with color or texture is exported as STL. Formats 3MF and OBJ must be used when color or material information needs to be preserved for printing.

How do STL Files Work With G-Code?

STL files work with G-code by first being sliced into thin layers that are converted into machine instructions for the printer. A slicer imports the STL file and divides the triangulated geometry into horizontal layers based on the selected layer height. The slicer then translates each layer into toolpaths that define nozzle movement, extrusion amounts, temperatures, and travel speeds. The output of the slicing process is a set of commands written in G-code, following the standard G-Code Definition used by printer firmware to control motion and extrusion. The G-code file ultimately controls the printer’s motion and extrusion behavior to build the physical part layer by layer.

How is STL Translated Into Machine Instructions?

An STL file is translated into machine instructions by a slicer that converts the triangular mesh into layered toolpaths for printing. The slicer analyzes the surface geometry, divides the model into layers, and generates paths for each layer. It calculates movement commands, extrusion amounts, speeds, and temperature settings based on the selected print profile. The toolpaths are then written as G-code commands that control printer motion and material flow. The printer firmware reads the G-code line by line and follows the instructions to build the object layer by layer during the printing process.

Is Printer Motion Controlled by G-Code Only?

Yes, printer motion is controlled by G-code in many FDM systems, but some printers use proprietary job formats or alternative control architectures. commands to move axes, control extrusion, and regulate temperatures during the print process. G-code instructions define positions, feed rates, nozzle temperatures, and extrusion amounts for each step of the print. The firmware inside the printer reads each command line by line and converts the instructions into motor movements and heater actions in real time. The entire printing sequence depends on the G-code file generated by the slicer.

When Should You Use STL Instead of Other Formats?

You should use STL instead of other formats when you want to print the shape of a model without color, material data, or advanced metadata. An STL file stores surface geometry as a triangular mesh, which keeps the file simple, lightweight, and compatible with slicing software and 3D printers. The format works best in straightforward printing workflows where the design is already finalized and does not require further editing. Other formats (3MF, STEP) are suitable when the project requires editable geometry, assembly structure, material information, or embedded print settings.

Summary

This article presented STL files, explained them, and discussed their origin and how to create them. To learn more about STL files, contact a Xometry representative.

Xometry provides a wide range of manufacturing capabilities, including 3D printing and other value-added services for all of your prototyping and production needs. Visit our website to learn more or to request a free, no-obligation quote.

Disclaimer

The content appearing on this webpage is for informational purposes only. Xometry makes no representation or warranty of any kind, be it expressed or implied, as to the accuracy, completeness, or validity of the information. Any performance parameters, geometric tolerances, specific design features, quality and types of materials, or processes should not be inferred to represent what will be delivered by third-party suppliers or manufacturers through Xometry’s network. Buyers seeking quotes for parts are responsible for defining the specific requirements for those parts. Please refer to our terms and conditions for more information.

Megan Conniff - Xometry Contributor
Megan Conniff
Megan is the Content Director at Xometry

Read more articles by Megan Conniff

Support
  • +1-800-983-1959

    support@xometry.com

Mailing Address

© 2026 Xometry, Inc. All Rights Reserved.

Privacy Policy | Terms of Use | Legal