The experiment
Format comparisons usually list features. We wanted numbers. We took the sample part used on this site’s viewers, a 46.5 × 48.4 × 22.9 mm piece with 3,584 triangles, 1,792 unique vertices and a volume of 13.66 cm³, and wrote it in five formats with this site’s own converters. The geometry is identical in all of them; we checked that the triangle count, size and volume came back unchanged after each conversion.
| Format | File size | Relative to STL | Units stored | Colors / materials | Exact curves |
|---|---|---|---|---|---|
| STL (binary) | 175 KB | 100% | No | No | No |
| OBJ | 107 KB | 61% | No | Separate .mtl file | No |
| 3MF | 50 KB | 29% | Yes | Yes | No |
| GLB | 64 KB | 37% | Yes (meters) | Yes, plus textures | No |
| STEP (faceted) | 1.15 MB | 673% | Yes | Yes | Only from CAD, not from a mesh |
The differences come from three design decisions: whether vertices are shared, whether the file is text or binary, and whether it is compressed.
STL: the lowest common denominator
STL describes a surface as a list of independent triangles. Each one stores its three corners and a normal vector, so a corner shared by six triangles is written six times. Our part has 1,792 unique vertices, but the STL stores 10,752 corners. Binary STL takes exactly 50 bytes per triangle plus an 84-byte header: 84 + 3,584 × 50 = 179,284 bytes, which is precisely the size of our file.
What STL lacks:
- Units. An STL holds only numbers. Slicers assume millimeters, so a model exported in inches opens 25.4 times too small, and one exported in meters opens 1,000 times too small.
- Color and materials. None, apart from vendor-specific hacks that most programs ignore.
- Connectivity. Because vertices are repeated, nothing guarantees that two neighboring triangles really meet. Tiny rounding differences open cracks, which is one reason STL files so often need repair.
Why it survives: every slicer, CAD program, 3D printing service and model repository reads it. When in doubt, STL is the format that will open.
OBJ: the 3D modeling classic
OBJ is a text format from 3D animation. It lists each vertex once (v x y z) and then each face as indices into that list (f 1 2 3). Sharing vertices is why our OBJ is 39% smaller than the STL even though it is plain text. OBJ can also store UV coordinates for textures, vertex normals and faces with more than three sides, and refers to materials in a separate .mtl file.
Watch out for: units (none) and orientation. Most 3D programs use Y as the up axis, while 3D printing uses Z. This site’s converters write OBJ with Y up so the part stands correctly in Blender. Note that Blender reads OBJ numbers as meters by default, so a 50 mm part arrives 50 m wide unless you set the import scale to 0.001.
Use it for: moving models into Blender, Maya, 3ds Max, game engines and texture work. Convert with STL to OBJ.
3MF: what STL should have been
3MF was created by the 3D printing industry (Microsoft, HP, Autodesk, Prusa, Ultimaker and others in the 3MF Consortium) to replace STL. A 3MF is a ZIP package with an XML model inside: shared vertices, explicit units, colors, materials, multiple objects and even slicer settings. Shared vertices plus compression made our file 71% smaller than the STL.
Shared vertices also mean the mesh is connected by design: a triangle refers to vertex 512, not to a coordinate that might be rounded differently in its neighbor.
Use it for: everything that goes to a modern slicer. Bambu Studio, Orca Slicer and PrusaSlicer save their projects as 3MF, Cura reads it, and Windows opens it in its 3D Viewer. When a project 3MF is converted back to STL, the units, colors, object names and print settings are lost. Convert with STL to 3MF or 3MF to STL.
GLB: 3D for the web and augmented reality
GLB is the binary version of glTF, the format of web 3D viewers, online stores, Android’s Scene Viewer and many game engines. It stores geometry in compact binary buffers with shared vertices, and adds materials, textures, animations and scene structure. Its unit is the meter and its up axis is Y. Our converter writes the GLB without normals, because the standard tells viewers to compute flat normals, which is exactly how a printed part should look. That is why it came out at 64 KB, 37% of the STL.
Use it for: showing a part on a website, in a product page or in AR. It is not a printing format: many GLB models from the web are open surfaces that look fine but are not solids. Convert with STL to GLB, or the other way with GLB to STL.
STEP: the CAD format, and why a mesh STEP is huge
STEP (ISO 10303) is the exchange format of CAD. A STEP file written by SolidWorks, Fusion or FreeCAD does not contain triangles at all: it describes the exact geometry, B-rep, with planes, cylinders, splines, edges and the topology that connects them. A 10 mm hole is a true cylinder you can measure, fillet or change.
A mesh cannot become that again. When you convert an STL to STEP, every triangle becomes a flat face with its own loops, edges and points, each written as a text entity. Our part produced a 1.15 MB STEP, almost 7 times the STL. CAD programs open it as a solid you can measure, cut and put in an assembly, but its curves stay faceted.
Use it for: dropping a printed part into a CAD assembly, or sending it to someone whose software only accepts STEP. For large meshes, reduce the triangle count first: above about 100,000 triangles the STEP gets heavy and CAD programs open it slowly. Convert with STL to STEP. Going from a real CAD STEP to STL is a different story, covered in STEP to STL: how mesh quality changes the file.
Which format should you use?
| You want to | Use | Avoid |
|---|---|---|
| Print it, any slicer, any service | STL or 3MF | STEP |
| Keep units, colors, several parts | 3MF | STL |
| Edit or texture it in Blender | OBJ or GLB | STEP |
| Show it on a web page or in AR | GLB | STL |
| Edit the design in CAD | The original CAD STEP | Any mesh |
| Put a printed part in a CAD assembly | Faceted STEP | GLB |
Takeaways from the measurement
- Sharing vertices is worth about 40% (STL to OBJ), and compression roughly halves it again (OBJ to 3MF).
- STL’s size is predictable: 50 bytes per triangle. A one-million-triangle scan is about 48 MB in STL, whatever its shape.
- A mesh STEP is the largest format, because it spells out every triangle as CAD topology.
- Converting between mesh formats does not change the geometry. Triangles, size and volume came back identical in every round trip we ran. What changes is the metadata each format can carry: units, colors, materials and structure.