Guide
Opening STL and OBJ models: checking size, volume and filament before you print
Before you slice a model it helps to know what you have: how big it is, whether it is closed, how much plastic it will use. Downloading a part from a library and discovering at the printer that it is 8 mm long or 800 mm long is a common waste of an afternoon. This viewer opens STL and OBJ files in your browser, shows the model in 3D and measures it, without installing software and without uploading the file anywhere.
What an STL file is
STL, from stereolithography, describes a surface as a list of triangles. In the binary form there is an 80-byte header, a four-byte triangle count and then 50 bytes for each triangle: a normal, three corner points as 32-bit floats and two spare bytes. The ASCII form writes the same data as text, with every triangle as a facet block. The viewer tells them apart by checking whether the file size equals 84 plus 50 times the triangle count. OBJ files list vertices and faces in text, and faces with four or more corners are cut into triangles.
Looking at the model
The model is drawn on a grid with the Z axis pointing up, as slicers do. Drag to turn it, scroll or pinch to zoom, press Reset view to start again and switch on Wireframe to see the triangles. The picture is made with three.js using your device’s graphics, and flat shading shows the facets so that a coarse model looks coarse. If a browser cannot start WebGL the measurements still work.
What the numbers mean
The bounding box gives the width, depth and height in millimetres once you choose the file units. The volume comes from the divergence theorem: each triangle with the origin forms a small tetrahedron whose signed volume is one sixth of a triple product, and the sum is the volume enclosed. That is exact for a watertight model with consistent winding and meaningless for a surface with holes. The surface area is the sum of the triangle areas.
A worked example
The Sample button builds an L-shaped bracket by extruding an L profile 30 mm deep: a 40 mm base 5 mm thick and an upright 5 mm thick rising to 25 mm. It has 20 triangles and measures 40 × 30 × 25 mm. The profile area is 40 × 5 + 5 × 20 = 300 mm², so the volume is 300 × 30 = 9,000 mm³, shown as 9 cm³, and the surface area is 4,500 mm², shown as 45 cm². Solid PLA at 1.24 g/cm³ weighs 11.16 g.
Estimating print weight
Printed parts are not solid. The page assumes two perimeters of 0.4 mm, a shell thickness of 0.8 mm, and fills the interior at the infill percentage you set, then multiplies by the density of the filament you choose. For the bracket at 20% infill that is 3,600 mm³ of shell plus 20% of the remaining 5,400 mm³, about 4.68 cm³ or 5.8 g. Top and bottom layers, supports, brims and purge are not counted, so treat the figure as a rough guide and use your slicer for the real one.
Limits
The viewer does not repair models, check wall thickness, find overhangs or slice. A mesh with holes, flipped triangles or internal faces gives a wrong volume. Models with more than three million triangles are refused because the browser would run out of memory. Colour and texture information in OBJ files is ignored.
Related tools
- 3D Print Cost Calculator turns a filament weight into a price.
- G-Code Viewer shows the sliced layers of the same part.
- Steps per mm Calculator helps keep the printer’s dimensions accurate.
- Image Converter prepares pictures for lithophanes and textures.
Checked against the current version of the STL & OBJ Viewer on .

