3D model viewer: open STL, OBJ, glTF, FBX, PLY and 3MF files and measure them
Drop a 3D model to turn it, zoom in and save a picture, and to get the numbers a 3D print depends on: triangle count, width × depth × height, surface area, whether the mesh is watertight, and its volume. It opens STL (binary and text), OBJ with its .mtl and textures, GLB, .gltf with its .bin, FBX, PLY scans, 3MF print projects and COLLADA .dae, using three.js inside this tab. Animations in FBX, COLLADA and glTF files play from a clip list.
The model is opened on your device. It is never uploaded.
What it shows
- The model, lit and turnable. Drag to rotate, scroll or pinch to zoom, right-drag or two-finger drag to pan. The camera frames the whole model when it opens, and “Reset view” brings that back. A wireframe switch shows the triangles themselves; a grid under the model, labelled with its square size, gives a sense of scale.
- Triangle count: every mesh in the file, after quads and polygons are split into triangles, which is how slicers and game engines count.
- Size as width × depth × height of the axis-aligned bounding box, plus the raw X, Y and Z extents. STL is read as Z-up, the 3D-printing convention; glTF is Y-up by its specification; OBJ is assumed Y-up. If the model lies on its side, switch the up axis.
- Surface area, the sum of all triangle areas, with a cm² conversion. Useful for estimating paint, plating or coating.
- Watertight or not. A mesh is closed when every edge is shared by exactly two triangles. The page counts the edges that belong to only one triangle (holes) and those shared by three or more (non-manifold), and names both.
- Volume, only for a closed mesh, with the weight of a solid print in PLA. On an open mesh the page says “not watertight — N open edges — volume not shown” rather than print a number that means nothing.
- FBX, PLY, 3MF and COLLADA, the formats of game assets, 3D scans, 3D-print projects and older interchange. An FBX 7.x file opens in binary or text form with its materials, its embedded textures and its animations. A PLY shows each vertex's own colour, and a PLY with no faces (a raw scan) is drawn as a point cloud with its point count and size. A 3MF lists every object on the build plate with its triangle count and material, placed where the slicer put it. A .dae shows its materials and animations.
- Animations from FBX animation stacks, COLLADA clips and glTF animations, in a clip list below the view, with Play and Pause. The model loops while a clip plays; the rest pose stops it. The measurements are always those of the rest pose.
- Materials and textures: the material names the file uses, how many textures it uses, how many were embedded in the file, and which referenced texture files are missing.
- Compressed glTF opens too. A .glb or .gltf whose meshes are Draco-compressed (KHR_draco_mesh_compression, Blender's “Compression” export option) or meshopt-compressed (EXT_meshopt_compression, from gltfpack or gltf-transform) is decoded in this tab, and the file facts name the compression it used.
- Save picture (PNG): the current view at the canvas's full pixel size with a transparent background, made in this tab and saved by your browser's normal download.
What it cannot open
- FBX older than version 7.0 (2010), such as FBX 6.1 files from old asset packs. The page names the version and refuses the file. Blender or Autodesk's free FBX Converter can save it again as a current FBX.
- Texture files kept outside an FBX or .dae, unless you select them together with the model. Textures embedded in an FBX load on their own. A texture named by a path on someone else's computer (C:\Users\…\wood.png) is found only if you select a file with that name. Missing textures are listed, and the surface is drawn plain.
- 3MF slicer settings. Print profiles, supports, painted seams and per-object settings that PrusaSlicer, Bambu Studio or Cura store in a 3MF are not shown. You get the meshes, their colours and where they sit on the plate. Open the project in the slicer for the rest.
- .blend files open only in Blender, which exports glTF, FBX and the other formats that open here. viewhack's Blender page reads a .blend's version, thumbnail and contents without drawing it.
- STEP and IGES CAD files (.step, .stp, .iges, .igs). They describe exact curved surfaces, not triangles, and turning them into a mesh takes a CAD kernel. Export STL or 3MF from the CAD program instead; choose a fine tolerance if the curves must stay smooth.
- Anything a model fetches from the internet. If a .gltf, .obj or .mtl points at a file by web address, that file is not downloaded. The page lists it, with the reason. A missing texture leaves the surface plain. A missing .bin buffer holds the geometry itself, so the model cannot be drawn without it.
- Very large models. Opening and measuring takes roughly 400 bytes of memory per triangle at its peak. A 1-million-triangle model needs about 400 MB; a 5-million-triangle scan needs about 2 GB. Desktop browsers usually manage that; phones often run out of memory and reload the page.
- Textures in GPU formats. KTX2/Basis textures (KHR_texture_basisu) in glTF are not decoded. Animations play, but they cannot be edited, blended or exported.
- Editing and repair. This is a viewer. It finds holes but does not fill them, and it saves pictures, not models.
Useful to know about 3D model files
- STL has no units
- An STL stores bare numbers. Cura, PrusaSlicer and nearly every CAD export treat them as millimetres, so this page does too, with a switch for cm, m and inches. If a part you expect to be 40 mm long shows as 1.575, it was exported in inches (1.575 × 25.4 = 40). If it shows as 0.04, it was exported in metres.
- Binary versus ASCII STL
- A binary STL is an 80-byte header, a 4-byte triangle count and exactly 50 bytes per triangle, so a 1-million-triangle model is about 50 MB. That exact size is how viewhack recognises one, since the header can hold any text, even the word “solid”. An ASCII STL writes every number out as text and is usually about five times bigger for the same mesh. Neither stores colour in a standard way, or shares corners between triangles.
- Why watertight matters
- A slicer has to decide what is inside the part and what is outside. With a hole in the surface there is no inside, so it may fill the wrong regions, skip layers or refuse the file. Typical causes: a face deleted by accident, a model built from separate surfaces that only look joined, or parts that touch without sharing edges. The open-edge count shows how many edges are affected. Slicers' repair functions and Blender's 3D-Print Toolbox can close small holes.
- How the volume is worked out
- Each triangle and a fixed point form a tetrahedron whose volume is positive or negative depending on which way the triangle faces. On a closed surface the parts outside the solid cancel, and the sum is the exact enclosed volume, whatever the shape. On an open surface nothing cancels properly, which is why no number is shown. If the triangles are wound inconsistently (some face in, some out), the volume is withheld as well.
- Weight of a print
- The page multiplies the volume by 1.24 g/cm³, a typical PLA density. A 20 × 10 × 5 mm block is 1,000 mm³ = 1 cm³, about 1.24 g printed solid. Real prints use a few solid walls plus 15–20 % infill, so they weigh noticeably less; how much less depends on the wall count and the part's shape. For a quote, trust your slicer's estimate.
- FBX units and versions
- An FBX records its scale as UnitScaleFactor, in centimetres per file unit: 1 means centimetres (the FBX default, and Maya's), 0.1 means millimetres, 100 means metres. The unit selector starts from that value. The version is in the first 27 bytes of a binary FBX (7400 means FBX 7.4, 7500 and later use 64-bit offsets), and in an FBXVersion line in a text FBX.
- PLY: scans and colours
- A PLY header lists its elements in plain text, for example “element vertex 35947” and “element face 69451” for the Stanford bunny, followed by the data as text or as binary. Scanners often write only vertices, each with a colour: that is a point cloud, with no surface to measure for area or volume. PLY has no unit; scanners usually write metres.
- What is inside a 3MF
- A 3MF is a ZIP. Its main part, 3D/3dmodel.model, is XML: every object's vertices and triangles, materials with display colours, and a build list that places each object on the plate with a transform. Units are stated (millimetres unless it says otherwise), and Z is up. That is why slicers prefer it to STL. Slicers add their own settings files beside it.
- glTF, GLB and the .bin file
- A .gltf is JSON describing the scene. Its geometry sits in one or more .bin files, and its textures in image files, all named inside the JSON. A GLB packs all of it into one binary file. To open a .gltf here, select the .gltf together with its .bin and images in the file picker, or drop them all at once. Positions in glTF are metres, and Y points up.