STL to GLB converter

Put a 3D-printing model on a web page, in an AR viewer or into a game engine. The STL is converted to a compact GLB — scaled to metres and turned Y-up, as the glTF standard expects — and previewed before you download.

3D model converterSVG to STLImage to STLText to STLDXF to STL3D viewer

Printing format in, web format out

STL is everywhere in 3D printing and almost nowhere else. Web 3D viewers, AR, product configurators and game engines have standardised on glTF, and GLB — the single-file binary version — is the form they like best. If you want to show a printable model on a shop page, embed it in a portfolio, preview it in AR, or bring it into a real-time engine, GLB is what you need.

What changes in the conversion

The glTF standard is strict about two conventions that 3D-printing files ignore:

The converter handles both automatically when the target is GLB, and also indexes shared vertices and writes normals, which keeps the file compact and the shading smooth where it should be.

Using the GLB

On a web page, the simplest route is Google's <model-viewer> element: one script tag and <model-viewer src="part.glb" camera-controls ar>. In three.js, load it with GLTFLoader. In Blender, File → Import → glTF 2.0. To see how a GLB looks before publishing, open it in the GLB viewer.

The opposite direction — a GLB from a scan or asset site into a printable file — is GLB to STL. Starting from an OBJ instead, use OBJ to GLB.

Nothing is uploaded

Most online converters send your file to a server, process it there and hand back the result — which means your drawing or photo sits on someone else's disk for however long their retention policy says. This page does all of the work in your browser tab. The file is read with the browser's FileReader, converted by JavaScript on your own processor and saved straight to your downloads folder. You can confirm it: open your browser's developer tools, switch to the network tab and watch that no request carrying your file is ever made.

Frequently asked questions

What is a GLB file?

GLB is the binary form of glTF, the standard 3D format for the web. A single .glb file contains the mesh, normals and materials, and loads directly in three.js, Babylon.js, Google's model-viewer, Unity, Unreal, Blender and Windows 3D Viewer.

Will the GLB be the right size?

glTF uses metres, and STL files for printing are in millimetres. The converter scales the model by 1/1000 on the way, so a 120 mm figure is 0.12 m in the GLB — the size AR viewers will show it at.

Does the GLB have colour?

STL files have no colour, so the model gets a neutral grey material. You can change the material in Blender or your web code.

Can I use the GLB for AR on a phone?

Yes — Android's Scene Viewer uses GLB directly. For iPhone Quick Look you need USDZ, which Blender or Apple's Reality Converter can make from the GLB.

Why is the GLB smaller than the STL?

STL repeats every shared corner for each triangle. GLB stores each corner once and refers to it by index, typically halving the size of a binary STL.

More conversions

Want a finished design rather than a conversion? LyraMaker has more than a hundred free generators — name keychains, plates, monograms, rulers, QR codes and more, all exporting STL and 3MF.
Browse the generators →