STL to GLB: our test
The GLB is 89% smaller than the STL, because GLB is compact binary.
- Sample file
- x-end-motor.stl (1.3 MB)
- GLB file
- x-end-motor.glb (145 KB)
- Triangles
- 8,202
- Time in our test
- under a second
Showing a printable product on a website or Shopify store needs GLB, the binary glTF format that browsers load directly. This converts your STL into a compact GLB that model-viewer and three.js display without plugins.
Start from the STL of the product or part.
Drop it above and keep GLB as the output; the triangles are packed into one binary file.
Upload the .glb to Shopify as a 3D model, or point a
The GLB is 89% smaller than the STL, because GLB is compact binary.
GLB is one of the smallest ways to ship a mesh: our 1.4 MB text STL became a 148 KB GLB, about ten times smaller, because GLB stores shared vertices in binary. Smaller files mean the 3D view on your product page loads before the visitor scrolls away.
Because STL has no colour, the GLB gets a neutral grey material. For a product page you will usually want to set the colour or add a texture in Blender or the three.js editor after converting.
Format guides: STL files · GLB files
Yes. Shopify accepts GLB uploads as 3D media on a product.
GLB stores each corner once and packs numbers in binary; text STLs repeat every corner as text.
The numbers are kept. glTF treats them as metres, so a millimetre part looks 1,000 times too big in AR viewers; scale it by 0.001 in your viewer or in Blender.