How to convert STL to glTF
- Drop your .stl file into the box above, or click Choose file.
- Check the 3D preview, size and triangle count.
- Make sure glTF is selected as the output format. Adjust scale or up-axis if needed.
- Click Download. The .gltf file is created instantly on your device.
Why convert STL to glTF?
glTF is the standard 3D format of the web; converting STL to glTF lets you display a printable model in any web viewer.
What changes in the conversion
- Units. glTF is defined in metres. Large models (in millimetres) are scaled ×0.001 automatically so they appear at real size.
- Up-axis. STL is usually Z-up while glTF is Y-up; the model is rotated so it stands the right way up. Untick "Convert up-axis" to keep the raw coordinates.
- Geometry is preserved. Every triangle, with all object transforms applied, ends up in the new file.
STL vs glTF
| STL | glTF | |
|---|---|---|
| Full name | Stereolithography | GL Transmission Format |
| Stores | geometry only | geometry, materials, textures, hierarchy and animations |
| Colour | No | Yes |
| Textures | No | Yes |
| Units | none – most programs read STL numbers as millimetres | metres by specification |
| Exact CAD geometry | No | No |
About the formats
STL – Stereolithography
STL (Stereolithography) was created by 3D Systems in 1987 for its stereolithography printers. It describes only the surface of a model as a list of triangles, without colour, materials or units. It is the default file for 3D printing and the format almost every slicer (Cura, PrusaSlicer, Bambu Studio, Chitubox) opens. More about STL files
glTF – GL Transmission Format
glTF (GL Transmission Format) was published by the Khronos Group (version 2.0 since 2017). It is a JSON scene description that references binary buffers and textures, either as separate files or embedded. It is the "JPEG of 3D" – the most common format for real-time 3D on the web and in engines like three.js, Babylon.js and Unity. More about glTF files
Common problems when converting STL to glTF
- Model 1000 times too big. STL numbers are normally millimetres, and glTF counts in metres. Use the ×0.001 scale suggested for this pair so a 120 mm part is 0.12 m in the scene.
- Standing on its head or lying down. STL from CAD and slicers is Z-up, glTF is Y-up. Turn on the axis conversion so up stays up in three.js, Babylon.js or Godot.
- Faceted shading. STL has a single normal per triangle, so curved surfaces look like polished gems under real-time lighting. Apply auto smooth in Blender or compute vertex normals in your engine.
- No materials. The glTF gets a simple default material. Edit the material values in the JSON or in Blender to give it the right colour, roughness and metalness.
Tips for best results
The .gltf is written as a single self-contained JSON file with the geometry embedded as base64. That makes it easy to inspect and edit in a text editor, for instance to change the material's baseColorFactor, but it is about a third larger than the same data in a GLB.
If the model is for production use on a website, convert STL to glTF for editing, then pack it as GLB for publishing. For direct delivery, converting the STL straight to GLB saves a step.
STL files from scans or organic sculpts can carry millions of triangles. Reduce them before conversion; a few hundred thousand triangles is plenty for a detailed web preview, and far fewer is enough for simple mechanical parts.
Common questions
Is this converter free?
Yes – completely free and unlimited, with no sign-up and no watermark, for files up to 100 MB. Pro adds files over 100 MB and batches of hundreds of files.
Are my files uploaded to a server?
No. The conversion runs entirely in your browser using WebAssembly and JavaScript. Your model never leaves your computer, which also makes it safe for confidential parts and patient data.
Is there a file size limit?
There is no fixed limit. Files of a few hundred megabytes work on a typical laptop; the practical limit is your device's memory.
Should I convert STL to glTF or GLB?
Choose GLB for publishing because it is a single compact binary file. Choose glTF if you want to read or edit the JSON, such as material values, by hand.
Why does my STL look faceted in a glTF viewer?
STL stores only flat triangle normals. Smooth the normals in Blender or in the engine to get soft shading on curved surfaces.