STL vs OBJ: Which Format Should You Use?
Pick STL when you only need a printable shape, and OBJ when the model carries UVs, textures or colors. Every slicer opens both, and you can convert them free.
- Measured file sizes
- Slicer behavior checked
- Free viewers and converters
By SupaVoxel Team·Updated
STL vs OBJ: the short answer
For a single-color 3D print, STL is the safer default: it is the oldest and most universally supported mesh format, and it stores nothing but triangles, so there is nothing for a slicer to misread. Choose OBJ when the same file also has to look right on screen, in Blender, a game engine or a renderer, because OBJ keeps texture coordinates (UVs), vertex normals and a link to a material file.
The STL vs OBJ choice is really a question of what you need to survive the export. Shape alone? STL. Shape plus surface appearance? OBJ. If you need color on the printer itself, neither is ideal: use 3MF, which slicers read as filament assignments.
Both formats share two traps. They have no unit field, so a model can arrive 25.4 times too small (saved in inches) or 1,000 times too small (saved in meters). And both are plain triangle meshes, so curves are already faceted; neither keeps the exact CAD surfaces a STEP file does.
STL vs OBJ comparison table
What each format can and cannot hold, and how today's tools actually read them.
Geometry type
- STL
- Triangles only; every triangle lists its own 3 vertices plus a facet normal
- OBJ
- Polygons (triangles, quads, n-gons) with shared, indexed vertices; the spec also allows NURBS curves and surfaces, which few tools read
Color / texture
- STL
- None in the standard; two incompatible vendor hacks store 15-bit color per facet
- OBJ
- UV coordinates in the file; colors and texture images referenced through a separate .mtl file
Units
- STL
- None; slicers assume millimeters
- OBJ
- None; the receiving app decides
Materials
- STL
- None
- OBJ
- Diffuse, specular, opacity and texture maps in .mtl; PBR metal/roughness only through unofficial extensions
File size
- STL
- Binary: 84 bytes + 50 bytes per triangle. ASCII: roughly 6x larger
- OBJ
- Text only; smaller than binary STL for geometry alone, larger once UVs and normals are written
Editability
- STL
- Hard to edit: a soup of unconnected triangles
- OBJ
- Easier: connected topology, groups and quads survive
Software support
- STL
- Every slicer, CAD and mesh tool
- OBJ
- Every slicer, Blender, Maya, 3ds Max, Unity, Unreal, most viewers
Printing use
- STL
- The de facto default for single-material prints
- OBJ
- Fine for printing; PrusaSlicer ignores its materials, Bambu Studio can map its colors to filaments
| STL | OBJ | |
|---|---|---|
| Geometry type | Triangles only; every triangle lists its own 3 vertices plus a facet normal | Polygons (triangles, quads, n-gons) with shared, indexed vertices; the spec also allows NURBS curves and surfaces, which few tools read |
| Color / texture | None in the standard; two incompatible vendor hacks store 15-bit color per facet | UV coordinates in the file; colors and texture images referenced through a separate .mtl file |
| Units | None; slicers assume millimeters | None; the receiving app decides |
| Materials | None | Diffuse, specular, opacity and texture maps in .mtl; PBR metal/roughness only through unofficial extensions |
| File size | Binary: 84 bytes + 50 bytes per triangle. ASCII: roughly 6x larger | Text only; smaller than binary STL for geometry alone, larger once UVs and normals are written |
| Editability | Hard to edit: a soup of unconnected triangles | Easier: connected topology, groups and quads survive |
| Software support | Every slicer, CAD and mesh tool | Every slicer, Blender, Maya, 3ds Max, Unity, Unreal, most viewers |
| Printing use | The de facto default for single-material prints | Fine for printing; PrusaSlicer ignores its materials, Bambu Studio can map its colors to filaments |
Binary STL layout: an 80-byte header, a 4-byte triangle count, then 50 bytes per triangle.
What is inside an STL file and an OBJ file
An STL file, created in 1987 for 3D Systems' first stereolithography machines, is a list of triangles. Each triangle carries a normal vector and three corner points written out in full. Because nothing links neighboring triangles, a vertex shared by six triangles is stored six times, and the receiving software has to rebuild connectivity before it can repair or simplify anything.
An OBJ file, from Wavefront Technologies, is a text file with separate lists: v lines for vertex positions, vt for texture coordinates, vn for normals, and f lines that build faces by pointing at those lists. A mtllib line names the .mtl file that holds colors and texture image paths. That indexing is why OBJ keeps the mesh connected and why it can carry UV layouts that STL simply has no place for.
- STL: one record per triangle, nothing else
- OBJ: vertices, UVs and normals listed once and reused
- OBJ textures live in separate files you must keep next to it
STL vs OBJ file size: one model saved both ways
We exported the same AI-generated model, a steampunk robot knight from our gallery with 500,000 triangles, 287,963 vertices and a 2048 x 2048 color texture, to each variant and measured the files.
Binary STL
- What it contains
- Triangles and facet normals
- Size
- 25.0 MB
ASCII STL
- What it contains
- Same data as readable text
- Size
- 150.9 MB
OBJ, geometry only
- What it contains
- Vertex positions and faces
- Size
- 21.4 MB
OBJ with UVs and normals
- What it contains
- Positions, UVs, normals, faces
- Size
- 38.6 MB
OBJ textured, full set
- What it contains
- .obj + .mtl (198 bytes) + PNG texture (5.0 MB)
- Size
- 43.6 MB in 3 files
3MF, geometry only (for reference)
- What it contains
- Zipped XML mesh in millimeters
- Size
- 10.3 MB
| Export | What it contains | Size |
|---|---|---|
| Binary STL | Triangles and facet normals | 25.0 MB |
| ASCII STL | Same data as readable text | 150.9 MB |
| OBJ, geometry only | Vertex positions and faces | 21.4 MB |
| OBJ with UVs and normals | Positions, UVs, normals, faces | 38.6 MB |
| OBJ textured, full set | .obj + .mtl (198 bytes) + PNG texture (5.0 MB) | 43.6 MB in 3 files |
| 3MF, geometry only (for reference) | Zipped XML mesh in millimeters | 10.3 MB |
Binary STL size is exact: 84 + 50 x 500,000 = 25,000,084 bytes. OBJ wins on geometry alone because each of the 287,963 vertices is written once instead of once per triangle.
OBJ vs STL for 3D printing
Slicers treat both formats as a mesh to slice, so a correct file prints identically either way. The differences are in what gets thrown away. PrusaSlicer ignores material and texture information in an OBJ on import, and it reads both ASCII and binary STL. UltiMaker Cura opens STL and OBJ along with 3MF, PLY and glTF. Bambu Studio can read colors from an OBJ and offers to map them to your AMS filaments, which makes OBJ more useful than STL on a Bambu printer, though 3MF is still the more reliable route for multicolor.
What actually breaks prints is geometry, not the format: holes, flipped normals and self-intersections. Run a suspect file through the free STL repair tool before slicing; it accepts the mesh and returns a watertight STL.
- Same mesh, same toolpath: the format does not change print quality
- Textures in an OBJ are dropped by most slicers
- For printed color, export 3MF instead
When to use STL and when to use OBJ
Settle STL vs OBJ by where the file is going next.
Single-color FDM or resin print
Textured model for Blender or a game
Multicolor print on a Bambu AMS or Prusa MMU
Sending a part to a machinist or CAD user
Sharing a quick preview
Archiving a print-ready version
Converting between STL and OBJ without surprises
Converting is lossless for shape in one direction and lossy for appearance in the other.
- Keep the .mtl and texture images in the same folder as the OBJ, and zip them together when you share
- Check the model's size right after import; if it is 25.4x off, it was saved in inches
- Use binary STL, never ASCII, unless a tool specifically asks for text
- Preview the result in a viewer before you slice or send it
- Expect STL to OBJ to bring back colors or UVs; they were never in the STL
- Send a bare .obj when the look matters; without its .mtl it opens gray
- Assume a smaller file is lower quality; OBJ geometry is smaller because vertices are shared
- Rename .obj to .stl; the internal structure is different and the file will fail to load
Free STL and OBJ viewers and converters
All of these run in your browser with no sign-in, and your file never leaves your device.
Frequently asked questions
Is STL or OBJ better for 3D printing?
Does an OBJ file keep color and textures?
Why is my STL file so much bigger than the OBJ?
Can I convert STL to OBJ without losing quality?
STL vs OBJ: which one does Blender prefer?
Why does my model import tiny or huge?
Can an STL file have color?
How do I get an STL or OBJ from a photo?
Keep going
STL vs OBJ settled? Now make the model
Turn a photo into a 3D model, usually in under a minute, then export it as STL, OBJ or 3MF on a paid plan, or view and convert files here for free.
No credit card required · 3 free credits to start