Converts STL into GLB so the model works on the web. GLB is what <model-viewer>, Three.js, Babylon.js and AR quick-look all want, and STL is what CAD gave you.
Vertices are merged automatically
Indices are written as 16-bit where the mesh is small enough and 32-bit otherwise, which is what glTF expects and what keeps the file compact.
Scaled to metres
This matters most for AR, where the model is placed at real-world scale: get the units wrong and a phone case arrives the size of a building.
What is still missing
Other names for this
Also searched as “stl to gltf”, “stl for model-viewer”, “stl to ar”.
Questions
- How do I display the result on a web page?
- The simplest route is Google’s
<model-viewer>element: point itssrcat the .glb. Three.js and Babylon.js both load GLB directly too. - The model has no colour.
- STL has no material information, so viewers apply a default. Add a material in Blender and re-export if you need one.
- It appears enormous in the viewer.
- Units. glTF is metres; a millimetre model is a thousand times too big without the automatic conversion, which is on by default.
- Is my model uploaded?
- No. The parsing and rewriting happen in this tab. Models are frequently confidential — an unreleased product, a client’s part, a scan of something proprietary — and none of it is transmitted. Turn your Wi-Fi off and the tool keeps working.
- How large a model can I convert?
- There is no imposed limit; the ceiling is your device’s memory. A desktop browser handles files of roughly 2 GB and a phone about 400 MB. A 200 MB STL — around four million triangles — converts in a few seconds on a laptop.