Skip to content

model/gltf-binary MIME Type — Meaning, Usage & Examples

model/gltf-binary
Extensions: .glb Class: model Spec: Khronos (IANA registered)
View IANA registration ↗

model/gltf-binary means: model/gltf-binary is the media type for binary glTF (.glb), a self-contained container that packs the JSON scene description, binary geometry buffers and textures into one file. GLB simplifies 3D asset delivery because everything travels together without external references. Model media types describe 3D geometry and scene data for rendering, printing and interchange. The subtype selects the loader in viewers and engines. These types are common in CAD, glTF web graphics and additive manufacturing, where an incorrect type prevents the asset from loading into the target toolchain. You will encounter model/gltf-binary in contexts such as single-file 3d assets for web and ar; self-contained gltf delivery and caching; 3d model uploads and downloads. It is commonly associated with the file extension(s) .glb. GLB embeds buffers and images, so files are larger than a JSON-only .gltf but far easier to serve correctly — no missing external assets. Enable compression (Draco/meshopt) and byte-range requests for large models, and declare model/gltf-binary.

Advertisement
Ad slot · ref-top

When you'll see model/gltf-binary

  • Single-file 3D assets for web and AR
  • Self-contained glTF delivery and caching
  • 3D model uploads and downloads

How to handle it

When serving 3D models, prefer glTF for web delivery because it is compact and widely supported, and declare model/gltf+json or model/gltf-binary accordingly. Enable compression (Draco/meshopt) and byte-range requests for large assets. Validate that buffers and textures referenced by the scene resolve correctly, since a missing external buffer is a frequent cause of blank renders. As a final checklist for model types: prefer glTF for web delivery, compress geometry, verify that external buffers and textures resolve, enable byte-range requests for large assets, and confirm units and scale so the model loads correctly in viewers, engines and slicers.

Notes & gotchas

GLB embeds buffers and images, so files are larger than a JSON-only .gltf but far easier to serve correctly — no missing external assets. Enable compression (Draco/meshopt) and byte-range requests for large models, and declare model/gltf-binary.

Examples

HTTP
HTTP/1.1 200 OK
Content-Type: model/gltf-binary
Content-Length: 80

Sample model/gltf-binary content delivered with the correct Content-Type header.
curl
curl -i -H "Accept: model/gltf-binary" https://api.example.com/v1/resource   # inspect the returned Content-Type
JavaScript (fetch)
const res = await fetch("/v1/resource", { headers: { Accept: "model/gltf-binary" } });
// verify res.headers.get("Content-Type") starts with "model/gltf-binary"
const text = await res.text();   // handle according to the declared type
Python (requests)
import requests

res = requests.get("https://api.example.com/v1/resource",
                   headers={"Accept": "model/gltf-binary"}, timeout=10)
res.raise_for_status()
# confirm the server declared the expected type
assert res.headers["Content-Type"].startswith("model/gltf-binary")
text = res.text   # decode/handle according to the type

Frequently asked questions

Is GLB better than glTF for the web?

For delivery, often yes: one self-contained file avoids broken external references and simplifies caching. Use .gltf with separate assets when you need to share or edit buffers independently.

Can GLB be compressed?

Yes — geometry can use Draco or meshopt compression inside the GLB, and the file can be served with gzip/brotli transfer encoding. Declare model/gltf-binary regardless of compression.

Where are model MIME types used?

In 3D viewers, web graphics (glTF), CAD interchange and 3D printing slicers. The type tells the loader how to interpret the geometry; model/gltf+json and model/gltf-binary are the common web-friendly choices.

Is model/gltf+json registered?

Yes — glTF 2.0 defines model/gltf+json for the JSON scene description and model/gltf-binary for the self-contained .glb container. Both are widely supported by web 3D engines and viewers.

Why does my 3D model load but render nothing?

External buffers or textures referenced by the scene failed to load, often due to wrong paths or CORS. Check the network requests, fix the URLs, or use a self-contained .glb that embeds all assets.

Advertisement
Ad slot · ref-in-article

Try the Base64 Encoder

Encode and decode Base64 with UTF-8 and URL-safe options.

Open tool →