Why is my STL file so big after converting STEP to STL?
This question keeps arriving when people get a 100 kilobyte STL out of a kilobyte STEP file and wonder what happened. Every number below was measured on the machine that wrote it and is re-checked by npm test. Nothing here is a rule of thumb.
The short answer
An STL file size is exactly 84 bytes of fixed header plus 50 bytes per triangle. The entire size is determined by the number of triangles inside it. That number depends only on two things: how much curved geometry your STEP file contains, and what quality setting you chose when converting.
So if your STL grew 7.5 times between Draft and Fine settings on the same STEP file, that is not a bug, not a compressor malfunction, and not your file getting corrupted. It is the quality dial working normally. A flat cube will stay 12 triangles = 684 bytes at every quality setting forever, because flat faces do not need any approximation. A curved surface can be three times denser, five times denser, or seven and a half times denser depending on how tight you set the tolerance.
The exact formula that explains it
A binary STL file has two parts that affect its total size:
- An 84-byte header at the start, which holds an 80-byte comment and a 4-byte triangle count. Nothing you do changes this number, so you can treat it as fixed overhead.
- Exactly 50 bytes per triangle after that, which holds the normal vector (12 bytes) plus three vertex positions (36 bytes) plus a 2-byte attribute slot. So every triangle adds exactly 50 bytes to the file.
That gives you the complete, exact identity: file size = 84 + 50 × triangle count. There are no other bytes in a binary STL. If you know how many triangles you have, you know the file size. If you know the file size, you can work out the triangle count. This is the first of the six checks on the verification page.
Binary STL only (84 + 50 × triangles). ASCII STL does not follow this identity. The arithmetic runs in this tab — nothing is sent anywhere.
The only thing that changes it: surface curvature
The quality setting (Draft / Normal / Fine) controls how tightly the converter tessellates curved geometry into flat triangles. It has no effect whatsoever on flat geometry, because a flat face is already a triangle — it needs no approximation, and the converter will always spend exactly two triangles on it, whatever the setting.
This is measured on our own test files, with no room for interpretation:
| Part | Draft | Normal | Fine | Flat or curved? |
|---|---|---|---|---|
| 10 mm flat cube | 12 / 684 B | 12 / 684 B | 12 / 684 B | All flat |
| Rounded cube | 40 / 2,084 B | 56 / 2,884 B | 140 / 7,084 B | Mixed |
| Conical surface | 286 / 14,384 B | 516 / 25,884 B | 2,142 / 107,184 B | All curved |
The flat cube is identical across all three rows: 12 triangles, 684 bytes — that same 12-triangle cube forms a closed shell of 18 edges, the geometry whose edge-count check is on the verify page. The rounded cube (which mixes flat faces with curved edges) grows by a factor of 3.5 from Draft to Fine — the editing cost of those same 40 / 56 / 140 triangles is expanded on the STL editing-costs page. The cone (all curved) grows by 7.5× from Draft to Fine. The quality dial's only job is to decide how many triangles those curved surfaces need.
Math.round(bytes × 0.006) from a measured byte count.Why the STEP file itself was so small
A STEP file is a text file that stores exact geometry: a cylinder is a radius, a height and a position, written once, not a hundred small triangles. So its size follows how complex the CAD data is — how many distinct surfaces it describes — not how finely you want to tessellate them for 3D printing or viewing. A STEP file holding a flat cube is a few hundred bytes; the STL output is 684 bytes. A STEP file holding our cone is a few kilobytes of text holding a conical surface parameterised by a half-angle and a radius; the STL output is 107,184 bytes of flat triangles. The STEP file stores the question; the STL file stores the answer.
ASCII vs binary, and what zipping does
Two format facts sit beside the size identity. First, the same triangles written as ASCII text cost 3.3 to 4.0× the binary bytes, measured across all 27 sample-and-quality combinations in the test set. Second, both formats compress — and on every file big enough for the difference to matter, gzipped ASCII stays the bigger of the two. Running gzip over each file (Node's zlib, the same routine npm test re-runs) measures:
| File · quality | Binary STL | gzip | ASCII STL | gzip |
|---|---|---|---|---|
| Flat cube · Normal | 684 B | 214 B | 2,241 B | 210 B |
| Rounded cube · Normal | 2,884 B | 656 B | 10,162 B | 785 B |
| Conical surface · Fine | 107,184 B | 29,754 B | 407,895 B | 33,941 B |
| 18-part assembly · Normal | 368,684 B | 98,541 B | 1,392,852 B | 136,863 B |
Read the two compression columns honestly. ASCII text shrinks ten- to thirteen-fold because its digits repeat; binary shrinks only about three-and-a-half-fold because its 50-byte records are already dense floats. On the rounded cube, the cone and the assembly, even after gzip the ordering survives: the gzipped ASCII cone at Fine is 33,941 bytes against 29,754 for the gzipped binary — compression narrows the gap and keeps the rank. The one exception is the 12-triangle cube, where 210 bytes of gzipped ASCII noses under 214 bytes of gzipped binary — a tie at that scale, not a win, and a reminder that gzip has its own overhead and floor. And a slicer reads a plain .stl directly, while a file inside a .zip is one more step for an output whose size the 84 + 50 × triangles identity already predicts exactly. Zip an STL to email it; unzip it before it touches a slicer.
Math.round(bytes × 0.00045) from a measured byte count. The STEP source (433,606 bytes) stores exact surfaces, not triangles. The binary STL of that file (368,684 bytes = 84 + 50 × 7,372) is about 15% smaller than the STEP text it came from. The ASCII STL (1,392,852 bytes) holds the identical 7,372 triangles and costs 3.8× the binary — inside the 3.3 to 4.0× range measured across all 27 combinations above.What actually makes the file smaller
Since the size is 84 + 50 × triangles, there is exactly one lever here: fewer triangles — and the honest way to get them is to re-convert the same STEP file at a coarser quality preset. The rounded cube measured above runs 40 / 56 / 140 triangles across Draft / Normal / Fine — 2,084 / 2,884 / 7,084 bytes by the identity. Going from Fine back to Draft hands back 5,000 bytes on that part, at the cost of the surface following the true curvature less closely. On the whole 18-part assembly the same trade is larger: Fine writes 21,116 triangles and a 1,055,884-byte STL, Draft writes 4,900 triangles and 245,084 bytes, so dropping from Fine to Draft hands back 810,800 bytes on that one model.
What the coarser preset costs you is measurable too. On the conical surface, the measured chordal deviation — how far the flat triangles stray from the true cone — is 0.174179 mm at Draft, 0.057284 mm at Normal and 0.009414 mm at Fine (the method is check 6 on the verify page). So “smaller” always means “coarser”: pick the preset whose deviation your slicer and your printer can live with, and no coarser than that.
One honest boundary: this converter does not decimate. Triangle decimation deletes or collapses triangles after the fact and moves vertices — a separate mesh-editing step with its own tolerances and its own risks (holes, flipped normals), done in mesh software, not here. The editing-costs page covers what mesh edits really cost. This site triangulates the exact surfaces your STEP file declares, at the preset you chose — nothing more, nothing less.
Reducing a finished mesh has been sold as a product line of its own: an October 2006 desktop module list puts a “large STL reducer” among the optional lines beside a base package that covered STL files. The mesh-era page reads that module list. The cheaper answer here is to never ship the triangles: convert at a coarser preset and the count is right the first time.
For transport rather than geometry, zipping is the second honest lever: gzip takes the 18-part assembly's binary STL from 368,684 to 98,541 bytes without touching a single triangle. Unzip before it reaches a slicer — section 4 has the full before/after table.
A third lever is the writer, and it has nothing to do with the geometry: the same triangles written as ASCII instead of binary come out 3.276× to 4.030× the bytes across this project’s 27 sample-and-preset conversions — the flat cube is 684 bytes as binary and 2,241 bytes as ASCII — because ASCII spells every coordinate out as decimal text while binary copies twelve 32-bit numbers per triangle. So when a file arrives larger than the model should need, check which writer produced it before blaming the quality setting; if whatever reads it accepts binary, choosing binary is size for free at the same triangle count. The binary-or-ASCII page measures both files from one conversion run.
The whole thing in one screen
| File size formula | Binary STL = 84 bytes of header + 50 bytes per triangle. No other bytes. |
|---|---|
| Flat cube, any setting | 12 triangles = 684 bytes. Quality setting cannot change this. |
| Curved cone, Draft to Fine | 286 → 516 → 2,142 triangles. File size follows exactly. |
| What changes the size | Curved geometry and the quality setting. Flat geometry never changes. |
| What does not change it | The size of the STEP file you started with — that stores exact geometry, not triangles. |
| How to make it smaller | Re-convert at a coarser preset (fewer triangles) or zip it for transport. This converter does not decimate an existing mesh. |
| What zipping does | Shrinks both formats; on every non-trivial sample the gzipped ASCII stays bigger — the cone at Fine compresses to 29,754 B binary against 33,941 B ASCII (the 12-triangle cube ties, 214 B vs 210 B). |
| Why yours grew | You converted a curved part and moved up the quality dial. The growth is the dial working. |
Where these numbers come from
Published · Last updated
- 84 + 50 × triangles — the published binary STL record layout, cross-checked against the reference STL shipped with the engine vendor's own test set.
- 12 / 40 / 56 / 140 / 286 / 516 / 2,142 triangles — produced by running the shipped engine (occt-import-js 0.0.23, a WebAssembly build of OpenCASCADE) in Node.js over the project's own test files at Draft, Normal and Fine.
npm testre-runs every count and fails on a mismatch. - Conical surface file sizes: 14,384 / 25,884 / 107,184 bytes — 84 + 50 × 286, 516, 2142 respectively, computed by the same test suite that measures the triangle counts.
- gzip column: 214 / 656 / 29,754 / 98,541 B binary and 210 / 785 / 33,941 / 136,863 B ASCII — measured by the test suite with Node's zlib
gzipSyncat its default level over the exact STL payloads the engine writes, re-run on every test pass. - Chordal deviation 0.174179 / 0.057284 / 0.009414 mm (cone, Draft / Normal / Fine) — measured by the test suite's analytic-baseline method on the conical sample; the full method is check 6 on the verification page.
If you want to run these checks on your own conversion, the verification page has all six checks, starting with recovering the triangle count from the file size. The faceted STEP page covers why flat faces are the real health check, and the STEP to STL converter reports the triangle count, bounding box and piece count for your own file after every run. Every byte and triangle count quoted on this page belongs to the measured table on the front page, re-run by npm test.
Sponsored link: Creality’s official store (3D printers, scanners, filament and parts) is an affiliate partner — clicking it may earn this site a commission. It changes nothing about the converter; see what sponsored links mean here.