# .obj MIME Type: model/obj

> A plain-text 3D mesh format, with materials in a companion .mtl file (model/mtl).

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

## Good to know

- OBJ is text — `v` lines for vertices, `f` lines for faces — so it compresses very well in transit.
- Windows compilers also use `.obj` for object files. Those are binary COFF files with no relation to 3D models.

## Server configuration

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

```
model/obj obj;
```

### Apache (.htaccess or server config)

```
AddType model/obj .obj
```

### Express

```
res.set("Content-Type", "model/obj");
```

### Python

```
import mimetypes

mimetypes.add_type("model/obj", ".obj")
```

### HTML file input

```
<input type="file" accept=".obj,model/obj">
```

## FAQ

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

`model/obj`.

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

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

## Related types

- [.stl — model/stl](https://www.devkult.com/mime/stl.md)
- [.gltf — model/gltf+json](https://www.devkult.com/mime/gltf.md)
- [.glb — model/gltf-binary](https://www.devkult.com/mime/glb.md)

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