Convert STL to GLB
Turn STL models into GLB. The triangles as one white mesh, turned from Z-up to Y-up so the model stands upright in glTF viewers.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop STL files on the dialor turn it to pick what to do
An STL mesh that stands upright.The triangles become one white GLB mesh, turned to stand upright.
What you get
A GLB file with the triangles from the STL as one white mesh. The conversion produces one file.
STL models are built with Z pointing up, and glTF viewers expect Y to point up. The conversion turns the model from Z-up to Y-up, so it stands upright when you open it in a glTF viewer.
What it leaves behind
STL holds geometry only, with no color or units, so the GLB has nothing else to carry over. The mesh is white because the STL gives no color to use.
GLB can hold meshes, materials and textures, but the output holds only the single white mesh.
When it stops
If the file cannot be parsed, the conversion stops with
input_corrupted. The STL needs to be a file that can be read as a triangle mesh before it can become a GLB.To go the other way, use GLB to STL. For other options, see every STL conversion.
STL and GLB.What each format is.
The formats
STL
Triangle meshes for 3D printing. Geometry only, no color or units.
- Extensions
- .stl
- MIME type
- model
/stl - Kind
- 3D models
glTF Binary
glTF 2.0 in one binary file with meshes, materials and textures. The web's 3D format.
- Extensions
- .glb
- MIME type
- model
/gltf -binary - Kind
- 3D models
In your code.The same STL to GLB conversion through the API, for your app or your agent.
$ cv convert model.stl model.glb$ cv convert model.stl model.glbQuestions.What people ask about STL to GLB.
No. The mesh is white. STL has no color to carry over.
STL models are usually Z-up, and glTF is Y-up. The conversion turns the model from Z-up to Y-up so it stands upright in glTF viewers.
No. STL has no units, so the GLB has none to take from it.
The file could not be parsed. The conversion stops with input_corrupted and produces no GLB.