Guides / Updated November 21, 2026
What is an MTL file?
An MTL file is the small text file that tells an OBJ model what colours and textures to use. The OBJ holds the shape, the MTL holds the looks. You can open one free in our MTL viewer, with the model in colour.
Free toolOpen an MTL file in your browser →Drop the .obj, .mtl and texture images together to see the model in colour and find missing files.What it is, in one minute
MTL stands for Material Template Library. Wavefront made it in the 1980s to go with its OBJ format, and almost every 3D app still reads both.
It's plain text. Each material gets a name and a few lines that set its colour, shine and see-through-ness, plus the image files to wrap on it. That's all. There's no shape in an MTL, so on its own it shows nothing.
How the OBJ and MTL find each other
- The OBJ names its MTL with a line near the top: mtllib model.mtl. The app looks for that file in the same folder as the OBJ.
- Each part of the OBJ says which material it wants with usemtl, for example usemtl Wood. Every face after that line uses Wood, until the next usemtl.
- The MTL starts each material with newmtl and the same name: newmtl Wood. The names have to match exactly, capitals included.
- One OBJ can list more than one MTL, and one MTL can hold dozens of materials. A car model might have a material for paint, glass, tyres and chrome in one file.
If the mtllib name is wrong, or the file isn't in the same folder, the model opens grey. That's the most common MTL problem, and it's a file-name problem, not a broken model.
A small MTL file, line by line
| Line | What it means |
|---|---|
| # Made in Blender | A comment. Lines starting with # are skipped |
| newmtl Wood | Starts a material called Wood |
| Kd 0.80 0.52 0.25 | Base colour: red, green, blue, each from 0 to 1. This is a warm brown |
| Ka 1.0 1.0 1.0 | Ambient colour: how it looks in shadow. Most modern apps ignore it |
| Ks 0.5 0.5 0.5 | Shine colour: the colour of the highlight. Grey is a normal highlight |
| Ns 250 | How tight the highlight is, from 0 to 1000. Higher is a smaller, sharper spot, like varnish |
| d 1.0 | How solid it is. 1 is fully solid, 0 is invisible |
| illum 2 | Which lighting style to use. 2 means colour plus highlights |
| map_Kd wood.png | The image wrapped on as the colour. It replaces or tints Kd |
If you only change one line, change Kd. It's the colour you see.
The other lines you'll run into
- Tr: the opposite of d, so Tr 0 is solid. It isn't in the original spec, and apps disagree on it. If glass looks solid or a solid part vanishes, check Tr.
- Ni: how much light bends going through it (the index of refraction). Glass is about 1.5. Only ray-traced renders use it.
- Ke: a glow colour, for screens and lamps. It came later than the original spec, but Blender and others write it.
- map_Ks, map_Ns, map_d: images for shine, highlight size and see-through areas. map_d with a leaf texture is how plants get their cut-out shapes.
- map_Bump or bump: an image that fakes small bumps. A -bm 0.5 option before the file name sets how strong they are.
- Pr and Pm: roughness and metal, from a newer add-on to the format. Newer exporters, Blender among them, can write them. Older apps skip them.
- illum 0 to 10: lighting styles, from flat colour (0) to ray-traced glass (4, 6, 7). Most game engines and viewers ignore it and use Kd and the maps.
Why textures go missing
- Full paths from the artist's computer, like map_Kd C:\Users\Sam\Desktop\wood.png. On your computer that folder doesn't exist. Edit the line to just wood.png and put the image next to the MTL.
- The images weren't sent. A download with only the .obj and .mtl will always open grey or pink. Ask for the texture folder, or check the zip again.
- Spaces in file names. Some readers cut the name at the first space. Rename wood floor.png to wood_floor.png and change the line to match.
- Upper and lower case. On Linux and on websites, Wood.png and wood.png are two different files. Make the MTL match the real file name exactly.
- Formats the app can't read. TGA, DDS and EXR textures don't show in most browsers and many viewers. Convert them to PNG or JPG and change the names in the MTL.
The MTL only stores the file name of each image. The images themselves are separate files. Here's what breaks the link:
How to open an MTL file
| Where | How | What you see |
|---|---|---|
| Our MTL viewer | Drop the .mtl, .obj and images on the page together | The model in colour, every material, and a list of missing images |
| Windows | Right-click → Open with → Notepad | The text lines. Windows has no app that shows MTL on its own |
| Mac | Right-click → Open With → TextEdit | The text lines |
| Blender | File → Import → Wavefront (.obj), with the MTL next to the OBJ | The model with its materials, ready to edit |
Opening the MTL by itself only ever shows text. To see colours, you need the OBJ it belongs to.
Exporting OBJ and MTL from Blender so it works elsewhere
- Use File → Export → Wavefront (.obj). Under Materials, leave Export ticked so Blender writes the MTL.
- Set Path Mode to Copy. Blender then copies the texture images next to the export and writes short file names in the MTL, so nothing points back to your computer.
- Send the .obj, the .mtl and every image together, in one folder or one zip.
- Blender's shader nodes don't all fit into MTL. A simple image texture into Base Color comes through. Procedural textures, mixes and node tricks don't. Bake them to an image first if they matter.
Do you need the MTL for 3D printing?
No. Slicers read the shape from the OBJ and ignore most or all of the MTL. If you print in one colour, you can delete it.
For a print in more than one colour, the MTL usually won't carry over. Paint the colours in your slicer instead: Bambu Studio, OrcaSlicer and PrusaSlicer all have a paint tool for multi-colour printers. STL can't hold colour at all, so our OBJ to STL converter keeps the shape and leaves the colours behind.
Got a model with colours you want to check first? Drop the OBJ, MTL and images on our MTL viewer. You'll see whether every part has the colour you expect before you start painting in the slicer.



