Free GLB optimizer. Compress GLB files in your browser.
Drop a GLB, glTF, STL or OBJ file and get an optimized .glb back, with a report on what makes it heavy.
Updated
No 3D file at hand?
Getting models ready for a product page? We build the Three.js configurators they end up in, where the buyer sees the price and the order reaches production as a full spec: Three.js product configurator agency.
How to reduce a GLB file's size
Most of a GLB's weight is textures and uncompressed vertex data, so those are the first things to cut. Five steps, and what this tool does with each.
01Compress the geometry
Meshopt or Draco compression stores vertex data at reduced precision and packs it, often cutting geometry to a fraction of its size.
This tool: the Web and Smallest presets apply Meshopt.
02Index and merge vertices
Exports from CAD and some DCC tools write every triangle corner separately. Merging identical vertices and duplicate data removes that repetition without changing the shape.
This tool: done on every preset.
03Shrink the textures
Textures are usually most of a model's weight. Size them to what the camera needs, often 2048 px or less, and convert them to WebP or KTX2.
This tool: flags the heavy ones. The Smallest preset re-encodes each colour texture (base colour and emissive) as WebP, scaled down to at most 2048 px on its long edge, wherever that makes it smaller; it keeps normal, roughness/metalness and occlusion maps, and textures on transparent materials, as they are. Web and Max compatibility keep every texture as it is.
04Remove what nothing uses
Unused materials, accessors and buffers survive many exports and still add bytes.
This tool: removed on every preset.
05Simplify the mesh last
Decimation lowers the triangle count but changes the shape, so how far to go depends on how close the camera gets.
This tool: not done; it is a modeling decision.
This tool reads STL files as they are. For what an STL leaves out (units, colors, part names) and how a conversion handles each, see the STL to GLB converter.
What it checks
The numbers that decide whether a model loads fast and renders right in a web viewer, a configurator or a 3D printer.
- Size and complexity
- File size, triangles, vertices, meshes and materials, before and after optimization.
- Textures
- Every texture's resolution and size, with the ones above 2048 px or 1 MB flagged. Textures are usually most of a model's weight.
- Non-manifold edges
- Edges shared by three or more faces. They break 3D printing and boolean operations and often shade badly.
- Open (boundary) edges
- Edges with only one face, so you know whether the mesh is watertight. Split UV and normal seams are welded first, so they do not count as holes.
- Normals
- Mesh parts without normals, and triangles whose normals point against their winding (inverted).
- Degenerate triangles
- Zero-area triangles: two corners on the same point, or all three on one line.
How it works
Four steps, all of them on your device.
01Read
The file is read in a Web Worker on your device with glTF-Transform, an open-source glTF library. STL and OBJ are converted to glTF first.
02Check
Vertices are merged by position, then every edge is counted by how many faces share it: one face is an open edge, three or more is non-manifold. Each face is compared with its normals and its area.
03Optimize
Duplicate data is merged, missing normals are filled, vertices are indexed and unused data is removed. Names, empty nodes, UVs and textures are kept, since a configurator looks parts up by name. The Web preset then compresses geometry with meshoptimizer; Smallest does the same and also re-encodes the colour textures (base colour and emissive) of opaque materials as WebP, at most 2048 px on the long edge, keeping normal, roughness/metalness and occlusion maps as they are; the compatibility preset writes plain glTF 2.0 geometry. The file's generator field keeps what made it, with "optimized with sbfs.co/tools/glb-optimizer" added after it.
04Compare and download
You get the before/after numbers, a 3D preview of both versions with a wireframe view, and the optimized .glb. The first run uses the Web preset; switch the output under the result to re-run with another one.
Why file size matters for a sales tool: read why load time is a sales metric.
Before and after, on the sample model
What this tool reports for its own sample: an unindexed door model with no textures, the kind of export that shrinks most. With nothing to re-encode, Smallest writes the same file as Web on it. Web and Max compatibility keep textures as they are, so on those a texture-heavy file shrinks far less.
| Sample model | Original | Web (Meshopt) | Max compatibility |
|---|---|---|---|
| File size | 604.1 KB | 33.5 KB (−94%) | 175.4 KB (−71%) |
| Triangles | 6,388 | 6,388 | 6,388 |
| Vertices | 19,164 | 4,222 (−78%) | 4,222 (−78%) |
| Texture weight | None (no textures) | None (no textures) | None (no textures) |
Questions about the GLB optimizer.
What it does with your file, and what it deliberately leaves alone.
More free tools
STEP to GLB converter
Turn a CAD export (.step, .stp) into a web-ready GLB.
OBJ to GLB converter
Pack an OBJ mesh into a single, compressed GLB.
FBX to GLB converter
Convert an FBX export to GLB for web viewers and AR.
STL to GLB converter
Turn an STL mesh into a compact GLB for web viewers and AR.
GLB to USDZ converter
Convert a GLB to USDZ for AR Quick Look on iPhone and iPad.
DWG viewer
Open an AutoCAD DWG in the browser: zoom, layers, measure.
DXF viewer
View a DXF drawing online, toggle its layers and save a PNG.
NC file viewer
Open a G-code (.nc) program and see its toolpath, size and cut time.
3D viewer with embed code
Upload a model, get a share link and an embed for your site.
AR QR code generator
A QR code that opens your product in AR on any phone.
Seamless texture generator
Make any photo a texture that tiles without visible seams.
PBR map generator
Normal, height, roughness, metalness and AO maps from one texture.
Product variant calculator
Count every combination your options make, and what that costs.
Configurator ROI calculator
Estimate what a configurator saves and earns, from your numbers.
Need this inside a product configurator?
Want your own products configured and priced on your site? Get a free demo of one of them. Models this light are part of the setup. See configurator demos by industry.
Book a 20-min call