STL → GLB

STL to GLB converter

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.

Drop an STL file here or choose one
Files stay on your computer.
Done

How to convert STL to GLB

  1. Get the STL file

    Start from the STL of the product or part.

  2. Drop it on the converter

    Drop it above and keep GLB as the output; the triangles are packed into one binary file.

  3. Open the GLB

    Upload the .glb to Shopify as a 3D model, or point a tag at it.

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

Tips for converting STL to GLB

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

Related conversions

Questions

Can I put the GLB on my Shopify product page?

Yes. Shopify accepts GLB uploads as 3D media on a product.

Why is the GLB so much smaller than my STL?

GLB stores each corner once and packs numbers in binary; text STLs repeat every corner as text.

Does it keep the right size?

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.