Skip to content

STL 3D viewer, mesh checker, and volume calculator

Orbit binary and ASCII STL 3D print files offline, verify watertight manifold edges, and compute exact dimensions, volume, surface area, and filament weight.

Your files are open only in this tab. Nothing is uploaded.

STL mesh input

Inspect Binary and ASCII STL geometry, watertight manifold edges, volume, and print weight.

Drop an STL 3D model here

CAD parts never leave your device.

How to use STL viewer & volume calculator

  1. Open an STL file or test the sample bracket. Drop a binary or ASCII .stl mesh into Choose STL, or click Load sample bracket STL to inspect a watertight 40 x 25 x 30 mm mounting bracket.
  2. Orbit the 3D canvas and switch shading overlays. Drag on the viewport to rotate, adjust Zoom between 0.40x and 3.00x, jump between Iso, Top, Front, and Right cameras, and inspect Shaded, Wireframe, or Normals modes.
  3. Verify mesh diagnostics and adjust estimated infill density. Confirm zero open edges or non-manifold seams, then drag Estimated infill density from 5 to 100 percent to compare filament weight across seven plastics.
  4. Save a PNG snapshot or export CSV and JSON reports. Click Save PNG snapshot for documentation images, or download CSV and JSON reports containing full bounding box and mass readouts.

Your files are processed on this device and never uploaded. They stay private, and there's nothing to delete afterwards.

How does the viewer check watertight STL meshes?

Edge validation checks whether every triangle border pairs with exactly one neighbor across quantized coordinates rounded to 0.1 micron precision. Modeled on the Library of Congress Binary STL format profile, the STL viewer inspects binary and ASCII files offline before running STL volume calculator math across every facet.

Instead of uploading engineering assemblies to cloud platforms, local mesh verification runs directly inside a browser Web Worker. When downloaded Thingiverse or client model packs arrive compressed, you can unpack compressed STL model archives locally before checking manifold health prior to slicing.

Important: A single open edge (count === 1) breaks watertight enclosure for liquid simulation and confuses FFF slicers, while three-face non-manifold seams create stray internal walls during infill planning.

Three mesh diagnostics summarize structural integrity immediately upon loading. Inspect these values carefully to catch boundary leaks or broken polygons before exporting G-code.

  • Open edges: Boundary loops touched by one single triangle face rather than a closed pair, indicating unsealed holes in the mesh surface.
  • Non-manifold edges: Internal T-junctions or overlapping shells shared by three or more triangles along the identical quantized vertex edge.
  • Degenerate faces: Broken facets containing non-finite floating coordinates or doubled cross-product area below 1e-10.

Parsing binary and ASCII STL geometry in a worker

Browser parsing accepts .stl files starting from 48 bytes minimum and handles both compact binary structures and verbose ASCII text exports cleanly. Fabrication teams preparing multi-part assemblies alongside laser-cut aluminum plates frequently need to convert companion 2D brackets from SVG to DXF during mechanical packaging.

Binary 84-byte headers versus ASCII text syntax

Binary validation reads the initial 80 bytes header plus a 4-byte unsigned integer triangle count (84 bytes total) and verifies that 84 + triCount * 50 equals total file length under a 25,000,000 triangle safety cap. Each 50 bytes facet record holds three normal floats, nine vertex coordinate floats (32 bits IEEE 754 each), and a two-byte attribute pad.

When byte length does not match binary rules, the worker falls back to ASCII parsing defined by the Library of Congress ASCII STL specification. Text parsing tokenizes solid, facet normal, vertex, and endsolid blocks sequentially without failing on trailing whitespace variations.

Signed tetrahedron volume and surface area math

Volume estimation sums signed tetrahedron determinants (|det([v0, v1, v2])| / 6) derived from the divergence theorem across every mesh triangle (volumeMm3 and volumeCm3). Surface area accumulates 0.5 * |e1 x e2| triangle cross-product magnitudes independently in square millimeters and square centimeters.

Because calculations evaluate raw float vertex triples directly inside the worker thread, bounding boxes report exact millimeter and inch dimensions across X, Y, and Z axes. Clicking Load sample bracket STL proves these formulas against a conformal L-bracket measuring 40 x 25 x 30 mm (640 mm2 profile extruded 25 mm deep) with exact volume 16.00 cm3 and zero open edges.

Decimated 24,000-triangle viewport and camera views

Dense photogrammetry scans containing hundreds of thousands of triangles can stall software rasterizers if drawn raw on every pointer drag frame. Whenever meshes exceed MAX_PREVIEW_TRIANGLES (24,000 triangles), the viewer strides triangles uniformly into a fluid interactive display array while keeping 100% precision in diagnostic totals.

  • Instant camera presets: Click Iso, Top, Front, or Right to snap yaw and pitch immediately, or drag across the viewport freely (-89 to 89 pitch clamp).
  • Zoom control: Scroll with a mouse wheel or drag the Zoom range slider smoothly from 0.40x to 3.00x.

