STL vs 3MF vs OBJ vs PLY: Which 3D File Format Should You Use?
Four file formats cover almost everything makers exchange: STL, 3MF, OBJ and PLY. They look interchangeable because each can describe a triangle mesh, but they differ in what else they carry (units, colour, textures, print settings), in how big the files get and in what can go wrong when someone else opens them. This guide compares them feature by feature, adds measured file sizes for the same mesh, and ends with a decision table by use case.
Quick answer
- Printing a single-colour part: STL works everywhere, but 3MF is smaller and carries units.
- Multi-colour or multi-material printing: 3MF.
- Sharing a textured or painted model for rendering: OBJ (with its .mtl and texture images) or glTF.
- Storing a coloured 3D scan: PLY (vertex colours).
- Selling or publishing a model: offer STL for compatibility and 3MF for convenience, and zip them.
What each format stores
| STL | 3MF | OBJ | PLY | |
|---|---|---|---|---|
| Geometry | Triangles only | Triangle meshes with shared vertices | Polygons with shared vertices | Vertices and faces |
| Units | None (a unitless number) | Yes (millimetres by default) | None | None |
| Colour | Non-standard extensions only | Yes, per object, face or material | Via a separate .mtl file | Yes, per vertex |
| Textures | No | Yes | Yes (separate image files) | Rare |
| Multiple objects | Awkward | Yes, with build layout | Yes (groups) | Single mesh by convention |
| Print information | No | Yes (extensions for materials, slicer data) | No | No |
| Text or binary | Both | Zipped XML | Text | Both |
| Typical use | Printing, universal exchange | Modern printing | Rendering, DCC tools | Scans, research |
STL
The oldest and most widely understood format. It stores only triangles and their normals. There is no unit: a cube that is 20 units wide might be 20 mm in one program and 20 inches in another, which is the origin of many “my model is tiny” problems (see scale and units). It also has no colour and no notion of several parts. Its great strength is that every slicer and viewer opens it.
3MF
Created as a modern replacement for STL for 3D printing. A 3MF file is a zip archive containing an XML description of the mesh, which can include units, colours, materials, several objects and print-related metadata. Because it shares vertices and compresses, files are small. Current slicers such as PrusaSlicer, Cura, OrcaSlicer and Bambu Studio open it; some older tools do not.
OBJ
A text-based format from the world of 3D graphics. It shares vertices, supports polygons beyond triangles and can reference materials and texture images through a companion .mtl file. The three-file arrangement (.obj, .mtl and images) is the usual source of problems: if the companion files are missing, the model opens without colour. OBJ has no units.
PLY
Created for storing 3D scan data. It handles per-vertex colour well and exists in a compact binary variant. It is less common in printing software, but good for colour scans and for research tools.
Measured file sizes for the same mesh
We wrote one noisy, scan-like mesh with 201,608 triangles and 101,120 vertices in every format (details at the end of the page):
| Format | Size | Relative to binary STL |
|---|---|---|
| ASCII STL | 46.77 MB | 464% |
| Binary STL | 10.08 MB | 100% |
| OBJ (text) | 7.20 MB | 71% |
| PLY (binary) | 3.83 MB | 38% |
| Binary STL, zipped | 4.28 MB | 42% |
| 3MF | 2.31 MB | 23% |
The pattern is clear. STL repeats every corner point for every triangle, while OBJ, PLY and 3MF store each point once. 3MF adds compression and was the smallest in all four of our tests. For a smooth mesh of the same triangle count the 3MF was only 16% of the binary STL. See how to reduce STL file size for more on this.
Which format for which job
| You want to… | Use | Why |
|---|---|---|
| Print a plain single-colour part | STL, or 3MF if your slicer supports it | Both work; 3MF is smaller and keeps units |
| Print in several colours or materials | 3MF | Stores colour and material assignments with the model |
| Share a model with a buyer who may use any software | STL plus 3MF in one zip | Compatibility and convenience |
| Send a painted or textured model to a renderer | OBJ with .mtl and textures, zipped together | Keeps textures; remember to include all files |
| Archive a coloured scan | PLY (binary) | Per-vertex colour, compact |
| Show a model in a browser or on social media | Preview video or images | See turntable videos |
Common problems and their causes
| Symptom | Likely cause | Fix |
|---|---|---|
| Model is 25.4 times too big or small | Inch/millimetre confusion in STL | Scale by 25.4 or export in millimetres |
| OBJ opens grey | .mtl or texture files missing | Keep all files in one folder or zip |
| 3MF will not open | Old software or non-standard extension data | Export STL as a fallback |
| Colours are lost after slicing | Format has no colour (STL) or slicer ignores it | Use 3MF and assign colours in the slicer |
| File is huge | ASCII STL or very dense mesh | Binary export, decimation, 3MF |
Frequently asked questions
Is 3MF better than STL?
For most modern printing workflows, yes: smaller, with units and colour. STL remains the safest choice for compatibility with old software and with buyers you do not know.
Can STL store colour?
The original format cannot. Some programs write colour into unused bytes of binary STL, but there is no standard and many tools ignore it. Use 3MF, OBJ or PLY for colour.
Which format does STLtoMP4 open?
STL (binary and ASCII), 3MF, OBJ and PLY, including coloured models. Everything is processed in your browser.
How we measured
The test mesh is a UV sphere of 20 mm radius with 316 x 320 segments and Gaussian noise of 0.05 mm standard deviation added to each vertex radius, giving 201,608 triangles and 101,120 vertices. OBJ uses six decimals, PLY uses float32 positions and int32 indices, 3MF uses six significant digits in XML with DEFLATE compression and ASCII STL uses %e formatting. Real models differ; the raw numbers are in a CSV file.