OFF viewer
Drop an OFF file below to see it in 3D. OFF is the plainest mesh format in common use — a header, a count, a list of points, a list of faces — which is exactly why computational geometry courses, research code and mesh libraries keep reaching for it.
The whole format in one page
OFF is small enough to describe completely. A file looks like this:
- The word
OFFon the first line. - Three numbers: vertex count, face count, edge count. The edge count is almost always written as 0 and ignored by everyone.
- That many lines of
x y z. - That many face lines, each starting with how many vertices the face has, followed by zero-based indices into the vertex list.
- Optionally, colour values after a face's indices.
#starts a comment anywhere.
A cube is twenty lines and completely legible. That is the appeal: you can write an OFF exporter in a dozen lines of any language, and you can read one by eye when debugging. For teaching mesh algorithms, or for a research paper's sample data, that matters more than colour or compression ever could.
One detail that trips up naive parsers: the counts line and the data can be separated by comments and blank lines, and the numbers are whitespace-separated rather than line-oriented — a valid OFF can put three vertices on one line. Reading it as a stream of tokens rather than as lines is the correct approach, and is what this page does.
OFF's family of header variants
The header word can carry prefixes announcing extra per-vertex data:
OFF— plain geometry.COFF— each vertex is followed by colour components.NOFF— each vertex is followed by a normal vector.STOFF— each vertex carries texture coordinates.4OFF— vertices have four coordinates rather than three.- Combinations such as
CNOFFalso occur.
A reader that only accepts the literal string OFF rejects perfectly valid files. This page accepts the variants and skips the extra per-vertex data by the amount the header implies, so a COFF opens and renders its geometry correctly even though the colours are not drawn.
Why research meshes are the wrong size
This is the practical thing to know if you found an OFF file and want to print it.
Mesh processing research needs models to be comparable. An algorithm's error threshold, or a simplification target, means nothing if one model is measured in millimetres and another in metres. So datasets are routinely normalised: translated so the centroid is at the origin, then scaled so the model fits inside a unit cube or a unit sphere.
The result is a file whose dimensions read something like 1.0 × 0.74 × 0.53 regardless of what the object is. A chair, a rabbit and an aeroplane all come out the same size, which is the point.
Check the dimensions panel after opening. If everything is around 1, the mesh is normalised, and you will need to decide what real size you want and scale accordingly in your slicer. There is no information in the file to recover the original dimensions from — that was discarded when the dataset was built.
If you are opening the Stanford Bunny, Armadillo, Happy Buddha or a Princeton Shape Benchmark model, expect normalised coordinates. The Bunny in its original scan was about 7.5 cm long; almost every copy in circulation has been rescaled since.
Common OFF problems
"This is not a valid OFF file"
The first token is not a recognised OFF header word. Either the file is something else, or it has a byte-order mark or stray whitespace before the header that a strict reader rejects.
Counts do not match the data
A truncated download, or a file edited by hand where the header was not updated. The header is authoritative, so a reader stops where the header says to stop and the model comes out incomplete.
Faces look inside out
OFF has no normals in its plain form, so winding order determines which way a face points. Some research datasets are inconsistent about it. Shading will look patchy here, and slicers may report the mesh as non-manifold. MeshLab's "re-orient all faces coherently" fixes it.
The mesh has holes
Common in scanned research data — many benchmark meshes are open surfaces rather than solids, because the algorithms they were built for do not care. A slicer does. Repair in MeshLab or Blender before printing.
Converting OFF for actual use
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.
Since no slicer reads OFF, conversion is the point of opening one here.
- OFF to STL — the standard route to a printer. Universally readable afterwards.
- OFF to 3MF — smaller and unit-declared, if your slicer supports it.
- OFF to OBJ — to take the mesh into Blender for repair, scaling and cleanup, which research meshes often need.
- OFF to GLB — for putting a research mesh on a web page.
- OFF to PLY — for MeshLab and CloudCompare pipelines, which prefer PLY and can carry more per-vertex data afterwards.
Conversion preserves geometry exactly and does not repair anything. If the OFF had holes or inconsistent winding, so will the STL — those are mesh problems that need a repair tool, not a format change.
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 OFF file?
OFF stands for Object File Format. It is a minimal text format holding vertices and polygonal faces and essentially nothing else. It originated with the Geomview visualisation tool from the Geometry Center at the University of Minnesota, and became a staple of academic mesh processing.
Where do OFF files come from?
Mostly research and teaching. The Princeton Shape Benchmark, many computational geometry datasets, CGAL examples and countless university assignments use OFF. MeshLab, Meshmixer and Blender with an add-on will all read it, but few 3D printing tools will.
Can I 3D print an OFF file?
Not directly — no slicer reads OFF. Convert it to STL or 3MF with the 3D model converter — the Convert this file button takes it there — and open that instead. Check the dimensions first, because OFF has no unit declaration and research meshes are often normalised to fit in a unit cube.
What is a COFF file?
A variant where each vertex carries a colour after its coordinates, indicated by the header reading COFF rather than OFF. Other prefixes exist too — NOFF adds normals, STOFF adds texture coordinates, 4OFF uses four-dimensional coordinates. This page accepts these headers and reads the geometry from them.
Why is my OFF model tiny or enormous?
Research meshes are commonly normalised so the model fits inside a unit cube or a unit sphere, which makes algorithms comparable across datasets. Such a file reports dimensions around 1 × 1 × 1 and needs scaling by a factor of a hundred or so before printing.
Does OFF support quads?
Yes. Each face line begins with the number of vertices it has, so triangles, quads and larger polygons are all valid and frequently mixed in one file. This viewer triangulates them.