OBJ viewer

Drop a Wavefront OBJ file below to see it in 3D. OBJ is plain text, which makes it the most widely supported mesh format there is — and also the one most likely to arrive as three separate files where you only kept one. This page reads the geometry, reports what it found, and converts it to anything else you need.

STLSTEPIGES3MFOBJFBXGLBDAE3DSPLYVRMLAMFOFFG-codeDXFAll formats

What an OBJ file contains

OBJ is a text file where each line begins with a tag saying what it is. The whole format can be summarised in a short list:

Because it is text you can open an OBJ in any editor and read it, which is genuinely useful when something is wrong. A file that renders as nothing often turns out, on inspection, to contain vertices and no f lines at all.

Two features set OBJ apart from STL and matter in practice. Faces are indexed, so a shared corner is one vertex rather than several duplicates. And faces can be polygons, not just triangles — a cube exported from most modelling tools is six quads rather than twelve triangles.

The three-file problem

This is the thing that catches people out. A textured OBJ is not one file, it is three kinds of file:

  1. The .obj itself, holding geometry.
  2. A .mtl file holding material definitions — colours, shininess, and the names of texture images.
  3. The texture images themselves, usually .png or .jpg.

Download an OBJ from a model site and you often get only the first. The mtllib line inside it points at a file that does not exist, so every tool that opens it shows untextured grey geometry and people conclude the file is broken. It is not — the rest of it was never there.

If you need one self-contained file

Use GLB instead. It packs geometry, materials and textures into a single binary container, which is precisely the problem it was designed to solve. The 3D model converter writes GLB, though textures cannot be invented if the OBJ never had them.

Scale: the OBJ trap worth knowing

Like STL, OBJ has no unit field. But unlike STL, OBJ did not grow up in 3D printing — it comes from rendering and later became a games and VFX staple, where the near-universal convention is that 1 unit means 1 metre.

Import such a file into a slicer, which assumes millimetres, and a 1.8-unit character model becomes 1.8 mm tall. The fix is scaling by 1000, but only if the file really was in metres, and nothing in the file tells you. The dimensions panel in this viewer is the fastest way to find out: if a chair reports 0.9 × 0.5 × 0.45, it is metres.

The reverse happens too. An OBJ exported from a CAD tool in millimetres, imported into Blender at its default settings, arrives a thousand times too large.

Quads, n-gons and triangulation

Most 3D applications prefer quads for modelling because they subdivide and deform predictably. OBJ preserves them faithfully, so an OBJ straight out of Blender or Maya is typically quad-dominant.

Everything downstream of modelling — GPUs, slicers, STL — works in triangles, so quads have to be split somewhere. This viewer triangulates with a fan from the first vertex of each face, which is the standard approach and is exactly correct for convex faces. It also means the triangle count you see here will be roughly double the face count in the file, and that is expected rather than a sign of anything going wrong.

One real limitation: a strongly concave polygon fan-triangulated can produce triangles that stray outside the original outline. This is rare in exported files, because exporters generally emit convex faces, but it is why a proper ear-clipping triangulator exists in heavier tools.

Common OBJ problems

The file opens but nothing appears

Either scale — see above — or the file contains only vertices with no faces. Some point-cloud exports use OBJ this way. Open it in a text editor and look for lines starting with f.

Everything is one object when it should be several

Some exporters write group tags and some do not. Without o or g lines there is no separation to recover, and the whole mesh reads as one object.

Shading looks faceted or strangely blocky

The file carries no normals, so they have to be computed from the geometry. This viewer computes smooth normals when the file provides none, but a low-polygon curved surface will still look faceted because it genuinely is.

Negative numbers in face lines

Entirely legal. OBJ allows indices to count backwards from the end of the list, so f -3 -2 -1 means the last three vertices. Some older tools do not implement this; this page does.

Converting OBJ to other formats

Conversion happens in the 3D model converter: press Convert this file beside the viewer and the file you have open is carried across, ready to download in any of eight formats, STEP included — with unit and orientation fixes if it needs them.

Group structure is preserved where the target format supports it — 3MF keeps separate objects, STL cannot and merges everything.

Why nothing is uploaded

Every other viewer you will find asks you to upload the file to a server, which renders it and sends back a picture. That means your model sits on someone else's disk, subject to their retention policy, their security and their terms.

This page does not work that way. The file is read by the browser FileReader API, parsed by JavaScript in your tab, and drawn with WebGL on your own graphics card. No request carrying your data is ever made — you can confirm this by opening your browser developer tools, switching to the network tab, and watching nothing happen when you open a file.

That is worth something if you work on anything confidential: client parts, unreleased products, prototypes under NDA. It also means the page keeps working with your network disconnected.

Frequently asked questions

What is an OBJ file?

Wavefront OBJ is a plain-text mesh format from the late 1980s. It stores vertices, texture coordinates, normals and faces as readable lines of text. Unlike STL it supports named groups, quads and polygons with any number of sides, and it can reference materials from a companion .mtl file.

Why does my OBJ open with no colour or texture?

Because colour lives in a separate file. An OBJ references a .mtl material file by name, and the .mtl in turn references image files. If you only have the .obj, the material data simply is not present. This viewer shows geometry; for a single self-contained file with materials included, use GLB.

Does this viewer handle quads and n-gons?

Yes. OBJ faces can have any number of vertices, and this page triangulates them with a fan from the first vertex. That is correct for convex faces, which is what almost all exported OBJ files contain. A severely concave n-gon can triangulate imperfectly, which is a limitation of fan triangulation generally.

Can I convert OBJ to STL for 3D printing?

Yes — press Convert this file beside the viewer and choose STL. Be aware of scale: OBJ has no unit declaration, and many OBJ files come from rendering and game pipelines where 1 unit means 1 metre rather than 1 millimetre. Check the dimensions panel before you print.

What do the numbers in "f 3/1/2" mean?

They are indices into three separate lists: vertex position, texture coordinate and normal, in that order. Any of the last two can be omitted, so "f 3//2" means position 3 with normal 2 and no texture coordinate. Indices start at 1, and negative values count backwards from the end of the list.

Why is my OBJ so much larger than the equivalent STL?

It usually is not — OBJ stores each vertex once and refers to it by index, so for the same mesh it is generally smaller than binary STL despite being text. If yours is unusually large, it probably contains texture coordinates and normals for every face corner, which triples the data.

Need to make a model rather than open one? LyraMaker has more than a hundred free browser generators — name keychains, plates, monograms, rulers, QR codes and more, all exporting STL and 3MF.
Browse the generators →