Project
Skip to content

Files & formats

OBJ vs GLB: Choose a 3D Model Format for Sharing

When sending a 3D object to another application, geometry and appearance are not always the same thing. OBJ is a familiar text-based mesh exchange format. GLB is the binary form of glTF, designed to convey a 3D asset including scene relationships and material-oriented information.

By the 3DA.XYZ editorsUpdated 2026-11-05Original renders & data
STL, OBJ, GLB and 3MF are designed for different workflow needs
Original 3DA.XYZ explanatory diagram; schematics are not physical print measurements.

What OBJ keeps

A typical OBJ file contains vertices, texture coordinates, normals and polygonal faces. It can reference a separate material library and image textures; moving only the OBJ may leave its material appearance behind.

OBJ does not define a universal scene unit. For a measured model, record the intended units independently and check the receiving application. An OBJ can also contain multiple named groups or objects depending on the exporter.

Try itConvert OBJ to GLB (metres, Y-up) in your browser, with a geometry check. Convert to GLB →

What GLB keeps

GLB stores a glTF asset in a binary container suitable for web rendering and digital pipelines. glTF 2.0 defines meters as its unit for linear distances and uses a right-handed coordinate system with +Y upward.

For our known 20 × 30 × 40 mm block, the GLB is expressed in meters and axes are transformed from a Z-up source. A raw bounding box in one coordinate frame need not have the same axis ordering as its OBJ counterpart. After normalizing those conventions, the model geometry should agree.

Use the receiving tool as the test

For a simple editable mesh in an established DCC workflow, OBJ can be appropriate. For a browser viewer or asset pipeline that supports glTF, GLB is often the better starting point. Applications may support only subsets of features, so validate appearance and animation where relevant.

The 3DA inspector opens local OBJ/STL. It does not import GLB or 3MF directly; those formats are provided here as downloadable reference files for compatible tools.

Worked example

Compare the original 20 mm cube as OBJ and GLB. The OBJ coordinates are in millimeters by agreement; GLB coordinates are in meters. Both can describe the same physical size after unit conversion.

Important limitation

Do not treat “OBJ supports materials” as a promise that its single .obj file contains every texture. External dependencies are common.

Practical checklist

  1. Is the destination a web renderer or mesh editor?
  2. Are textures or materials required?
  3. Did you include all external OBJ assets?
  4. Did units and axes survive?

Common questions

Is GLB always smaller?

No. File sizes depend on asset contents, exporter and compression, not merely the extension.

Can 3DA view GLB uploads?

The local viewer currently supports OBJ and STL; GLB is provided for download.

Primary references

  1. Khronos Group — glTF 2.0 specification

External specifications provide format or process context; the examples and calculations here are original 3DA explanations.

Side by side

OBJGLB
Files.obj + .mtl + imagesOne binary file
MaterialsBasic (Phong-style)PBR metallic–roughness
AnimationNoYes (skinning, morph targets)
Units / up axisNot statedMetres, Y up
Size (65k-triangle sphere, our benchmark)2.21 MB0.78 MB
Best forExchange between modeling appsWeb, AR, real-time viewers
Try itConvert OBJ to GLB in the browser — metres and Y-up are handled for you. Convert to GLB →