Everything you need to know about OBJ to STL
OBJ and STL are both old, simple, and readable by almost everything. The differences that matter for printing are units, orientation, polygons, and what happens to groups and materials.
What is an OBJ file, and how is it different from STL?
OBJ is a plain-text format that Wavefront Technologies created for its Advanced Visualizer software. Each line is a statement: “v” lines list vertex positions, “vt” lines list texture coordinates, “vn” lines list normals, and “f” lines build faces by pointing at those vertices by number. Faces can have three, four, or more corners. An OBJ can also name objects and groups, and it usually points to a companion .mtl file that describes materials and texture images.
STL describes a surface in the plainest possible way: a list of triangles, each with three corner coordinates and a facet normal. It has no shared vertices, no groups, no materials, no texture coordinates, and no unit. Binary STL is compact and is what every slicer reads first.
Converting OBJ to STL is therefore mostly a matter of dropping things STL cannot store and splitting every polygon into triangles. This converter reads the faces, triangulates them, applies your unit and orientation choices, and writes one STL or one STL per object.
OBJ has no units: why your model arrives the wrong size
Like STL, OBJ stores bare numbers. A cube with corners at 0 and 20 could be 20 millimeters, 20 centimeters, 20 inches, or 20 meters; the file does not say. Slicers assume millimeters. That is the right guess for files exported from CAD tools or downloaded from print-focused sites, but it is often wrong for OBJ files from animation and game tools. Blender, for example, works in meters by default, so a 15 cm figurine exported with default settings is stored as 0.15 and arrives in the slicer as a fraction of a millimeter.
The “File units” setting tells the converter what one unit meant to the app that wrote the file. Choosing meters multiplies every coordinate by 1,000, centimeters by 10, and inches by 25.4, so the STL comes out in millimeters. The output size shown under the preview updates as you change it, which is the quickest way to sanity-check the result: a mug should read around 80 to 120 mm tall, not 0.1 mm or 100,000 mm.
If the converter sees that the largest side is under two units, it suggests meters, but it never changes the unit for you. The scale field is applied on top of the unit, so you can convert from meters and then print at 50% in one step.
Y-up vs Z-up: fixing a model that lies on its back
OBJ does not define which way is up either. Slicers and CAD tools treat the Z axis as vertical, while Blender’s OBJ exporter, Maya, and most game engines write files with Y as the vertical axis. Open a Y-up OBJ in a slicer and a standing figure appears face-up on the bed.
Turn on “Rotate Y-up to Z-up” and the converter applies the same axis change Blender makes when it imports, so the model stands upright in the slicer. The preview shows the model as the slicer will see it, so if it is lying down, flip the switch and look again. Rotating is lossless; it only changes which numbers go in which column.
What is kept and what is lost in conversion
STL can only describe a surface, so anything that is not geometry is dropped. Here is the full list.
Kept
- Every face, split into triangles
- Object and group names, used to name parts when you export a ZIP
- Exact vertex positions, scaled to millimeters with your unit choice
Lost
- Materials from the .mtl file, and the texture images it references
- Texture coordinates (vt) and custom normals (vn); slicers recompute normals
- Smoothing groups
- Vertex colors written by some exporters as extra numbers on “v” lines
- Lines and points, which have no surface to print
- Free-form curves and surfaces (rarely used, and not read by this tool)
If you need the colors for a multi-material printer, keep the model as 3MF instead. STL has no way to store color.
Quads and n-gons become triangles
OBJ faces often have four corners (quads) or more (n-gons), because that is how modeling tools work. STL only accepts triangles, so each polygon is split into a fan of triangles from its first corner. For flat, convex polygons, which covers nearly every quad, the result is exact. A strongly concave or non-planar n-gon can be split in a way that folds over itself, which shows up as a dark crease or a missing patch in the preview.
If you see that, triangulate in your modeling tool before exporting. In Blender, add a Triangulate modifier or use Face → Triangulate Faces, which handles concave shapes properly. The Info tab tells you how many faces in your file had more than three corners, so you know whether this matters for your model.
Objects, groups, and multi-part prints
An OBJ can contain several named objects (“o” lines) or groups (“g” lines): a figure and its base, the halves of a case, the pieces of a kit. With “Merge all parts” on, everything goes into one STL and keeps its position, which is what you want for a single-color print. Merging places the triangles in one file but does not boolean-union overlapping parts, so intersecting pieces stay separate shells. Most slicers handle that fine.
Turn merging off to get one STL per object in a ZIP, named after the object in the OBJ. Every part keeps its position relative to the others, so importing them together in the slicer reassembles the model. This is the easy way to print parts in different colors or to lay them flat separately.
Binary vs ASCII STL, and file size
Binary STL is 84 bytes of header plus exactly 50 bytes per triangle, so a 100,000-triangle model is about 5 MB no matter how many decimals the OBJ used. That is often smaller than the OBJ, which stores numbers as text, but larger than an OBJ whose vertices are heavily shared. The estimate next to the download button uses your model’s real triangle count.
ASCII STL is text, roughly six times larger than binary. Choose it only if a script or an old program needs to read the file as text. Every current slicer reads binary STL.
Your file never leaves your device
The converter is JavaScript running in this page. Your OBJ is read with the browser’s File API, parsed in memory, and the STL is built in memory and saved with a normal download. There is no upload step and no server-side copy. The limit is 100 MB per file, because very large text files can exhaust a browser tab’s memory, especially on phones. For bigger models, decimate in Blender or MeshLab first.
Conversion does not repair a mesh. Holes, flipped faces, and walls thinner than your nozzle survive the trip unchanged, so check the result in your slicer’s preview before you print.
OBJ vs STL vs 3MF vs GLB
How the common 3D formats compare for printing. STL is what this tool writes.
| Feature | OBJInput | STLOutput | 3MF | GLB |
|---|---|---|---|---|
| Stores | Vertices, polygons, UVs, normals | Triangles only | Meshes, colors, materials, print settings | Full scene: meshes, PBR materials, animation |
| Units | None | None (slicers assume mm) | Declared in the file | Meters by specification |
| Faces | Triangles, quads, n-gons | Triangles | Triangles | Triangles |
| Color | Through a separate .mtl and textures | No | Yes, per object or triangle | Yes, textures and materials |
| Encoding | Text | Binary or text | Zipped XML | Binary |
| Best for | Exchanging models between modeling apps | Sending a shape to any slicer | Multi-color jobs and slicer projects | Web, AR, and game engines |
Troubleshooting
Quick fixes for the problems people hit most often after converting.
- The model is tiny in the slicer
- The OBJ was probably exported in meters. Set “File units” to m and check that the output size looks right before downloading.
- The model is lying on its back
- The OBJ is Y-up. Turn on “Rotate Y-up to Z-up”; the preview updates to show how the slicer will see it.
- Some faces are missing or look folded
- Concave n-gons can triangulate badly. Triangulate in Blender (Face → Triangulate Faces) and export again.
- “This OBJ has no faces to convert”
- The file contains only points or lines, such as a curve or a point cloud. Give it a surface in your modeling app first.
- The colors are gone
- That is expected: STL stores shape only. Use 3MF if you need color for a multi-material printer.
- The slicer says the mesh has errors
- The holes or flipped faces were already in the OBJ. Run the slicer’s repair or fix it in Blender’s 3D-Print Toolbox, then re-export.