What is an OFF file?

An OFF file (Object File Format) is a plain-text 3D mesh: a list of vertices followed by the polygon faces that connect them, optionally with colours. It comes from the Geomview program and is common in geometry research. To open one, drop it on the 3D viewer: it opens in your browser, nothing is uploaded, and you can save it as STL, OBJ, PLY or GLB.

File extension.off
TypePolygon mesh (text)
Developed byGeomview project
EncodingASCII text; a binary variant exists
Colour / materialsYes – optional colours per vertex or per face (not shown in this viewer)
UnitsNone
Exact CAD geometryNo – flat polygons
MIME type—
Opens in 3dfilesYes – OFF viewer
Limits in 3dfilesFiles up to 1 GB open for viewing. Downloads are free up to 100 MB; larger ones need Pro. Text OFF files open, with or without per-vertex normals, colours and texture coordinates (NOFF, COFF, STOFF headers); polygons are split into triangles. The OFF keyword line is required. Binary OFF and 4-D or n-D files (4OFF, nOFF) are not read, and colours are not shown.

Open an OFF file

How to open an OFF file

  1. Drop it on the 3D viewer. It shows the mesh with its size, triangle count, surface area and volume. A file that has lost its extension is still recognised by its OFF header.
  2. Desktop: MeshLab and FreeCAD both import and export OFF.
  3. Convert it in the same viewer: STL or 3MF for printing, OBJ or PLY for other mesh tools, GLB for the web. Conversions between mesh formats are free without a daily limit.

About the OFF format

The Geomview manual defines OFF files as collections of planar polygons with possibly shared vertices, and .off as their conventional suffix. The format is about as small as a mesh format gets: a keyword, three counts, the vertex coordinates and the faces. Each face line starts with its number of corners, so triangles, quads and larger polygons can be mixed in one file.

A prefix on the keyword announces extra data per vertex: N for normals, C for colours, ST for texture coordinates, and 4 or n for vertices with four or any number of components. The third count, the number of edges, has to be present, but the manual says current software neither uses nor checks it.

OFF is the format of the Princeton ModelNet datasets, whose CAD models are distributed as OFF files, and it is read and written by CGAL (the text form only), MeshLab and FreeCAD.

What an OFF file looks like inside

OFF (a tetrahedron)

OFF
4 4 6
0 0 0
1 0 0
0 1 0
0 0 1
3 0 2 1
3 0 1 3
3 1 2 3
3 0 3 2

Line 2 gives the number of vertices, faces and edges. Four vertex lines follow, then four faces: each starts with its corner count (3) and lists vertex numbers, which count from 0. A face line may end with a colour: one colormap index, three or four integers from 0 to 255, or three or four numbers from 0 to 1.

Common problems

"This OFF file does not start with OFF"

The Geomview manual calls the keyword recommended but optional, and notes that many existing files lack it. This reader needs it: if your file begins directly with the three counts, add a first line that says OFF in a text editor and open it again.

A binary OFF will not open

Geomview also defines a binary form, marked by the word BINARY after the keyword. It is not read here. Save the mesh as text OFF, PLY or OBJ in the program that made it.

Colours are missing

Colours in an OFF file are not shown here; the shape converts normally.

Questions about OFF files

What does OFF stand for?

Object File Format, the name used in the Geomview manual that defines it.

Is OFF the same as OBJ?

No. Both are plain-text mesh formats, but OBJ puts a keyword on every line (v, f) and counts vertices from 1, while OFF states the counts first, then lists bare numbers and counts vertices from 0.

Can I 3D print an OFF file?

Yes, after converting it to STL or 3MF, which slicers read. OFF has no unit, so check the size after opening: the numbers are taken as they are.