# .gltf MIME Type: model/gltf+json

> glTF scenes as JSON, with geometry in separate .bin buffers and textures as image files.

- MIME type: `model/gltf+json`
- Extensions: .gltf
- Content-Type header: `model/gltf+json`
- Compress in transit: yes

## Good to know

- A `.gltf` references its other files by relative URL. Serve the `.bin` buffers and textures alongside it — or convert to [.glb](https://www.devkult.com/mime/glb.md), which bundles everything.
- The `.bin` buffers are plain binary data: `application/octet-stream`.

## Server configuration

### nginx (inside the types block in mime.types)

```
model/gltf+json gltf;
```

### Apache (.htaccess or server config)

```
AddType model/gltf+json .gltf
```

### Express

```
res.set("Content-Type", "model/gltf+json");
```

### Python

```
import mimetypes

mimetypes.add_type("model/gltf+json", ".gltf")
```

### HTML file input

```
<input type="file" accept=".gltf,model/gltf+json">
```

## FAQ

### What is the MIME type for .gltf files?

`model/gltf+json`.

### What Content-Type header should a .gltf file be served with?

`Content-Type: model/gltf+json`. It compresses well, so let the server apply gzip or Brotli.

## Related types

- [.glb — model/gltf-binary](https://www.devkult.com/mime/glb.md)
- [.json — application/json](https://www.devkult.com/mime/json.md)
- [.bin — application/octet-stream](https://www.devkult.com/mime/bin.md)

Open the interactive page: https://www.devkult.com/mime/gltf