SupaVoxel
3D file formats

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 ·Updated

01

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.

02

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
STLOBJ
Geometry typeTriangles only; every triangle lists its own 3 vertices plus a facet normalPolygons (triangles, quads, n-gons) with shared, indexed vertices; the spec also allows NURBS curves and surfaces, which few tools read
Color / textureNone in the standard; two incompatible vendor hacks store 15-bit color per facetUV coordinates in the file; colors and texture images referenced through a separate .mtl file
UnitsNone; slicers assume millimetersNone; the receiving app decides
MaterialsNoneDiffuse, specular, opacity and texture maps in .mtl; PBR metal/roughness only through unofficial extensions
File sizeBinary: 84 bytes + 50 bytes per triangle. ASCII: roughly 6x largerText only; smaller than binary STL for geometry alone, larger once UVs and normals are written
EditabilityHard to edit: a soup of unconnected trianglesEasier: connected topology, groups and quads survive
Software supportEvery slicer, CAD and mesh toolEvery slicer, Blender, Maya, 3ds Max, Unity, Unreal, most viewers
Printing useThe de facto default for single-material printsFine 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.

03

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
04

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
ExportWhat it containsSize
Binary STLTriangles and facet normals25.0 MB
ASCII STLSame data as readable text150.9 MB
OBJ, geometry onlyVertex positions and faces21.4 MB
OBJ with UVs and normalsPositions, UVs, normals, faces38.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 millimeters10.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.

05

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
06

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

Use STL. Every slicer and print service accepts it, and there are no side files to lose. It is also the format you will find most often on model sites such as Printables and Thingiverse.

Textured model for Blender or a game

Use OBJ, or better, GLB, which packs the textures into one file. OBJ keeps UVs, so the texture lands where it should.

Multicolor print on a Bambu AMS or Prusa MMU

Use 3MF. If you only have an OBJ with colors, Bambu Studio can map them, but 3MF stores per-part filament assignments directly.

Sending a part to a machinist or CAD user

Use STEP if you have it. Both mesh formats lose the exact curves a CAD user needs to edit holes and fillets.

Sharing a quick preview

OBJ opens almost anywhere with color. If it has to go into a web page, convert to GLB for one compact file.

Archiving a print-ready version

Keep a binary STL alongside your 3MF project. It is the one format every tool will still open in ten years.
07

Converting between STL and OBJ without surprises

Converting is lossless for shape in one direction and lossy for appearance in the other.

Do
  • 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
Avoid
  • 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
FAQ

Frequently asked questions

Is STL or OBJ better for 3D printing?

For a single-color print they produce the same toolpath, so pick STL for the widest compatibility and fewest side files. OBJ only helps when the colors matter: Bambu Studio can map OBJ colors to AMS filaments, while PrusaSlicer ignores OBJ materials. For dependable multicolor prints on any slicer, export 3MF, which stores filament assignments per part instead of relying on texture or material files.

Does an OBJ file keep color and textures?

Yes, but not inside the .obj itself. The OBJ holds UV coordinates and points to a .mtl material file, and the .mtl points to texture images such as a PNG. All three must travel together. If you receive only the .obj, the model opens gray. For a single file with textures included, use GLB instead of OBJ.

Why is my STL file so much bigger than the OBJ?

STL repeats every vertex for every triangle that touches it, while OBJ lists each vertex once and references it. In our 500,000-triangle test, binary STL came to 25.0 MB and a geometry-only OBJ to 21.4 MB. ASCII STL is far worse at 150.9 MB. Once you add UVs and normals, OBJ grows to 38.6 MB, so the gap flips.

Can I convert STL to OBJ without losing quality?

Yes. STL to OBJ keeps every triangle and position exactly, and the OBJ will usually be a little smaller because shared vertices are merged. What you cannot get back is color or UVs, since the STL never had them. Our free STL to OBJ converter runs in your browser and shows a 3D preview before you download.

STL vs OBJ: which one does Blender prefer?

Blender imports both, but OBJ is the better fit when the model has textures, because UVs and material slots come along. STL arrives as a single gray mesh with no UV layout. If you are moving a textured model into Blender, GLB is even easier than OBJ, since textures are embedded and PBR materials map directly to Blender's Principled BSDF.

Why does my model import tiny or huge?

Neither STL nor OBJ stores units, so the receiving app guesses. Slicers assume millimeters; a model saved in inches arrives 25.4 times too small, and one saved in meters 1,000 times too small. PrusaSlicer and Bambu Studio offer to convert when a model looks like it was saved in inches. Otherwise scale it by the right factor before slicing.

Can an STL file have color?

Not in the standard. Two vendor variants, from VisCAM/SolidView and from Materialise Magics, hide a 15-bit color in each triangle's spare two bytes, but they store the channels in opposite order and most slicers ignore both. If you need color on the printed part, use 3MF; if you need it on screen, use OBJ or GLB.

How do I get an STL or OBJ from a photo?

Upload the picture to SupaVoxel's image to 3D studio and you get an untextured model, usually in under a minute, or a textured one in typically 3 to 5 minutes. New accounts get 3 free credits and can download GLB for free; STL, OBJ and 3MF exports are part of the paid plans. You can also convert the free GLB to STL or OBJ with our browser converters.
Start free

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