Free tool · Runs in your browser
OBJ to GLB converter: three loose files in, one GLB out.
An OBJ model is usually three things: the .obj with the shape, a .mtl with the colours and a handful of texture images. Drop them together and this converter packs all of it into a single GLB, the format web pages and game engines load directly. You see the model in 3D first, can fix its size and which way is up, and the files never leave your device.
- OBJ + MTL + textures in
- One GLB out
- Scale and up-axis fix
- No account, no upload
How do I convert OBJ to GLB?
Select the .obj file together with its .mtl file and texture images and drop them on the converter below. Check the preview, fix the scale or the up axis if the model is the wrong size or lying down, then press Convert and download. The GLB contains the geometry, the materials and the textures in one binary file. The conversion runs in your browser, so nothing is uploaded.
How to convert OBJ to GLB in four steps
Gather the files
Open the folder the model came in. You need the .obj, the .mtl with the same name if there is one, and the images the .mtl names (PNG or JPG).
Drop them together
Select all of them and drop them on the box in one go. The converter matches each texture by its file name, so the folders they were in do not matter.
Check the preview
The readout shows triangles, materials and textures, and the size. If a texture is listed as missing, drop the set again with that image included.
Fix, convert, download
OBJ carries no unit and no up direction, so set the scale and tick The file is Z-up if the model lies on its side. Then press the button and the GLB downloads.
OBJ, MTL and textures: why the model arrives in pieces
OBJ dates from the early 1990s and is plain text. The .obj file lists vertex positions, normals, UV coordinates and faces, and nothing about how the surface looks beyond the name of a material. The looks live in a second text file, the .mtl, which gives each material a colour and points to image files by name. That is why an OBJ sent without its neighbours opens grey.
GLB removes the problem by design: geometry, materials and images are packed into one binary file. Converting is mostly a matter of collecting the three kinds of file once, so nobody after you has to.
The converter reads the .mtl you drop, takes each material's colour and its colour texture, and turns the old shininess value into the roughness that glTF's PBR material uses. Some exporters write a black colour next to a texture, which would multiply the texture to black in glTF; the converter spots that case and uses white, so the texture shows as intended.
What an OBJ keeps when it becomes a GLB
| In the OBJ / MTL | In the GLB | Notes |
|---|---|---|
| Vertices, faces, UVs | Kept | Quads and larger faces are split into triangles, which is what a graphics card draws. |
| Normals | Kept or computed | If the OBJ has none, normals are computed so the model is lit. |
| Objects and groups | Kept | Each object becomes a mesh with its name. |
| Material colour (Kd) | Kept | Becomes the base colour of a PBR material. |
| Colour texture (map_Kd) | Embedded | Packed into the GLB when you drop the image with the OBJ. |
| Shininess (Ns) | Converted | Becomes roughness: a high Ns gives a smoother surface. |
| Loose edges (l lines) | Dropped | Left out when the file also has faces; a game mesh is made of triangles. |
| Animation, skeleton | None | OBJ cannot store them. Rig the converted model in the auto rigger if it is a character. |
OBJ has no units and no up axis
An OBJ file is only numbers. Nothing in it says whether 1 means a metre, a centimetre or an inch, or which axis points up. The program that wrote it knew; the file does not. glTF does say: one unit is a metre and Y is up.
So look at the size readout after loading. A chair that reads 90 × 100 × 90 was modelled in centimetres: pick 0.01. One that reads 900 was in millimetres, common for CAD and 3D printing files: pick 0.001. If the model lies on its side, it was exported Z-up; tick the box and it is rotated upright. Stand it on the ground moves it so its lowest point sits on the origin, which is where most games expect a model's feet.
The fixes are written as one transform on the root node of the GLB. The mesh data itself is not altered.
Other outputs: glTF, OBJ and STL
The same tool opens GLB and glTF files and writes four formats, so it also covers the trip back.
| Format | Holds | Pick it for |
|---|---|---|
| GLB | Meshes, materials and textures in one binary file | Web pages, three.js, Babylon.js, Godot, Unity with glTFast, EvonX |
| glTF (.gltf) | The same content as JSON text, buffers and textures embedded | Reading or editing the file by hand |
| OBJ | Geometry, normals and UVs, no materials | GLB to OBJ for sculpting and modelling tools |
| STL | Triangles only | GLB or OBJ to STL for 3D printing |
What to do with the GLB
A GLB loads directly in three.js, Babylon.js and Godot, in Unity through the glTFast package, and in any glTF viewer. If it is going on a web page, pass it through the GLB compressor: scanned and sculpted OBJ models often carry textures far larger than a phone needs.
If the model is a character, the auto rigger gives it a skeleton and 12 animations, and the FBX to GLB converter handles files that already have a skeleton. Every 3D model in an EvonX game is a GLB too, which is why these tools write that format.
Frequently asked questions
Is the OBJ to GLB converter free?
Yes. No account, no watermark, no daily limit. It is code running in your browser, so there is nothing for us to meter.
Are my files uploaded?
No. The .obj, the .mtl and the textures are read by your browser and converted on your device. Nothing is sent to a server.
Does it keep the textures?
Yes, when you drop them with the model. The converter reads the .mtl, finds each colour texture by file name among the files you dropped and embeds it in the GLB. Textures you did not drop are listed by name so you can add them.
Can I convert an OBJ without an MTL file?
Yes. The geometry, normals and UVs convert the same way; the model gets one plain material because nothing describes its colours.
Why is my model huge, tiny or lying on its side?
OBJ stores no unit and no up axis. Use the scale menu (0.01 for centimetres, 0.001 for millimetres) and the Z-up box. The size readout shows the result in metres before you download.
Can it convert GLB to OBJ?
Yes. Drop a GLB, choose OBJ as the output and download. The OBJ holds the geometry, normals and UVs; materials and textures are not written, and an animated model is saved in its rest pose.
Does OBJ support animation?
No. OBJ stores a single static shape. For an animated model use a format that carries a skeleton, such as FBX or GLB.
Is there a file size limit?
The converter sets none. Large text OBJ files take a moment to parse, and the practical limit is the memory of your device.
EvonX AI game maker
Got the asset? Now make the game.
Describe your game in one sentence and EvonX builds it: code, art, sound and a link you can share. Free to start, no download, plays on any phone.