STEP→STL Your file stays in this tab · nothing is uploaded

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:

  1. 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.
  2. 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 anatomy of a binary STL: one 84-byte header followed by 50-byte triangle records, drawn at 1 pixel = 1 byte A strip drawn at 1 pixel = 1 byte: an 84-pixel teal header block, then one 50-byte record split into a 12-pixel normal segment, a 36-pixel vertex segment and a 2-pixel attribute segment, with a note that the record repeats once per triangle. One record's anatomy, drawn at 1 px = 1 byte A binary STL is one 84-byte header, then exactly 50 bytes per triangle. … this 50-byte record repeats once per triangle the 84-byte header: an 80-byte comment plus the 4-byte triangle count normal vector: 12 bytes three vertices: 36 bytes, 12 each attribute byte count: 2 bytes
One record, drawn at 1 px = 1 byte. The 84-byte header sits ahead of every triangle, and each triangle costs 12 + 36 + 2 = 50 bytes — so 84 + 50 × 516 = 25,884 bytes, the cone at Normal measured in the table below, and the same arithmetic closes on every STL this site ships.

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:

Triangle count and file size, by part and quality setting
PartDraftNormalFineFlat or curved?
10 mm flat cube12 / 684 B12 / 684 B12 / 684 BAll flat
Rounded cube40 / 2,084 B56 / 2,884 B140 / 7,084 BMixed
Conical surface286 / 14,384 B516 / 25,884 B2,142 / 107,184 BAll 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.

File sizes drawn to scale: the flat cube is barely a sliver, the cone at Fine dominates Four horizontal bars drawn at 0.006 pixels per byte. The flat cube at 684 bytes draws 4 pixels and is barely visible. The conical surface draws 86 pixels at Draft (14,384 bytes), 155 pixels at Normal (25,884 bytes) and 643 pixels at Fine (107,184 bytes), filling almost the whole width of the drawing. 84 + 50 × triangles, drawn at 0.006 px per byte Flat cube · 12 tris · 684 B Cone Draft · 286 tris · 14,384 B Cone Normal · 516 tris · 25,884 B Cone Fine · 2,142 tris · 107,184 B
The identity, drawn to scale. One pixel row per part, all four bars on the same 0.006 px per byte scale (6 px per KB). The flat cube's 684 bytes is a 4-pixel sliver — the setting costs it nothing at any quality. The cone's bars grow 86 → 155 → 643 pixels because its triangle count grows 286 → 516 → 2,142, and each triangle always costs the same 50 bytes on top of the fixed 84-byte header. Nothing here is estimated; every bar length is 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:

Binary and ASCII STL sizes before and after gzip, measured with Node's zlib
File · qualityBinary STLgzipASCII STLgzip
Flat cube · Normal684 B214 B2,241 B210 B
Rounded cube · Normal2,884 B656 B10,162 B785 B
Conical surface · Fine107,184 B29,754 B407,895 B33,941 B
18-part assembly · Normal368,684 B98,541 B1,392,852 B136,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.

The same 18-part assembly in three containers, drawn to scale: the STEP source, the binary STL and the ASCII STL Three horizontal bars drawn at 0.00045 pixels per byte. The STEP source draws 195 pixels (433,606 bytes), the binary STL draws 166 pixels (368,684 bytes, 7,372 triangles) and the ASCII STL draws 627 pixels (1,392,852 bytes). One assembly, three containers, drawn at 0.00045 px per byte STEP source · exact surfaces · 433,606 B Binary STL · Normal · 7,372 tris · 368,684 B ASCII STL · same triangles · 1,392,852 B
Three containers for one assembly, drawn to scale. All three bars are the same 18-part assembly at Normal on a single 0.00045 px per byte scale (0.45 px per KB); every bar length is 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

What an STL file size means, by observation
File size formulaBinary STL = 84 bytes of header + 50 bytes per triangle. No other bytes.
Flat cube, any setting12 triangles = 684 bytes. Quality setting cannot change this.
Curved cone, Draft to Fine286 → 516 → 2,142 triangles. File size follows exactly.
What changes the sizeCurved geometry and the quality setting. Flat geometry never changes.
What does not change itThe size of the STEP file you started with — that stores exact geometry, not triangles.
How to make it smallerRe-convert at a coarser preset (fewer triangles) or zip it for transport. This converter does not decimate an existing mesh.
What zipping doesShrinks 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 grewYou converted a curved part and moved up the quality dial. The growth is the dial working.

Where these numbers come from

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.