# OBJ to GLB converter: free, in your browser

> Convert OBJ to GLB in your browser, free and without uploading the file. Colours carry over. Units are scaled for you.

HTML version: https://cadshot.tech/obj-to-glb/  
Site map for LLMs: https://cadshot.tech/llms.txt

Converter OBJ → GLB

# OBJ to GLB converter

Convert an OBJ file to GLB on your own device: drop the file, check the preview and download the GLB. It is free, there is no sign-up, and the file never leaves your computer.

01 How to

## How to convert OBJ to GLB

- **Choose the OBJ file** Drop it on the box above or click to browse. Try a sample loads a test model.

- **Check the options** GLB is in metres, so an OBJ in millimetres is scaled by 0.001 for you. Set Source units if the model was drawn in centimetres or inches, and Simplify to for a lighter file.

- **Download the GLB** The GLB is written in your browser, usually in well under a second, and saved straight from the page.

02 What carries over

## What carries over from OBJ to GLB

What the GLB file keeps from the OBJ

|  | In the GLB file |
| --- | --- |
| Shape (triangles) | Kept exactly; faces with more than three corners are split into triangles. |
| Colours | Yes. Kept as glTF materials, one per colour (vertex colours above 256 colours). Only colours written with the vertices (`v x y z r g b`) are read; colours from an .mtl material file are not. |
| Normals | Written, computed from the shape: smooth, with edges sharper than 30° kept sharp. |
| Units | Metres, as glTF requires; millimetre sources are scaled by 0.001. |
| Orientation | Unchanged: both formats are Y-up. |
| Objects and parts | Merged into one mesh. |
| Textures and UV maps | Not carried over. |

03 The formats

## OBJ and GLB in short

Wavefront OBJ is a plain-text mesh format: vertices, faces (triangles or larger polygons), optional normals and texture coordinates, and materials in a separate .mtl file. It has no units.

GLB is the single-file, binary form of glTF 2.0, the format of the web, AR viewers and game engines: meshes, materials, textures and a scene tree, in metres. Choose GLB when the model is for a web viewer, three.js, Babylon.js, Unity, Unreal or AR on a phone.

04 FAQ

## Questions and answers

### Is my OBJ file uploaded?

No. The converter is a WebAssembly build of the cadshot engine that runs in this page. The file is read into your browser's memory, converted there and saved from the page; nothing is sent to a server.

### Does OBJ to GLB keep the colours?

Yes. Kept as glTF materials, one per colour (vertex colours above 256 colours). Only colours written with the vertices (`v x y z r g b`) are read; colours from an .mtl material file are not.

### Why is my GLB the wrong size?

OBJ files usually carry no unit or are in millimetres, and the GLB is written in metres. The converter scales between the two for you. If the result is 25.4 times too small, the model was drawn in inches: set Source units to inches and convert again.

### Are the OBJ textures included in the GLB?

No. Only the OBJ file itself is read, not its .mtl or image files, so the GLB carries the shape, smooth normals computed from it, and any colours written with the vertices, without textures.

### Can I make the GLB smaller?

Simplify to reduces the triangle count to 75, 50, 25, 10 or 2 % with quadric edge collapse, which keeps sharp edges where it can. Smaller GLB also stores positions quantized. The [polygon reducer](https://cadshot.tech/stl-polygon-reducer/) shows the simplified mesh before you download it.

### Can I convert files from my own code, or convert STEP?

Yes, with the API: `POST /v1/convert?to=glb` with the file as the body returns the GLB, and the API also reads STEP and IGES through a CAD kernel. `POST /v1/batch` converts a ZIP of files in one request. See the [docs](https://cadshot.tech/docs/).

05 More tools

## Related converters

- [GLB to OBJ converter](https://cadshot.tech/glb-to-obj/)

- [OBJ to STL converter](https://cadshot.tech/obj-to-stl/)

- [STL to GLB converter](https://cadshot.tech/stl-to-glb/)

- [OBJ to 3MF converter](https://cadshot.tech/obj-to-3mf/)

- [All 3D file conversions](https://cadshot.tech/3d-file-converter/)

- [STL repair](https://cadshot.tech/stl-repair/)

- [Polygon reducer](https://cadshot.tech/stl-polygon-reducer/)

- [3D viewer](https://cadshot.tech/viewer/)

## Convert files from your own code

The same converter runs behind the HTTP API: `POST /v1/convert` with the file as the body returns the converted model, and STEP and IGES work there too. EU-hosted, with a free plan of 100 units a month.

[Get an API key ](https://cadshot.tech/docs/#authentication) [Read the docs](https://cadshot.tech/docs/)
