Converter STL → GLB
STL to GLB converter
Convert an STL file to GLB on your own device: drop the file, check the preview and download the GLB. It is free, there is no sign-up, and the file never leaves your computer.
01 How to
How to convert STL to GLB
- Choose the STL fileDrop it on the box above or click to browse. Try a sample loads a test model.
- Check the optionsGLB is in metres, so an STL in millimetres is scaled by 0.001 for you. Set Source units if the model was drawn in centimetres or inches, and Simplify to for a lighter file.
- Download the GLBThe GLB is written in your browser, usually in well under a second, and saved straight from the page.
02 What carries over
What carries over from STL to GLB
| In the GLB file | |
|---|---|
| Shape (triangles) | Kept exactly. |
| Colours | An STL has no colours, so there are none to carry over: the GLB gets the shape only. |
| Normals | Written, computed from the shape: smooth, with edges sharper than 30° kept sharp. |
| Units | Metres, as glTF requires; millimetre sources are scaled by 0.001. |
| Orientation | Turned from Z-up to Y-up, so the part stands the same way in Blender, three.js and game engines. |
| Objects and parts | Merged into one mesh. |
| Textures and UV maps | Not carried over. |
03 The formats
STL and GLB in short
STL stores a surface as a plain list of triangles, in binary or ASCII. It has no units, colours, materials or separate parts, which is why every slicer and CAD program can read it.
GLB is the single-file, binary form of glTF 2.0, the format of the web, AR viewers and game engines: meshes, materials, textures and a scene tree, in metres. Choose GLB when the model is for a web viewer, three.js, Babylon.js, Unity, Unreal or AR on a phone.
04 FAQ
Questions and answers
Is my STL file uploaded?
No. The converter is a WebAssembly build of the cadshot engine that runs in this page. The file is read into your browser's memory, converted there and saved from the page; nothing is sent to a server.
Does STL to GLB keep the colours?
An STL has no colours, so there are none to carry over: the GLB gets the shape only.
Why is my GLB the wrong size?
STL files usually carry no unit or are in millimetres, and the GLB is written in metres. The converter scales between the two for you. If the result is 25.4 times too small, the model was drawn in inches: set Source units to inches and convert again.
Will the GLB open in three.js, Babylon.js or an AR viewer?
Yes. It is a standard glTF 2.0 binary with positions and normals in metres. Leave Smaller GLB off for the widest compatibility: quantized positions need a viewer that supports the KHR_mesh_quantization extension.
Can I make the GLB smaller?
Simplify to reduces the triangle count to 75, 50, 25, 10 or 2 % with quadric edge collapse, which keeps sharp edges where it can. Smaller GLB also stores positions quantized. The polygon reducer shows the simplified mesh before you download it.
Can I convert files from my own code, or convert STEP?
Yes, with the API: POST /v1/convert?to=glb with the file as the body returns the GLB, and the API also reads STEP and IGES through a CAD kernel. POST /v1/batch converts a ZIP of files in one request. See the docs.
05 More tools
Related converters
Convert files from your own code
The same converter runs behind the HTTP API: POST /v1/convert with the file as the body returns the converted model, and STEP and IGES work there too. EU-hosted, with a free plan of 100 units a month.