STL Viewer Blogstlviewer.swift.id

GLB to STL: Viewing glTF Files and Making Them Printable

By Ihwan · · 5 min read

A lot of 3D content now arrives as .glb or .gltf: models from web galleries, AR previews, game asset packs, and the output of most AI text-to-3D and image-to-3D generators. They look great in a browser. Then you try to print one, and your slicer refuses it, or your phone viewer says the format isn't supported. Searches for "GLB viewer" and GLB to STL are rising for exactly this reason.

This guide explains what GLB is built for, why it isn't a printing format, how to convert it to STL on a computer, and what to check once you have the STL.

Short answer: GLB/glTF is a format for web, AR and games, with textures, animation and no guarantee of a printable mesh. To print it, import it into a 3D modeling or mesh tool on a computer, set the real size, and export STL or 3MF. STL Viewer does not open GLB; open the exported STL in it to check size, watertightness and filament.

What GLB and glTF are for

glTF is often described as "the JPEG of 3D": a compact format for delivering 3D scenes to screens. A .gltf is a JSON file that usually points to separate binary data and texture images; a .glb packs all of that into one binary file. It can hold:

What it does not promise is anything a printer needs: a single closed volume, sensible wall thickness, or a defined physical size. glTF uses meters by convention, which is fine for a game, but it means a 15 cm figurine may come out as 0.15 units, or at whatever size the creator chose.

GLB vs STL for printing

GLB / glTFSTL
Made forDisplay: web, AR, gamesManufacturing: 3D printing
ColorTextures and materialsNone
UnitsMeters by conventionNone; mm assumed
Closed meshNot requiredExpected by slicers
ExtrasAnimation, lights, camerasNone
Slicer supportRareUniversal

A GLB can look perfect on screen while being a set of separate, open shells: a character's eyes, hair and clothes may be independent pieces floating inside each other. The texture hides it. The printer can't.

Can you view a GLB on Android?

Some browsers and AR features on phones can display GLB files. STL Viewer cannot: if you open a GLB or glTF, it shows a message that these files aren't supported yet and asks you to export the model as STL, OBJ or 3MF. That isn't a missing checkbox; the app is built around printable formats and their numbers (size, volume, watertight check, filament), which don't apply cleanly to a textured scene.

How to convert GLB to STL

Conversion is a computer job. Any 3D modeling program or free open-source mesh tool that imports glTF can do it. The general steps:

  1. Import the GLB. Look for "Import > glTF 2.0 (.glb/.gltf)".
  2. Delete what you don't print: cameras, lights, armatures and any ground plane.
  3. Apply transforms and animations so the mesh is in its rest pose at the scale you see.
  4. Join or union the parts you want as one print. Overlapping shells should be merged with a boolean union, not just joined, if you want a clean single volume.
  5. Set the real size. Decide the height you want, for example 80 mm, and scale the model to it.
  6. Export STL (or 3MF if you want to keep color for a multi-color printer), in millimeters.

Some quick online converters can also turn GLB into STL, but they only translate triangles: they don't fix floating parts, open shells or size. Treat the output as a starting point and check it.

What to check in the STL after converting

Open the exported STL on your phone in STL Viewer for Android and go through the info panel:

CheckTypical problem from GLBWhat it looks like
SizeExported in meters0.08 x 0.05 x 0.12 mm instead of 80 x 50 x 120 mm
WatertightOpen shells, separate pieces"No, it has holes or open edges"
Inside-out facesFlipped normals from the original asset"Yes, but some faces point inward"
TrianglesOver-dense generator output1-2 million triangles for a small figure
Floating bitsEyes, accessories not attachedVisible gaps in x-ray view

If the size is off by 1,000, fix it on the PC by scaling 1000x and exporting again; a jump that large is better done at the source. For smaller adjustments, such as taking a correctly sized 98 mm figure to exactly 120 mm, Premium's Scale & export rescales on the phone by percent or to a target height and saves a new binary STL. The scale and export guide explains the options.

A note on AI-generated GLB models

AI 3D generators almost always output GLB, because their first job is a nice preview. The meshes are often non-manifold, very dense and of arbitrary size, with thin features like fingers or sword tips that won't survive a 0.4 mm nozzle. Converting to STL is step one; checking it is step two. Our article on what to check in AI-generated models walks through that in detail.

Worked example: a 1.2 million triangle GLB figure

You import a generated GLB, delete its camera, apply the scale, and export STL. On the phone the info panel reads 0.064 x 0.041 x 0.098 mm, 1,214,000 triangles, watertight "No". So: it was in meters (scale 1000x to get 64 x 41 x 98 mm), it needs a hole fill and union in a mesh tool, and decimating to around 300,000 triangles will make slicing faster with no visible loss at 0.2 mm layers. Re-export, re-check, and only then slice. For why closed meshes matter, see what watertight means; for scaling, how to scale an STL to an exact size.

Note: STL Viewer never opens, converts or repairs GLB files. All conversion happens in other software; the app is for checking the STL or 3MF you export.

The formats the app does open are listed on the STL Viewer website.

Frequently asked questions

Can I 3D print a GLB file?

Not directly in most slicers. Convert it to STL or 3MF in a 3D modeling or mesh tool, set the real size, and check that the mesh is closed.

How do I convert GLB to STL?

Import the GLB into a 3D modeling program or mesh tool, remove cameras and lights, merge the parts, scale to the size you want and export STL in millimeters.

Why is my converted GLB tiny?

glTF uses meters by convention, so a model can arrive 1,000 times too small when read as millimeters. Scale it by 1000x.

Does STL Viewer open GLB files?

No. It shows a not supported message; export the model as STL, OBJ or 3MF and open that file instead.