Key findings
- Binary STL size is exactly 84 + 50 × triangles bytes — confirmed for all 13 meshes. At 65,024 triangles that is 3,251,284 bytes.
- ASCII STL was 4.1× larger than binary STL for identical geometry (204 vs 50 bytes per triangle).
- GLB was 4.2× smaller than binary STL (12.0 bytes per triangle), because it stores each shared vertex once.
- 3MF with standard ZIP compression was the smallest: 548,981 bytes, 5.9× smaller than binary STL. Uncompressed, the same 3MF was the second-largest file.
- Every file read back identically: same triangle count, closed surface and volume, in all 91 format/mesh combinations.
How size scales
Full results (bytes)
| Mesh | Triangles | Vertices | STL bin | STL ASCII | OBJ | PLY | GLB | 3MF stored | 3MF deflate | Verified |
|---|---|---|---|---|---|---|---|---|---|---|
| 20 mm cube | 12 | 8 | 684 | 1,555 | 283 | 478 | 1,028 | 2,008 | 1,106 | ✓ |
| 20 mm UV sphere, 6 segments | 24 | 14 | 1,284 | 3,705 | 551 | 712 | 1,184 | 2,691 | 1,220 | ✓ |
| 20 mm UV sphere, 8 segments | 48 | 26 | 2,484 | 8,081 | 1,053 | 1,168 | 1,472 | 4,033 | 1,411 | ✓ |
| 20 mm UV sphere, 12 segments | 120 | 62 | 6,084 | 20,215 | 2,523 | 2,538 | 2,340 | 8,023 | 1,949 | ✓ |
| 20 mm UV sphere, 16 segments | 224 | 114 | 11,284 | 42,683 | 5,562 | 4,515 | 3,592 | 14,697 | 2,769 | ✓ |
| 20 mm UV sphere, 24 segments | 528 | 266 | 26,484 | 99,331 | 13,465 | 10,291 | 7,240 | 33,239 | 5,306 | ✓ |
| 20 mm UV sphere, 32 segments | 960 | 482 | 48,084 | 190,675 | 26,569 | 18,499 | 12,428 | 61,463 | 8,687 | ✓ |
| 20 mm UV sphere, 48 segments | 2,208 | 1,106 | 110,484 | 437,883 | 62,155 | 42,213 | 27,408 | 140,723 | 18,835 | ✓ |
| 20 mm UV sphere, 64 segments | 3,968 | 1,986 | 198,484 | 801,287 | 119,211 | 75,653 | 48,528 | 259,379 | 34,186 | ✓ |
| 20 mm UV sphere, 96 segments | 9,024 | 4,514 | 451,284 | 1,821,927 | 279,291 | 171,717 | 109,200 | 596,419 | 74,063 | ✓ |
| 20 mm UV sphere, 128 segments | 16,128 | 8,066 | 806,484 | 3,281,101 | 508,222 | 306,695 | 194,452 | 1,073,991 | 132,457 | ✓ |
| 20 mm UV sphere, 192 segments | 36,480 | 18,242 | 1,824,084 | 7,418,397 | 1,205,840 | 693,384 | 438,680 | 2,483,923 | 290,824 | ✓ |
| 20 mm UV sphere, 256 segments | 65,024 | 32,514 | 3,251,284 | 13,272,805 | 2,209,728 | 1,235,720 | 781,208 | 4,486,851 | 548,981 | ✓ |
Method
Each mesh is generated in code (watertight, millimetres), exact-welded, then written by the 3DA.XYZ mesh engine to each format. Sizes are exact byte counts of the written files. gzipBytes = gzip level 6 of that file (a proxy for HTTP compression). 3mf = stored (uncompressed) ZIP as written by the engine; 3mf-deflate = the same three parts re-packed with raw DEFLATE level 6, as typical 3MF exporters do. Every file is parsed back and checked for identical triangle count, closure and volume.
- Sizes depend on the writer: number formatting (6 decimals here), headers, indexing and metadata. Other applications will produce different byte counts for the same geometry.
- OBJ and PLY here store indexed vertices; STL stores three corners per triangle.
- GLB here stores positions + 16/32-bit indices and one material; no normals, UVs or textures.
- The 3DA.XYZ Studio and converter download the deflate variant of 3MF when the browser supports CompressionStream.
Environment: Node.js v22.23.4, engine SHA-256 5097bda723dbb76c…, script SHA-256 3b52af7ce75d763a…. Re-run with node benchmark.js alongside ax-mesh.js. Data licence: CC0.
Cite this data
3DA.XYZ (2026). 3D file format size benchmark, v1. https://3da.xyz/lab/format-benchmark/