What Is a .OBJ File? (.obj, .mtl)
A .obj file is a 3D model in the Wavefront OBJ format, a simple text format that lists a model's vertices, faces and texture coordinates. Colors and textures live in a companion .mtl file plus image files. Almost every 3D program, game engine and 3D printing app can import OBJ.
- Extension
- .obj, .mtl
- Full name
- Wavefront OBJ 3D Model
- Type
- 3D and CAD file
- MIME type
- model/obj
- Developed by
- Wavefront Technologies
About OBJ files
OBJ was created by Wavefront Technologies in the 1980s for its animation software and became a universal exchange format because it is easy to read and write. Each line describes one element: v for a vertex position, vt for a texture coordinate, vn for a normal and f for a face that joins vertices. Unlike STL, OBJ can store polygons with more than three sides and UV mapping for textures.
Materials are stored separately. The OBJ names an .mtl file, which defines colors and points to texture images such as JPG or PNG. If you send only the .obj, the model arrives gray. Keep the OBJ, MTL and texture files together in one folder, or ZIP them, and do not rename one without fixing the references inside the others.
OBJ has no animation, rigging, cameras or scene hierarchy, and it stores no units. Because it is text, large scanned models can be hundreds of megabytes. A different, unrelated .obj file is the compiled object file produced by C and C++ compilers on Windows; if an .obj sits next to source code in a build folder, it is not a 3D model.
What OBJ files are used for
- Exchanging static 3D models between Blender, Maya, 3ds Max and Cinema 4D
- Selling and downloading 3D assets on marketplaces
- Exporting photogrammetry and 3D scans
- Color 3D printing and slicing (with textures)
- Importing models into game engines such as Unity and Unreal
How to open a .obj file
Windows
Blender (free) imports OBJ with its materials. Slicers such as PrusaSlicer and Cura also open OBJ for printing.
Mac
Use Blender, or a slicer like PrusaSlicer; keep the .mtl and textures in the same folder so materials load.
Online / any browser
Babylon.js Sandbox shows OBJ models in the browser; drop the .obj, .mtl and texture files in together.
Linux
Blender and MeshLab are free and open OBJ files.
How to convert a .obj file
To convert OBJ to FBX, glTF or STL, import it in Blender (File > Import > Wavefront OBJ) and use File > Export with the target format.
For 3D printing, export STL or 3MF from Blender or load the OBJ straight into PrusaSlicer, which converts it on import.
Renaming .obj to .stl or .fbx does not convert it; each is a different structure.
Changing the extension in the file name does not convert the file. See how to change a file extension for when renaming is safe.
Naming and renaming OBJ files
- Keep the OBJ and MTL base names identical (chair.obj, chair.mtl) and name textures after the model and map type (chair-diffuse.png, chair-normal.png).
- If you rename the OBJ, open it in a text editor and update the mtllib line so it still finds the material file.
- Avoid spaces in texture names; some importers stop reading the path at the first space.
Renaming lots of .obj files? Use the free online bulk renamer for patterns and numbering, or try File Renamer AI to name each file from what is inside it.
Related file types
A .stl file is a 3D model that describes the surface of an object as a mesh of triangles. It is the standard format for 3D printing: slicer apps such as PrusaSlicer, Cura and Bambu Studio read STL files and turn them into printer instructions. STL stores shape only, with no color, texture or units.
A .fbx file is a 3D scene in Autodesk's Filmbox format that can hold models, materials, skeletons, animations, cameras and lights together. It is the standard way to move animated characters and assets between 3D apps such as Maya, 3ds Max and Blender and game engines like Unity and Unreal.
A .dwg file is a drawing created in AutoCAD, Autodesk's design software, and the most widely used CAD format for architecture, engineering and construction. It stores precise 2D and 3D geometry, layers, dimensions and blocks in a compact binary form. Free viewers such as DWG TrueView and Autodesk Viewer open it.
A .png file is a Portable Network Graphics image, a lossless format that keeps every pixel exactly as saved and supports full transparency. PNG is the standard for screenshots, logos, icons and web graphics with sharp edges or text, though photos saved as PNG are much larger than JPGs.
Frequently Asked Questions
Why does my OBJ model have no color?
The .mtl file or the texture images are missing or in a different folder. Put them next to the .obj and import again.
Is OBJ better than STL for 3D printing?
OBJ can carry color and texture, which matters for full-color printers; for single-color printing STL and OBJ give the same shape.
Can an OBJ file be animated?
No. OBJ stores a static mesh only; use FBX or glTF for animation.
What is a .obj file in a Visual Studio project?
That is a compiled object file created by the C or C++ compiler, not a 3D model. It is a build artifact you can usually delete and rebuild.