STL to GLB Converter for Web and AR, in the Browser
Add to Chrome
EnglishEN
Home › Convert › STL to GLB

STL to GLB converter

Drop an STL and the STL to GLB converter returns a single .glb file once the model is shown. Read the scale note below before you put it on a web page: glTF viewers count in meters.

Drop STL, OBJ, 3MF, STEP or G-code here

or click to browse

Also GLB / glTF, PLY, IGES, OFF, 3DS, FBX, DAE, WRL, AMF · several files at once (OBJ + MTL, glTF + BIN)

🔒 Files are opened by your browser and never leave your device

Why turn an STL into GLB

Web 3D viewers expect glTF, and GLB is its one-file binary form. A single .glb is easier to attach to an email or a shop listing than a folder of parts, and it lets a shop or a portfolio show the part in 3D instead of a photo.

The STL brings its triangles and nothing else. The GLB therefore has the shape and a plain surface, which is enough to turn and inspect a part before someone orders a print.

The scale trap: 20 mm becomes 20 m

The converter keeps raw numbers: 1 unit in is 1 unit out. STL numbers are read as millimeters, but glTF viewers treat units as meters. A cube with 20 mm sides therefore shows up 20 m wide, a thousand times too big.

For a viewer that reads meters, scale before converting. Open Edit → Size, enter 0.1 % and press Apply; the cube becomes 0.02 units wide, which the viewer reads as the right size. Then press Other formats and save the GLB.

What the STL to GLB file contains

ItemResult
TrianglesSame count as the STL
CompressionNone; saving with Draco is not offered
ColorNone to carry; the STL had no color
Text variantOther formats offers glTF as one .gltf file, or .gltf + .bin in a zip

If the part lies on its back in the web viewer, rotate it 90° about X in Edit and convert again.

Steps: convert STL to GLB

  1. Drop the binary or ASCII STL here.
  2. The bar shows name.glb, the size and Download GLB.
  3. Open Info and note the triangle count; a web page has to load all of them.
  4. If the GLB is for a meter-based viewer, apply the 0.1 % scale from the section above and save from Other formats.
  5. Download and test the file in your web viewer.

Your STL is converted by code inside this tab; the test run found no traffic to outside domains.

Lighter files for a web page

A web page loads every byte of the GLB, and dense print files are heavy. A binary STL takes 50 bytes per triangle, so a 250,000-triangle part is about 12 MB before it reaches the GLB.

Edit → Reduce triangles cuts the mesh to a percentage you choose. In the test a sphere kept its volume within 2 % at 30 % of the triangles. Info shows the count before and after, so you can compare.

When the GLB does not show up right

Test result and the way back

A test cube and a test sphere went from STL to GLB, were opened again, and kept their size, volume and triangle count. Open the result in the GLB viewer to see what a web viewer will get. The reverse path is GLB to STL. For printing workflows, STL to 3MF keeps millimeters in the file, and STL to STEP gives CAD a faceted body.

Questions and answers

Why does my GLB look a thousand times too big?

The STL numbers are millimeters and glTF viewers read meters. Scale by 0.1 % in Edit before saving the GLB.

Can the converter compress the GLB with Draco?

No, saving with Draco compression is not offered. The GLB holds plain triangles.

Can I get glTF instead of GLB?

Yes. Other formats has glTF as one .gltf file with the data embedded, or a zip with .gltf and .bin.

Will the GLB have color?

An STL carries none, so the GLB gets the shape only. Add materials in a 3D program if you need them.

Can I convert many STL files to GLB at once?

No. One file at a time: after the download press Convert another file.

Does an ASCII STL work as input?

Yes. Binary and ASCII STL both open and convert the same way.

Can I show the GLB in AR on a phone?

The GLB opens in viewers that read glTF. Scale it to meters first with the 0.1 % step, or the part will appear a thousand times too large. Test it on the phone you plan to use, since phone viewers were not part of our tests.