STL and G-code viewer online
The model from every side, dimensions, holes in the mesh and how much filament it takes. G-code by layers, print time and filament use.
Drop a model or G-code here or click to chooseSTL, 3MF, OBJ and G-code. The file never goes to a server: everything is computed in your browser.Loading the tool…
Dimensions, units and print time
The viewer opens STL, 3MF, OBJ and G-code in the browser, and the file isn't sent to a server. For a model it shows the X×Y×Z dimensions from the extreme mesh points, the volume, the surface area and mesh errors. It estimates the filament mass like this: surface area times wall thickness, the rest of the volume times infill, and the sum times density (PLA 1.24 g/cm³, PETG 1.27, ABS 1.04). Supports and skirt are not included in the estimate.
Examples
- A 20 mm cube: volume 8 cm³, surface 24 cm². With 0.8 mm walls and 15 % infill that is 1.92 cm³ of walls and 0.91 cm³ of infill, about 3.5 g of PLA.
- The STL shows 2 × 2 × 2 mm: the model was saved in centimeters. After you choose "cm" in the "Units in file" field, the dimensions become 20 × 20 × 20 mm, and in a slicer you would scale such a model by 1000 %.
- A meter of 1.75 mm filament at a PLA density of 1.24 g/cm³ weighs about 3 g: cross-section 2.4 mm², volume 2.4 cm³.
Common mistakes
- People scale a model in inches by 2500 %: you need 2540 %, and a part 100 mm long comes out 1.6 mm short.
- People calculate mass from the model volume at solid infill: for a 20 mm cube that is 9.9 g of PLA, while with 0.8 mm walls and 15 % infill it is 3.5 g.
- People send a model with holes in the mesh to print: the slicer may close them differently from what was intended.
FAQ
- What units is STL in, and why is my model 10 times smaller?
- STL and OBJ store numbers without units, and slicers read them as millimeters. A model exported in centimeters comes out 10 times smaller, in inches 25.4 times, in meters 1000 times. If the model is smaller than 3 mm, the viewer warns you.
- How do I open an STL on a phone?
- Open this page in your phone's browser and choose the file: you rotate the model with a finger and zoom with a pinch. The viewer doesn't open models of more than 2 million triangles.
- What is 3MF?
- 3MF is a ZIP archive with an XML description of the model. It records units, several objects and their positions on the bed, and the viewer converts such a model to millimeters by itself. Bambu Studio, Orca and PrusaSlicer also save projects with print settings in 3MF.
- How do I find the print time and weight from G-code, and how accurate is the estimate?
- If the slicer wrote its own time (Cura, PrusaSlicer, Orca, Bambu Studio, Simplify3D), the viewer shows it first. It calculates its own time from the F speeds with acceleration and deceleration, taking acceleration from M204, or 1500 mm/s² without it; bed and nozzle heating, the firmware's axis speed limits and M220 are not included in the estimate. The weight is calculated from the filament length in the E commands, the diameter and the plastic's density.
- What do holes and flipped faces mean?
- A hole is an edge that has only one face: the mesh is not closed, and the volume and mass may be wrong. On a flipped face the back side points outward, and the viewer draws it in orange. Fix it with "Repair model" in PrusaSlicer, Orca or Bambu Studio, with the 3D Print Toolbox in Blender, or in Meshmixer.