Glossary · File formats

GLB

In short

GLB is the binary form of glTF: the JSON description, geometry and textures are packed into one file [1]. GLB is a common delivery format for 3D models on websites.

Structure

A GLB file starts with a 12-byte header whose first four bytes spell "glTF" [1]. Chunks follow: first the JSON part with the scene description, then a binary part with geometry and embedded images [1]. JSON and binary data thus share one file without base64 encoding [1].

Why a single file helps

  • One request instead of many: the browser loads the model in one go.
  • Nothing goes missing: no texture forgotten during upload.
  • Easy to pass on: many viewers, shop systems and tools accept GLB directly.

Compression

A GLB file can carry compressed geometry, for example with Meshopt [2] or Draco, and GPU-ready textures in KTX2. The viewer then needs the matching decoder; in three.js it is registered with the GLTFLoader [3].

How to check a GLB file

  1. File size relative to the product: a simple part does not need 20 MB.
  2. Scale: glTF works in metres; if the product looks huge or tiny in a viewer, the units are wrong.
  3. Structure: are parts separate and named, or is everything one lump?
  4. Extensions: which extensions are marked as required, and does your viewer support them?

For comparison: the GLB of our planetary gearhead (example configurator, fictional product) is about 1.3 MB with more than 200 named nodes. The 3D product viewer page explains how a model gets onto your site.

Related terms

  • glTF

    glTF (GL Transmission Format) is a royalty-free Khronos Group specification for the efficient transmission and loading of 3D scenes and models. In 2022 glTF 2.0 became the international standard ISO/IEC 12113:2022.

  • Meshopt compression

    Meshopt is a glTF compression method, defined in the EXT_meshopt_compression extension, that shrinks geometry and animation data. According to the specification its decoders run at around 1 GB per second on modern desktop hardware.

  • KTX2 and Basis Universal

    KTX2 is a Khronos Group container format for GPU textures. With Basis Universal compression a texture is stored once and converted in the browser into whatever format the visitor's graphics card can use directly.

  • USDZ

    USDZ is a package format based on Pixar's Universal Scene Description (USD): an uncompressed ZIP archive that delivers a 3D scene and its textures as a single file. Apple devices display USDZ files in AR Quick Look.

  • Scene Viewer (Android)

    Scene Viewer is Google's viewer that lets a website or Android app show 3D models in 3D and AR. It reads glTF 2.0 and GLB and is launched from the browser through a special intent link.

Examples to try

Example configurator · fictional product

Planetary gearhead

A planetary gearhead for sales and training: running drive with adjustable input speed, cut-away and exploded views, item numbers and technical data as sample values.

Industrial cells & machines · Opening and mechanism · Exploded or cut-away view · Notes on the model

More in our guides

Sources

  1. Khronos Group: glTF 2.0 Specification
  2. Khronos Group: EXT_meshopt_compression (glTF extension)
  3. three.js docs: GLTFLoader

← All terms in the glossary