The OBJ file format
OBJ is a plain-text 3D mesh format from Wavefront Technologies that became a universal exchange format for polygon models.
Open a OBJ file nowWhat is an OBJ file?
An OBJ file stores the geometry of a 3D model as readable text. It was created by Wavefront Technologies for its Advanced Visualizer animation software, and because the format is simple and openly described, other programs adopted it until nearly every 3D application could read and write it.
OBJ describes surfaces as polygons. Unlike STL, a face may have three, four or more corners, vertices are shared between faces, and the file can carry texture coordinates and smooth-shading normals. What it does not carry is a scene: there are no cameras, lights, animations or object hierarchies, only named objects and groups.
How an OBJ is written
Each line begins with a keyword. Lines starting with v list vertex positions, vt texture coordinates and vn normals. Lines starting with f define faces by referring to those lists by number, counting from 1 — f 1/1/1 2/2/1 3/3/1 is a triangle whose corners use vertices 1, 2 and 3 with matching texture coordinates and a shared normal. The keywords o and g name objects and groups, and s controls smooth shading.
Appearance is kept in a second file. A line such as mtllib model.mtl names a material library, and usemtl selects one of its materials for the faces that follow. The .mtl file is text as well: newmtl starts a material, Kd sets its diffuse color and map_Kd names a texture image. A complete model is therefore the .obj, its .mtl and the image files together.
Where OBJ works well, and where it does not
OBJ is valued for being predictable. It is text, so it can be inspected, generated by a short script and kept under version control; it preserves quads, which matters to modelers; and software written decades apart can open it. For moving a static mesh between two tools it remains a safe default.
Its weaknesses follow from the same simplicity. Text files are large and slow to parse for dense meshes. The format has no units, so scale has to be agreed on separately. Materials are limited to a basic model that predates physically based rendering, and the multi-file arrangement means textures get lost easily. For compact delivery with modern materials, glTF is the usual choice today.
How to open and convert an OBJ
The OBJ viewer on this site opens the geometry of an .obj file in the browser, with a wireframe mode for judging the mesh and statistics for triangle count and size. Nothing is uploaded. Any modeling program will import the file too, usually with options for scale and axis orientation.
For 3D printing, convert OBJ to STL; the color and texture information stays behind, because STL cannot hold it. In the other direction, STL to OBJ and STEP to OBJ produce meshes for software that prefers OBJ. The 3D model converter covers further combinations, including output as GLB.
Frequently asked questions
What is an MTL file?
A material library that accompanies an OBJ. It is a small text file defining named materials — colors, shininess, transparency and texture images — which the OBJ applies to its faces with usemtl statements.
Why does my OBJ have no color?
Because color is normally not stored in the .obj itself. If the .mtl file or the texture images are missing or were renamed, software shows the mesh without materials. Keep all the files of a model in the same folder with their original names.
Does OBJ support units?
No. The numbers have no declared unit, and different programs assume different ones. Check the size after import and rescale if needed.
Is OBJ or STL better for 3D printing?
For a single-color print either works, and STL is the more common choice. OBJ becomes useful when color or texture has to reach a printer or a service that supports it.
Can OBJ files contain quads?
Yes. Faces can have any number of corners, and modeling tools preserve them. Renderers and viewers split them into triangles for display.
Free tools for OBJ files
OBJ Viewer
View Wavefront OBJ models with wireframe, statistics and screenshots.
OBJ to STL
STL files from OBJ models, for slicers and 3D printers.
STL to OBJ
Turn STL meshes into Wavefront OBJ files, locally in the browser.
STEP to OBJ
OBJ meshes from STEP models for renderers, animation tools and game engines.
3D Model Converter
Convert STEP, IGES, IFC, FBX, 3MF, glTF and more to STL, OBJ, GLB or PLY.