STL Viewer
Open a model, turn it around, and read its size, volume and filament weight. The file is not uploaded.
https://flxcode.com/stl-viewer/
or drop it here, or paste it with Ctrl+V
Binary and text STL, and OBJ. Up to 2 million triangles. The file never leaves this device.
Drag to turn. Right drag or two fingers to move. Wheel or pinch to zoom.
About this model
STL files do not store units. Most slicers assume mm. Pick what your model was made in.
- File
- Triangles
- Size X
- Size Y
- Size Z (height)
- Volume
- Surface area
Filament estimate
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.
Problem or idea? Email us
How to use it
- Open an STL or OBJ file, drop it on the page, or press Try a sample model.
- Drag to turn it. Right drag, or two fingers, moves it. The wheel or a pinch zooms. Arrow keys turn it and + and - zoom when the picture has focus.
- Pick the unit your model was made in. Check the size, the volume and the weight under the picture.
- Pick a Look, a Finish and a Light if you want it to look like a real print. Auto chooses for your device.
- Read the warning if there is one. Press Save picture to get a PNG. In Studio and Photo it is drawn at twice the size of the view, or four times on a fast graphics card.
The looks
Basic is the first look and runs on any browser with WebGL: two lights, flat or smooth shading, optional wireframe. Studio and Photo use WebGL 2 on a second canvas. Shading is physically based: the GGX highlight (Walter and others, 2007), Schlick Fresnel, Smith shadowing, and the split sum lookup for reflected room light (Karis, Unreal Engine 4, 2013). The room is made in code when the page loads: soft boxes and a gradient, turned into a cube map with blurred copies for rough surfaces. The key light has a shadow map with a soft edge that gets wider with distance from the part, so it is sharp where the model touches the floor. Colours go through the ACES curve (Narkowicz) to sRGB.
Photo adds darker corners from screen space ambient occlusion, and while the view is still it averages about 28 frames with small shifts of the camera and the light, which smooths edges and shadows. Move the view and it drops back to the live picture. Auto checks WebGL 2, float render targets, texture size, the size of the model (Basic above 3 million triangles) and times a test frame. If the live frame rate falls below about 30 it steps down one look. The Finish and Light choices are kept in this browser, as three words, and nothing about the model.
How the numbers are worked out
The volume is the sum of signed tetrahedra: for every triangle, one sixth of the triple product of its three corners. For a closed model that equals the volume inside. The surface area is the sum of the triangle areas. The size is the box around all corners.
Example from the sample model: a 20 mm cube is 8,000 mm3. With an 8 mm round hole through it (drawn with 48 sides) the tool reports 6,997.6 mm3 and a surface area of 2,802.1 mm2. As PLA that is 8.7 g solid.
Watertight is checked by joining corners that sit at the same point and counting how many triangles use each edge. Every edge should be used twice. The page shows how many are not.
Filament weight
Weight is volume times density. The page uses 1.24 g/cm3 for PLA, 1.27 for PETG and 1.04 for ABS, typical values from maker datasheets: PETG 1.27 from the Prusament PETG technical data sheet, ABS 1.04 from the Polymaker PolyLite ABS data sheet (V5.6), and PLA 1.24 as a typical PLA value (brands list about 1.17 to 1.25). They are typical values, so check your spool's datasheet. Your brand may differ, PLA by about 6%.
The infill line is only the inside of the part. Walls, top and bottom layers and supports are not counted in it. A slicer knows your layer settings, so use its number for a real print.
Limits
- STL (binary and text) and OBJ. Up to 2 million triangles and 300 MB. A one million triangle file loads in a few seconds, and the page stays usable while it does.
- Colours, textures and materials in the file are ignored. The model is drawn in one colour you can change.
- OBJ faces with more than three corners are split into triangles. Only the shape is read.
- The drawing needs WebGL. If your browser has it turned off you still get the numbers. Studio and Photo need WebGL 2, so older browsers and phones without it stay on Basic.
- Wireframe is drawn in the Basic look, so turning it on switches the picture to Basic until you turn it off.
- The shadow, the light and the finish are a picture of how it could look. They do not show how a print comes out, and they are not a slicer preview.
- This is a viewer. It does not repair, slice or edit a model.
How it works and privacy
A background script in this tab reads the file, so the page does not freeze, and sends the triangles to your graphics card. The format is described by the Library of Congress: an 80 byte header, a count, then 50 bytes per triangle. Some binary files begin with the word solid, so the page checks the size first and only then the text.
Nothing you open is uploaded or stored. We count events without cookies, such as "model opened" (details). To check how big a shape is by hand use the volume calculator.
FAQ
How big a model can it open?
Up to 2 million triangles and 300 MB. A file with one million triangles (about 50 MB as binary STL) is read in the background in a few seconds, so the page keeps working. Very large text files take longer than binary ones.
What units is an STL file in?
None. The format stores numbers without a unit. Slicers usually assume millimetres. If your model looks 25 times too small or too large, it was probably made in inches, so switch the unit under About this model.
Why does it say my mesh is not watertight?
A closed model has every edge shared by exactly two triangles. If some edges belong to one triangle, there is a hole. If they belong to three or more, the surface touches itself. The volume and weight are only right for closed models. Most slicers can repair small holes.
How exact is the filament weight?
It is volume times the density of the material, so it is the weight of a solid part. At 20% infill the inside weighs about a fifth of that, but walls and the top and bottom layers are solid, so a slicer shows more. The densities are typical values (sources in the Filament weight section). Brands differ, PLA by about 6%, so check the datasheet of your spool.
Why does Auto pick Basic on my device?
Studio and Photo need WebGL 2, float render targets and a real graphics card. Auto also times a test frame, and it stays on Basic for a very large model or when the test is slow. If drawing gets slow while you turn the model it steps down one look and tells you. You can still pick Studio or Photo yourself.
Can it open OBJ, 3MF or STEP files?
It opens STL (binary and text) and OBJ. It does not open 3MF, STEP, FBX or GLB.
More from FLXCode
- Image to DXF ConverterTrace a PNG, JPG or WebP into a DXF with closed outlines at a real size in mm or inches. Nothing is uploaded.
- Volume CalculatorVolume of a cube, box, cylinder, cone, sphere, hemisphere, pyramid, capsule or tube, with liters and gallons.
- Cylinder Volume CalculatorVolume of a cylinder or pipe in cubic units, liters and US gallons. Radius or diameter, formula shown.
- G-code ViewerOpen a G-code file, step through the layers, see filament, size and print time. The file stays on your device.