Does an STL File Have Units? No — How to Diagnose and Fix Scale Problems

An STL stores bare numbers, so its unit lives only in the exporting program. The scale factors to look for and how to fix a model that opens 25.4× too small.

By Updated 6 min read

Open a model, expect a 60 mm bracket, and see a 2.36 mm speck. Nothing is corrupt — the geometry is exactly what the designer drew. The file simply never carried the information needed to interpret it.

That is the scene in the 3D view below: the green bracket is the part as designed, the red one beside it is the same file saved in inches and read as millimetres. Zoom in on the red one — the geometry is identical, only 25.4 times smaller.

The same angle bracket twice: at its intended 60 × 20 × 25 mm in green, and as it opens from a file saved in inches, 2.36 mm long, in redView in 3D
The same angle bracket twice: at its intended 60 × 20 × 25 mm in green, and as it opens from a file saved in inches, 2.36 mm long, in red

What the format actually stores

An STL is a list of triangles, and each vertex is three 32-bit floats. That is all. There is no unit field, no scale hint, and no metadata section where one could be added. The binary header is 80 free-form bytes that most exporters fill with their own name.

So a cube drawn as 20 units wide is written as 20.0. Whether that means 20 millimetres, 20 inches or 20 furlongs is a fact that existed only inside the CAD program and was discarded on export.

By near-universal convention, the receiving program assumes millimetres. Every slicer does. That convention is what makes STL usable at all, and it is also exactly what breaks when the source document was set to something else.

The scale factors, and what each one means

Divide the size you expect by the size you see:

Ratio The file was exported in Fix
25.4 Inches Scale to 2540 %
10 Centimetres Scale to 1000 %
1000 Metres Scale to 100000 %
0.03937 Millimetres, converted as if inches Scale to 3.937 %
0.1 Millimetres, converted as if centimetres Scale to 10 %
0.001 Millimetres, converted as if metres Scale to 0.1 %

The first three are the common case: the source document used a non-metric unit. The reciprocals happen when the exporter helpfully applied a conversion that the importer then applied again in reverse.

If the ratio is not one of these, the problem is probably not units. Check whether the model was scaled deliberately, or whether you are comparing against the wrong dimension.

How to diagnose it in ten seconds

Open the file in any viewer and read the bounding box. You do not need to recognise the model or know its intended size precisely — one familiar feature is enough. A screw hole should be a few millimetres. A phone stand should be around 100 mm. A whole assembly should not be 0.004 mm across.

If the numbers are absurd, compute the ratio against what you expected and match it to the table above.

This check is also the first thing to do when a volume or weight figure looks wrong, because those scale with the cube of the linear error. A model that is 25.4 times too small reports a volume 16,387 times too low.

What slicers do when a model looks too small

Some slicers try to guess the unit for you. The guess is worth understanding, because it can be wrong in both directions.

Bambu Studio and OrcaSlicer check each object's volume as read in millimetres. Under 0.008 mm³ — a 0.2 mm cube — they assume metres; under 8 mm³ — a 2 mm cube — they assume inches, and offer to scale the object to millimetres by 1000 or 25.4. Both thresholds are in the slicers' source code (libslic3r/Model.cpp). Three consequences:

  • A part drawn in inches whose volume is more than about a 2-inch cube loads tiny without any prompt. A 4 × 4 × 4 in box reads as 64 mm³.
  • A file saved in centimetres can fall under the inch threshold and be scaled by 25.4 instead of 10.
  • A genuinely tiny millimetre part under about 8 mm³, such as a 2 mm cube or a small bead, triggers the prompt too. Answer no.

PrusaSlicer runs a similar check and asks whether the object was saved in inches or metres, and its File → Import menu has an option to import an STL in imperial units. Cura has a preference that scales up extremely small models automatically; check the dimensions of the result rather than trusting the factor.

To see what your own slicer does, open the test pack: the same 60 × 20 × 25 mm bracket saved four ways, plus a 3MF that stores inch numbers and says so.

