STL to GLB Converter for Web Viewers | MiConvert

Convert STL to GLB Online

Your STL mesh comes back as one self-contained GLB file that web and AR viewers load straight from a URL. Plan for one thing: an STL drawn in millimeters becomes a GLB measured in meters, so a 50 mm part shows up as a 50 meter object until you scale it down.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
STL → GLB

STL files in Google Drive?

Drive cannot preview STL files. Open one from Drive with MiConvert to turn the model in your browser, or convert it and save the result next to the original. MiConvert for Google Drive →

What this conversion actually does

An STL file is a list of triangles and nothing else. There are no materials, no texture coordinates, no object names and no unit declaration, which is exactly why slicers and printers like it. Real-time engines want the opposite: glTF, and its single-file binary form GLB, which packs the mesh, a node tree, materials and any images into one stream that three.js, Babylon.js, the model-viewer web component and Android's Scene Viewer can parse directly.

On our servers the upload is opened by Blender 5.1.2 through its STL importer, which reads both binary and ASCII STL and keeps every coordinate exactly as written. The scene is then written with Blender's glTF exporter in GLB mode, so you get one binary file with the mesh data embedded rather than a .gltf plus loose .bin and image files. Axis handling is correct on this path: STL is Z-up, GLB is Y-up, and the exporter does that rotation for you, so the model stands upright in a glTF viewer.

What survives is the triangle geometry, vertex positions and face winding as they were in the STL. What is not there to begin with cannot be added: the GLB has no textures, no PBR maps and no color, so most viewers render it with their own default gray surface. Nothing in the pipeline repairs the mesh either. Holes, flipped normals, duplicate vertices and non-manifold edges arrive in the GLB the same way they left your modeler, and coordinates are never rescaled, so the numbers in the GLB are the numbers from the STL.

The people who need this are usually publishing a printable part on a website or in a product page, pushing a scan or a CAD export into a three.js scene, or handing a model to someone whose only 3D viewer is a browser. If the goal is printing instead, keep the STL or use our STL to 3MF page; GLB is the delivery format, not the manufacturing one.

How to convert an STL file to GLB

  1. Check that the STL is complete. A truncated download or an interrupted export is the usual reason the importer reports that it failed to read the file, and an STL with zero triangles is rejected rather than converted.
  2. Write down the real size of your part in millimeters. You will need it to scale the GLB afterward, because no step in the chain converts units.
  3. Upload the STL here. Guests can send files up to 50 MB and a free account raises that to 100 MB, with Plus and Pro going to 200 MB and 1 GB; up to 10 files per request on the first two plans.
  4. Start the conversion. Each file is handled on its own and results are small, since the GLB contains geometry only.
  5. Download the GLB. The link stays valid for about four hours, then the file is deleted from our server.
  6. In your viewer or in Blender, scale the object by 0.001 if the STL was in millimeters, and assign a material if you want anything other than the viewer's default surface.

What you get

  • Blender's STL importer, so binary and ASCII STL both work without converting them first
  • A single binary GLB with the mesh embedded, which loads over HTTP without any sidecar .bin or texture files
  • Correct Z-up to Y-up conversion, so the part is upright in three.js, Babylon.js and model-viewer instead of lying down
  • Coordinates passed through unchanged, so distances between features stay exactly proportional to the source STL
  • An empty-result guard: if the exported GLB would contain no meshes, the job fails with a message instead of handing you a file that loads as nothing
  • No local install and no account needed for files inside the guest limit; conversion runs on our servers, not in your browser

Video Tutorial

Pro tip: convert STL to GLB without installing anything! 💡 🔗 https://miconvert.com/en/stl-to-glb?utm_source=youtube&utm_medium=social&utm_campaign=stl-to-glb ⏱️ Timestamps: 0:00 Intro 0:06 Finding

STL to GLB questions

Why does my model look a thousand times too big in the viewer?

Because STL has no unit field and GLB is defined in meters. A 50 mm bracket is written as 50 units in the STL and read as 50 meters in a glTF viewer. Nothing in our pipeline rescales it. Fix it with a 0.001 scale on the imported node (or a 0.1% scale in Blender) if the source was millimeters, or 0.0254 if the STL was in inches.

Will the GLB have color, materials or textures?

No. The STL format stores triangles only, so there is nothing to carry over, and we do not invent a material. The GLB arrives untextured and most viewers shade it with their default gray. Add a material in Blender, three.js or your engine after import. Color-extension STL variants are not read.

Can I use the GLB for AR on an iPhone?

GLB works in web viewers and in Android Scene Viewer. iOS AR Quick Look wants USDZ, and our USDZ output is a single untextured mesh with no unit metadata that does not pass Apple's own USDZ compliance checker, so we would not point you at it for a published AR experience. For iOS, export USDZ from a tool that writes materials and unit data.

Is the GLB compressed or optimized?

No. The exporter writes uncompressed geometry: no Draco, no meshopt, no texture compression. If you need a smaller file for the web, run the downloaded GLB through gltf-transform or gltfpack, or decimate the mesh before uploading, since a dense STL from a scanner or a CAD tessellation stays dense in the GLB.

The conversion failed with an STL import error. What now?

That message means the importer could not parse the bytes. Re-download the file if you got it from a web page, then re-export it from your CAD or mesh tool as binary STL. If the file opens in your modeler but has no faces, the job stops with a message that the imported model has no exportable geometry, which usually means the export selected nothing.

Do you fix holes or make the mesh watertight before exporting?

No. There is no repair stage in this conversion, so manifold problems, self-intersections and flipped faces survive into the GLB. Repair the STL first in MeshLab, Blender's 3D Print Toolbox or a slicer's repair tool if the mesh has to be clean.

Could I just do this in Blender or with a Python script?

Yes, and it is the same idea as our pipeline: Blender can import STL and export GLB, and trimesh can load an STL and export GLB in a few lines. This page exists for when you do not want to install either, or when you need the file from a machine without a 3D toolchain. Note that most scripted routes also leave the unit question to you.

What happens to my files after the conversion?

The upload is deleted as soon as the job finishes, whether it succeeded or failed on its last attempt. The converted GLB and its download link last about four hours, after which the file is removed automatically. The link is a long random token and is not published anywhere, though file names, sizes and outcomes are logged for operations, and signed-in accounts keep a conversion history entry.