Convert STL to GLB — Show Your 3D Prints on the Web
You designed something, printed it, and now you want to show it off on your website. The problem: STL files are for printers, not browsers. No web viewer natively loads STL. No e-commerce platform accepts STL for product previews. And even if you hack something together, STL's flat face normals make everything look like a low-poly rock from 2003.
Last updated Mar 2026
Drag STL file here, or click to upload
Supports .stl files up to 150MB
Usually under 3 seconds — depends on file size.
What You Should Know
From Flat Shading to Smooth: What the Converter Does
STL stores geometry as a list of triangles, each with a single face normal (perpendicular to the triangle surface). This produces flat shading — every triangle is a distinct flat plane, and you can see hard edges everywhere. Fine for slicer software, terrible for web display. The converter recalculates normals as per-vertex smooth normals: vertices shared between faces get averaged normals, creating the illusion of smooth curved surfaces. This is the same technique games and web viewers use to make low-poly models look acceptable. The threshold angle for smooth vs. hard edges is set at 80° — edges sharper than that (like the corner of a box) stay crisp, while gently curved surfaces (like a vase) look smooth. The output includes a default PBR material: base color #808080, metallic 0.0, roughness 0.5. This is a neutral starting point that responds well to environment lighting. You can change it later in gltf.report, Blender, or programmatically in Three.js.
File Size: STL vs GLB vs Compressed GLB
For Binary STL input, the GLB will be 20-40% larger due to scene graph metadata and material definitions. A 5 MB Binary STL → ~6.5 MB GLB. For ASCII STL input, the GLB will actually be smaller because binary geometry encoding beats text — a 15 MB ASCII STL → ~7 MB GLB. If the output is too large for web delivery (aim for <5 MB), two post-processing options: (1) Draco compression via gltf-transform — compresses geometry 60-80% with minimal visual loss. A 6.5 MB GLB → ~2 MB. (2) Mesh simplification — reduce triangle count in Blender (Decimate modifier) before converting. A 500K-triangle STL simplified to 100K triangles cuts file size by ~80% with barely visible difference at web resolution. For most web use cases, 50K-100K triangles is the sweet spot.
STL vs GLB: Quick Comparison
| Feature | STL | GLB |
|---|---|---|
| Geometry | Triangles | Triangles |
| Normals | Face normals (flat) | Vertex normals (smooth) |
| Materials | Not supported | PBR materials |
| Animations | Not supported | Supported |
| Primary Use | 3D printing | Web3D, AR/VR |
| Web Display | Requires preprocessing | Native support |
Use STL for 3D printing. Use GLB for web display, AR previews, and interactive 3D viewers.
When to Convert STL to GLB
Maker Portfolio with Interactive Preview
Showcase your 3D printing work with interactive models instead of static photos. Convert your STLs to GLB, embed with model-viewer (two lines of HTML, no JavaScript), and visitors can rotate, zoom, and inspect your work from every angle. For a portfolio, set shadow-intensity="1" and environment-image to a studio HDRI — the models look like professional product renders without any rendering software.
3D Print Sales with AR Try-On
Selling custom prints on your own site or Gumroad? Convert your STL to GLB and embed with model-viewer's AR mode. Mobile customers can place your product in their room at real-world scale before buying. This works on Android (Scene Viewer, native GLB) and iOS (Quick Look, needs USDZ fallback). Sellers with 3D previews report higher conversion rates because buyers can verify size and proportions.
Educational 3D Models
Anatomy models, engineering parts, architectural maquettes — many educational STL files are freely available on Thingiverse and Printables. Convert to GLB and embed on your course website or LMS. Students can explore the model interactively on any device (phone, tablet, laptop) without installing software. For anatomy models, edit the GLB in gltf.report to assign different colors to different organs or structures.
Sketchfab Upload
Sketchfab accepts GLB uploads directly and gives you a free hosted 3D viewer with embed codes, annotations, and sharing. Convert your STL here, upload to Sketchfab, add material colors and lighting in their editor, then embed the viewer on your blog, portfolio, or marketplace listing. Sketchfab's free tier allows up to 10 model uploads with up to 50 MB per file.