File Opens as Volume as read
bracket-saved-in-mm.stl 60 × 20 × 25 mm 7,560 mm³
bracket-saved-in-cm.stl 6 × 2 × 2.5 mm 7.56 mm³
bracket-saved-in-inches.stl 2.36 × 0.79 × 0.98 mm 0.46 mm³
bracket-saved-in-metres.stl 0.06 × 0.02 × 0.025 mm 0.0000076 mm³
bracket-inches.3mf 60 × 20 × 25 mm 7,560 mm³ (converted from inches on import)

By the thresholds above, the inch and metre files get the right offer, the centimetre file gets the wrong one (×25.4), and the 3MF needs none. The files are free to use under CC BY 4.0.

Fixing it

In the browser. Open the file in the free 3D file converter, set the unit the file is in to inches (it suggests this itself when the largest side of a file with no declared unit is under 30 mm), and download an STL or 3MF written in millimetres. Nothing is uploaded, and unlike the slicer fix, the new file is right for whoever opens it next.

In the slicer. Every slicer has a scale field that accepts a percentage. This is the fastest fix and it is fine for a one-off print. It does not fix the file, so the next person to open it hits the same problem.

In the source. Set the document units correctly and re-export. This is the right fix if the file will be shared or reused. In most CAD packages the export dialog has its own unit setting that is independent of the document, so check both.

In a mesh editor. Blender, MeshLab and FreeCAD can all scale a mesh and re-export it. Note that Blender's default scene unit is metres, so importing a millimetre-scale STL there introduces a second layer of the same confusion — set the unit scale before you start.

On an iPhone or iPad. The Mes3D app resizes a model to an exact width, height or depth in millimetres, or by percent, proportionally or one axis at a time. It also has one-tap fixes for files that came out in inches. The resized model can then be exported as a new STL. This short video shows the steps:

How to Resize an STL File on iPhone – Scale 3D Models with Mes3D

The permanent fix

Use 3MF where you can. It stores the unit explicitly in its XML, so there is nothing for the receiving program to guess. Every current slicer reads it. STL remains the right choice only when you cannot verify what software is on the other end — and in that case, tell the recipient the intended dimensions in writing.

Checking a file quickly

Mes3D shows bounding-box width, height and depth as soon as a file opens, which is all you need for the ratio check, and it runs in the browser so you do not have to launch CAD software to sanity-check someone else's download.

Frequently asked questions

Does an STL file have units?

No. STL stores plain floating-point coordinates with no unit anywhere in the file or its header. Slicers and viewers assume millimetres by convention, so a file exported from a program working in inches opens 25.4 times too small.

Why is my STL 25.4 times too small?

It was exported from a document set to inches. The numbers are correct in inches but get read as millimetres. Scale the model by 2540 percent in your slicer, or fix the document units and re-export.

What scale factor do I need to fix my model?

Divide the size you expect by the size shown. A factor of 25.4 means the file is in inches, 10 means centimetres, and 1000 means metres. The reciprocals (0.03937, 0.1, 0.001) mean the exporting program applied the conversion in the other direction.

How do I avoid unit problems permanently?

Use 3MF instead of STL where both ends of the workflow support it. 3MF records units explicitly, so the receiving program has no ambiguity to resolve.

Why does my slicer ask if my model is in inches or meters?

Because the model's volume, read as millimetres, is below a threshold: in Bambu Studio and OrcaSlicer, under 8 mm³ suggests inches and under 0.008 mm³ suggests metres. Answer yes only if the size you expected is 25.4 or 1000 times the size shown; a tiny millimetre part or a centimetre file triggers the same question.

Open the 3D viewer

Mes3D on your phone

The Mes3D app for iPhone, iPad and Android opens the same files and adds measuring, mesh analysis, cross-sections and AR. Free to download; some features are paid.

Download on the App StoreGet it on Google Play

More guides

All articles