Binary STL cube (12 triangles)

A unit cube as a binary STL file: an 80-byte header, a triangle count and 12 triangles of 50 bytes each, 684 bytes in all.

Download

sample-cube-binary.stl

684 B684 bytes

Download STL sample

Direct download. No sign-up and no waiting.

Type
model/stl
SHA-256
1ec708939d3a75ab6784be36886851509d001871aa9801ced9941c5b5dcfb3ea
Direct URL
https://www.sampletestfiles.com/downloads/samples/sample-cube-binary.stl

Why test with this file

The smallest useful solid for testing a binary STL reader. Its volume, surface area and bounding box are known exactly, so the numbers your software reports can be checked by hand.

Triangles12
EncodingBinary STL (little-endian)
ShapeCube with edges of 1 unit, from (0, 0, 0) to (1, 1, 1)
Volume1 cubic unit
Surface area6 square units
WatertightYes, with outward-facing normals
Attribute bytesZero

What to check

After your application has processed sample-cube-binary.stl, confirm that:

First bytes of the file

The first 64 bytes of sample-cube-binary.stl as a hex dump: offset, bytes, then the same bytes as text.

00000000  42 69 6e 61 72 79 20 53 54 4c 20 73 61 6d 70 6c  |Binary STL sampl|
00000010  65 3a 20 61 20 75 6e 69 74 20 63 75 62 65 20 6f  |e: a unit cube o|
00000020  66 20 31 32 20 74 72 69 61 6e 67 6c 65 73 2e 20  |f 12 triangles. |
00000030  53 61 6d 70 6c 65 54 65 73 74 46 69 6c 65 73 20  |SampleTestFiles |

Preview

This STL file is binary, so there is no text to show. Download it and open it in an application that reads STL.

Technical details

File namesample-cube-binary.stl
FormatSTL (STL 3D model (stereolithography))
Extension.stl
MIME typemodel/stl
Size684 bytes (684 B)
KindBinary
SHA-2561ec708939d3a75ab6784be36886851509d001871aa9801ced9941c5b5dcfb3ea
Created2026-10-10
ValidationExact size, signature bytes and structure checked when the file was generated
PreviewNot available for this file; details only
SourceGenerated for this site; not copied from elsewhere
LicenceFree to use, modify and redistribute (terms)
Category3D Models

Validated for expected format and integrity. As with any download, scan the file with your own security tools before opening it. How files are made and checked

Download from the command line and verify

Fetch the file with curl, then compare its checksum with the SHA-256 value above.

curl -o sample-cube-binary.stl 'https://www.sampletestfiles.com/downloads/samples/sample-cube-binary.stl'
sha256sum sample-cube-binary.stl     # Linux
shasum -a 256 sample-cube-binary.stl # macOS

On Windows, run Get-FileHash sample-cube-binary.stl -Algorithm SHA256 in PowerShell. A matching value proves that the download is complete and unaltered.

About STL

The standard file for 3D printing: a bare list of triangles, as text or as binary.

STL format reference

Where it fits

Related files

All curated sample files