Filament weight breakdown across seven print materials

Binary float decoding executes via typed MDN DataView little-endian reference calls so browser workers match desktop slicer coordinates across Intel and Apple Silicon machines. Geospatial engineers working with offline coordinate datasets can apply similar client-side rigor during offline geographic track inspection without map tile leaks.

Dragging Estimated infill density from 5% to 100% adjusts effective material volume (0.28 + 0.72 * infill) across seven materials (20% default reflects 0.424 of solid mass, matching typical two-wall FFF parts). Values below show exact weights calculated for the 16.00 cm3 sample L-bracket.

Print material Density (g/cm3) Sample bracket at 20% infill Solid print at 100% infill Common workshop use
PLA 1.24 8.41 g 19.84 g Rapid architectural models and low-stress jigs
PETG 1.27 8.62 g 20.32 g Chemical-resistant enclosures and snap brackets
ABS 1.04 7.06 g 16.64 g Heat-tolerant automotive clips and prototypes
ASA 1.07 7.26 g 17.12 g UV-stable outdoor housings and mounts
TPU 95A 1.21 8.21 g 19.36 g Flexible gaskets, bumpers, and vibration feet
Standard Resin 1.15 7.80 g 18.40 g High-detail SLA miniatures and smooth dental molds
PA12 Nylon 1.01 6.85 g 16.16 g Tough functional gears and sliding latches

Shading overlays, snapshots, and offline mesh reports

Diagnostic rendering draws z-sorted triangles directly onto a 640 px by 420 px <canvas> powered by the MDN CanvasRenderingContext2D specification. Keeping geometry rasterization local lets engineers verify wall normals and save documentation images offline.

Shaded, Wireframe, and Normals inspection views

Three toggle buttons switch visual overlays immediately without re-parsing triangle buffers in worker memory. Switching display passes highlights curved silhouettes, polygon density, or flipped faces clearly.

  • Shaded: Applies directional Lambertian lighting across faces so smooth fillets, boss mounts, and chamfer transitions stand out clearly.
  • Wireframe: Strokes individual triangle edges to reveal sparse curved tessellation, pinched corner fans, or uneven mesh density before export.
  • Normals: Colors facets by local 3D surface normal orientation (RGB mapped from XYZ) so flipped inside-out triangles appear visually distinct from surrounding walls.

Saving PNG snapshots alongside CSV and JSON audits

Clicking Save PNG snapshot captures the active 640 px canvas framing for build logs or assembly guides. Choosing Download CSV report or Download JSON report writes bounding box measurements, triangle counts, open/non-manifold edge totals, surface area, volume, and seven material mass calculations to disk.

Accompanying specification datasheets or supplier engineering manuals sometimes arrive bloated before sharing with fabrication vendors. Switch to browser PDF byte inspection to pinpoint embedded fonts and heavy raster streams locally.

Questions

What is the difference between binary and ASCII STL files?

Binary STL files open with an 80-byte text header and a 4-byte unsigned triangle count followed by fixed 50-byte little-endian records, keeping files compact and fast to parse. ASCII STL files store human-readable solid, facet normal, and vertex lines that remain easy to inspect but occupy roughly five times more disk space.

How does the infill slider estimate 3D print filament weight?

Instead of multiplying solid mesh volume directly, the calculator models FFF slicer shells plus interior infill using an effective volume ratio of 0.28 plus 0.72 times your chosen percentage. Setting Estimated infill density to 99 or 100 percent calculates 100 percent solid plastic mass across all seven materials.

Does viewport decimation change volume or surface area on large STL models?

No geometric metrics change when a mesh exceeds 24,000 triangles. Preview decimation reduces only the sub-sampled triangle array drawn on the 2D orbit canvas so mouse rotation remains responsive, while signed tetrahedron volume, surface area, and edge checks always evaluate 100 percent of input triangles.

What causes open edges, non-manifold edges, and degenerate faces in STL meshes?

Open edges occur when only one triangle borders a boundary gap instead of two adjacent faces forming a watertight shell. Non-manifold edges indicate three or more triangles sharing one seam, while degenerate triangles occur when collinear vertices collapse facet area near zero.

Can confidential mechanical CAD prototypes be inspected completely offline?

Yes, every parser, edge validator, volume determinant, and 3D renderer executes locally inside browser worker threads. No CAD geometry, triangle counts, or engineering filenames ever cross the network.

Updated