Skip to content

model/gltf+json MIME Type — Meaning, Usage & Examples

model/gltf+json
Extensions: .gltf Class: model Spec: Khronos (IANA registered)
View IANA registration ↗

model/gltf+json means: model/gltf+json is the media type for glTF 2.0 JSON scene files, the Khronos standard for transmitting 3D models. A .gltf file is JSON describing nodes, meshes, materials and animations, often referencing external binary buffers and textures for the actual geometry. 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+json in contexts such as web 3d rendering with three.js, babylon.js and model-viewer; ar/vr asset delivery; efficient interchange of 3d scenes between tools. It is commonly associated with the file extension(s) .gltf. A .gltf JSON file usually depends on external .bin buffers and image textures; if those paths fail to resolve, the model renders blank. For a single self-contained file use the binary .glb variant (model/gltf-binary) which embeds everything.

Advertisement
Ad slot · ref-top

When you'll see model/gltf+json

  • Web 3D rendering with three.js, Babylon.js and model-viewer
  • AR/VR asset delivery
  • Efficient interchange of 3D scenes between tools

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

A .gltf JSON file usually depends on external .bin buffers and image textures; if those paths fail to resolve, the model renders blank. For a single self-contained file use the binary .glb variant (model/gltf-binary) which embeds everything.

Examples

HTTP
HTTP/1.1 200 OK
Content-Type: model/gltf+json
Content-Length: 78

Sample model/gltf+json content delivered with the correct Content-Type header.
curl
curl -i -H "Accept: model/gltf+json" https://api.example.com/v1/resource   # inspect the returned Content-Type
JavaScript (fetch)
const res = await fetch("/v1/resource", { headers: { Accept: "model/gltf+json" } });
// verify res.headers.get("Content-Type") starts with "model/gltf+json"
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+json"}, timeout=10)
res.raise_for_status()
# confirm the server declared the expected type
assert res.headers["Content-Type"].startswith("model/gltf+json")
text = res.text   # decode/handle according to the type

Frequently asked questions

What is the difference between .gltf and .glb?

.gltf is JSON that may reference external buffers/textures; .glb is a single binary container embedding everything. Both are glTF 2.0; .glb is simpler to serve and cache as one file.

Why does my glTF model appear blank?

Usually external .bin buffers or textures failed to load (wrong paths or CORS). Check the network requests, or switch to a self-contained .glb to avoid external dependencies.

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 JSON Formatter

Beautify, validate and minify JSON with clear error messages.

Open tool →