Quick answer
| If you want to… | Use | Second choice |
|---|---|---|
| 3D print in a current slicer | 3MF | STL (binary) |
| Send to an older printer or service | STL | OBJ |
| Show a model on a website or in AR | GLB | glTF + .bin |
| Move a textured mesh between modeling apps | OBJ or FBX | glTF |
| Hand an engineering part to another CAD system | STEP | 3MF for printing only |
| Archive a 3D scan | PLY | OBJ |
Comparison table
| Format | Origin | Geometry | Materials | Textures | Animation | Units | Best for |
|---|---|---|---|---|---|---|---|
| STL | 1987 (3D Systems) | Triangles | — | — | — | No | Simple printing |
| OBJ | 1980s (Wavefront) | Polygons, UVs, normals | Via .mtl file | Separate images | — | No | Mesh exchange |
| glTF / GLB | 2015 (Khronos) | Triangles, scenes | PBR | Embedded (GLB) | Yes | Metres | Web, AR, real-time |
| 3MF | 2015 (3MF Consortium) | Triangles, objects | Colours, materials | Yes (extension) | — | Declared | Modern printing |
| PLY | 1990s (Stanford) | Mesh or points | Per-vertex colour | — | — | No | Scans, research |
| FBX | Autodesk (proprietary) | Meshes, rigs | Yes | Yes | Yes | Declared | Games, animation |
| USD / USDZ | Pixar / Apple AR | Full scenes | Yes | Yes | Yes | Declared | Film pipelines, Apple AR |
| STEP | ISO 10303 | Exact CAD solids | Limited | — | — | Declared | Engineering exchange |
Measured file sizes
We wrote the same sphere into every format our engine supports and read each file back to make sure nothing changed. The results show how much of a file’s size is format overhead rather than shape.
- Binary STL is exactly 84 + 50 × triangles bytes. A 50-byte record per triangle (a normal plus three corners) after an 84-byte header. It never shares corners, so every vertex is stored about six times.
- Indexed formats (OBJ, PLY, GLB) store each vertex once and refer to it by number, which is why they are smaller for the same mesh.
- ASCII STL is the worst choice for large models — numbers written as text take roughly four times the space of binary.
- 3MF is a ZIP package. Uncompressed it is verbose XML; with ordinary ZIP compression it was the smallest file in our test.
STL — the universal print format
STL describes a surface as a list of independent triangles, each with a normal vector and three corners. It has no colour, no materials, no scene and — crucially — no units: a 20 can mean 20 mm or 20 inches. Slicers assume millimetres. STL comes in ASCII (readable text) and binary versions. Its strength is that almost everything reads it.
Read more: STL vs 3MF · How to open an STL file.
OBJ — the modeling-app interchange format
OBJ is a plain-text format listing vertices (v), optional texture coordinates (vt) and normals (vn), and faces (f) that can be triangles or larger polygons. Materials live in a separate .mtl file that points to texture images, so an OBJ is often a small folder rather than one file. Like STL it has no units or up-axis. OBJ vs GLB.
glTF and GLB — the format for the web
glTF 2.0, from the Khronos Group, is built for delivering 3D to apps and browsers efficiently. It stores meshes, physically based materials, textures, animation, cameras and whole scene hierarchies. A .gltf file is JSON with separate binary and image files; a .glb packs everything into one binary file. The specification fixes the conventions: metres, Y up, right-handed. That is why a printed-part STL in millimetres can appear 1,000× too large in a web viewer if converted carelessly.
3MF — the modern print format
3MF, from the 3MF Consortium, is a ZIP package containing an XML model, with room for colours, materials, multiple objects, thumbnails and slicer settings. It declares its unit (millimetre unless stated otherwise), supports exact object placement on the build plate, and compresses well. Most current slicers open and save it. The trade-off: some older tools and online services still expect STL.
PLY, FBX, USD and STEP
- PLY
- The “Stanford triangle format”: a flexible header describes per-vertex properties such as colour or confidence, which makes it popular for 3D scans and point clouds.
- FBX
- Autodesk’s proprietary format for animated scenes: rigs, skinning, cameras and lights. Common in game and animation pipelines.
- USD and USDZ
- Universal Scene Description, created by Pixar, handles very large layered scenes. USDZ is a zipped variant used for AR on Apple devices.
- STEP
- The ISO 10303 standard for exchanging exact CAD geometry — true cylinders and curves, not triangles. Use it to move parts between CAD programs; convert to 3MF or STL only when you are ready to print.
Units and up-axis: the two classic traps
| Format | Unit | Up axis |
|---|---|---|
| STL, OBJ, PLY | Not stored — usually treated as mm | Not stored — printing tools assume Z |
| 3MF | Declared in the file (default millimetre) | Z |
| glTF / GLB | Metres, by specification | Y |
| FBX, USD | Declared in the file | Declared |
If a model arrives 25.4× too small it was probably made in inches; 1,000× off suggests metres versus millimetres; 10× suggests centimetres. Lying on its side means a Y-up/Z-up mix. Scale and units explains the fixes.
Converting between formats
Converting between mesh formats keeps the triangles but can drop everything else. Going from GLB to STL loses materials and textures; going from STL to 3MF adds a unit declaration, so the unit must be right. CAD-to-mesh (STEP to STL) is one-way: curves become triangles and cannot become editable features again.
Questions people ask
Which 3D file format is best?
There is no single best: 3MF for modern 3D printing, STL for maximum compatibility, GLB for web and AR, STEP for CAD exchange, PLY for scans.
Is STL or OBJ better for 3D printing?
For printing, both carry the same triangle geometry. STL is more universally accepted by slicers and services; OBJ is more common between modeling apps. 3MF is better than both if your slicer supports it.
Does STL store colour?
Standard STL does not. Some programs hide colour in unused bytes of binary STL, but it is not portable. Use 3MF for colour printing or GLB for coloured web models.
Why is my GLB huge or tiny after conversion?
glTF uses metres. A 20 mm part must become 0.02 in GLB. Converters that skip this step produce models 1,000× too large.