— Free tool · no sign-up

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.

01— Method

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.

  1. 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.

  2. 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.

  3. 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.

  4. 04Remove what nothing uses

    Unused materials, accessors and buffers survive many exports and still add bytes.

    This tool: removed on every preset.

  5. 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.

02— The report

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.
03— Under the hood

How it works

Four steps, all of them on your device.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

04— Measured

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.

The sample panel door behind "Try a sample model", run through this tool on the Web and Max compatibility presets. It has no textures, so Smallest gives the same file as Web. Measured .
Sample modelOriginalWeb (Meshopt)Max compatibility
File size604.1 KB33.5 KB (−94%)175.4 KB (−71%)
Triangles6,3886,3886,388
Vertices19,1644,222 (−78%)4,222 (−78%)
Texture weightNone (no textures)None (no textures)None (no textures)
05— FAQ

Questions about the GLB optimizer.

What it does with your file, and what it deliberately leaves alone.

No. The tool runs in your browser, in a Web Worker on your own device. The file is never sent to SBFS or anyone else, so there is nothing to delete afterwards; closing the tab discards it. Share this tool sends only the saving and a link to this page, not the file or its name.

GLB, glTF with its buffers and textures embedded in the one .gltf file, STL (binary or ASCII) and OBJ (geometry only; .mtl materials and textures are not read), up to 100 MB. Draco-compressed files are not supported yet. The output is always a .glb.

The first run uses Web; once you have a result, the Output preset choice under it re-runs the same file with another. Web (Meshopt) stores vertex data at reduced precision and compresses it with the EXT_meshopt_compression extension; three.js with its Meshopt decoder, Babylon.js and model-viewer read it. Smallest does the same and also re-encodes each colour texture (base colour and emissive) as WebP, scaled down to at most 2048 px on its long edge, so the file then needs a viewer that reads EXT_texture_webp too; normal, roughness/metalness and occlusion maps and textures on transparent materials are kept as they are, and so is a colour texture when the new one would not be smaller or your browser cannot decode it. Max compatibility writes geometry with no Meshopt or quantization extension, for viewers and tools that do not support Meshopt. Web and Max compatibility keep textures as they are, so KTX2, WebP or AVIF textures still need a viewer that reads them; the report flags them.

Yes. No sign-up, no email, no watermark and no limit on how many files you run. The only cap is 100 MB per file, set by how much memory a browser tab can use. The one trace is in the metadata: the generator field gets "optimized with sbfs.co/tools/glb-optimizer" added after the tool that made the file, and the copyright field is left as it was.

It depends on where the weight is. Geometry-heavy exports, such as CAD conversions with unindexed or repeated vertices, shrink the most: the sample door model ends up less than half its original size. On Web and Max compatibility a file whose weight is mostly textures barely changes, because textures are kept as they are; Smallest also re-encodes its colour textures, which is where such a file can lose the most.

No. It removes duplicate and unused data and compresses what is left, but it does not simplify the mesh: decimation changes the shape, and how far to take it depends on how close the camera gets to the product.

It reports them with counts, but does not change them: closing a hole or flipping a face is a modeling decision, and an automatic guess can make the model worse. Missing normals are the exception: the optimized file stores the flat normals a viewer would assume anyway.

On the Smallest preset, its colour textures: each base colour or emissive texture of an opaque material is re-encoded as WebP and scaled down to at most 2048 px on its long edge, and kept as it was when the new one would not be smaller or your browser cannot decode it (KTX2, for one). Normal, roughness/metalness and occlusion maps hold data a lossy encode would damage, and a transparent material's colour could get dark fringes along its cut-out edges, so those are kept as they are, and so is any texture a material extension uses (clearcoat, sheen, specular or transmission, for example); the texture list says why for each one. A browser that cannot write WebP only scales the larger ones down, in their own format. Web and Max compatibility keep textures as they are. Every preset lists each texture's resolution and size and flags the ones above 2048 px or 1 MB, which are usually the biggest part of a model's weight.

More free tools

All free tools

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