3D models come in dozens of file formats, each designed for different purposes. Using the wrong format means larger files, slower loading, missing features, or compatibility issues. Here's a practical guide to the four most common formats and when to use each.
GLTF / GLB — The Web Standard
GLTF (GL Transmission Format) is the JPEG of 3D. Designed by the Khronos Group specifically for efficient transmission and loading of 3D models on the web and in real-time applications.
GLTF comes in two variants:
- .gltf: JSON file with separate binary (.bin) and texture files. Human-readable, good for development and debugging
- .glb: Single binary file containing geometry, animations, and textures. Smaller, self-contained, ideal for production and web delivery
GLTF/GLB supports:
- Meshes with materials (PBR — metallic-roughness workflow)
- Skeletal animation and morph targets
- Multiple textures per material (base colour, normal, roughness, metalness, occlusion, emissive)
- Cameras and lights
- Extensions for compression (Meshopt, Draco, KTX2 textures)
Use GLB for: Web delivery, Three.js, Babylon.js, React Three Fiber, any browser-based 3D. It's the format the 3D viewer on this site uses.
FBX — The Industry Standard
FBX (Autodesk Filmbox) is the most widely supported format in the 3D industry. It's used for transferring models between 3D software (Maya, Blender, 3ds Max, Cinema 4D) and game engines (Unity, Unreal).
FBX supports:
- Meshes, materials, and textures
- Skeletal animation with skinning
- Morph targets (blend shapes)
- Cameras and lights
- Hierarchical scene structure
Use FBX for: Transferring models between 3D software and game engines. Don't use FBX for web — the files are large and browsers can't read them directly without conversion.
FBX is a proprietary format owned by Autodesk. The specification isn't fully public, which is why GLTF is preferred for open ecosystems.
OBJ — The Simple Classic
OBJ is one of the oldest 3D formats, dating back to the 1980s. It stores only geometry (vertices, faces, texture coordinates) and basic materials. It doesn't support animation, skeletal systems, or PBR materials.
Use OBJ for: Static 3D models without animation — architectural visualisation, 3D printing, simple meshes for prototyping. OBJ is universally supported by every 3D tool, making it a good interchange format for static geometry.
OBJ files are typically larger than GLB because they're text-based and don't support compression.
STL — For 3D Printing
STL (Stereolithography) is the standard format for 3D printing. It stores only surface geometry as triangles — no colours, textures, or animation. Every 3D printer and slicing software supports STL.
Use STL for: 3D printing only. Don't use it for anything else — it loses all material, colour, and animation information.
Comparison
| Feature | GLB | FBX | OBJ | STL |
|---|---|---|---|---|
| Web-ready | Yes | No | Limited | No |
| Animation | Yes | Yes | No | No |
| PBR Materials | Yes | Partial | No | No |
| File Size | Small | Medium | Large | Medium |
| Compression | Draco/Meshopt | No | No | No |
Optimising GLB for Web
Raw 3D models from Blender or Maya are often far too large for web delivery. A 50MB GLB file will take too long to load. Key optimisations:
- Draco compression: Compresses geometry by 90%+ with minimal quality loss
- Meshopt compression: Similar to Draco but faster to decompress, better for animation
- KTX2 textures: GPU-compressed textures that reduce texture memory by 75%
- Geometry quantisation: Reduces vertex precision (16-bit or 8-bit) to save space
- LOD (Level of Detail): Multiple resolution versions, loading higher detail as the user zooms in
The 3D viewer on this site uses Three.js to render GLB and GLTF models in your browser. Upload a model file, and it renders with orbit controls, lighting, and material support. Everything runs locally — no model data is uploaded.