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

  1. Choose the OBJ fileDrop it on the box above or click to browse. Try a sample loads a test model.
  2. Check the optionsGLB 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.
  3. Download the GLBThe 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.
ColoursYes. 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.
NormalsWritten, computed from the shape: smooth, with edges sharper than 30° kept sharp.
UnitsMetres, as glTF requires; millimetre sources are scaled by 0.001.
OrientationUnchanged: both formats are Y-up.
Objects and partsMerged into one mesh.
Textures and UV mapsNot 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 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.

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.