---
title: "How to fix flipped normals in an STL file"
description: "STL records direction twice, as a facet normal and as vertex order. Weld the loose triangles, recalculate normals outside and export so both agree again."
canonical: https://appliedmanifold.com/mesh/fix-flipped-normals-stl/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [meshfx](https://appliedmanifold.com/mesh/)
3.  STL normals

meshfx // STL NORMALS

# How to fix flipped normals in an STL file

You fix flipped normals in an STL by recalculating them outside in your 3D editor and exporting again, which rewrites both places STL records direction: the facet normal on each triangle and the triangle's vertex order. Weld the vertices first, since an STL arrives as loose triangles and the editor needs a connected surface to find the outside.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx docs →](https://appliedmanifold.com/docs/mesh/)

pyrofx effects work today, and new accounts start with $5 of usage.

**MODULE // meshfx AVAILABLE**

meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the [Playground](https://appliedmanifold.com/playground/).

-   Each triangle: one facet normal plus vertex order
-   When they disagree, programs pick one
-   Weld first so the editor can find the outside

01 // WHY

## Why STL normals go wrong

An STL triangle stores a facet normal and three corners, and the corners should run counter-clockwise seen from outside. Some exporters write a zero normal and expect the reader to use the order; others write a normal that no longer matches the order after a mirror. Slicers and editors trust one or the other, so the same file can look right in one program and inside out in the next.

An inverted shell also confuses a slicer about which side is solid, which shows up as missing walls or filled cavities in the print preview.

02 // HOW TO

## Fix the normals in your 3D editor

1.  Import the STL into your 3D editor.
2.  Merge by distance to weld the loose triangles into one surface ([why STL needs it](https://appliedmanifold.com/mesh/remove-duplicate-vertices-stl/)).
3.  Turn on face orientation and recalculate normals outside.
4.  If some parts stay red, they may be separate shells; select each one and recalculate again, or flip it.
5.  Export the STL again; binary STL is smaller than ASCII. The new file has facet normals that match the vertex order.
6.  For a game engine, export GLB or FBX instead, since most engines have no STL importer.

meshfx retains existing UVs during triangle reduction. Create the texture atlas in your editor. Hosted meshfx runs are available in the Playground.

03 // RELATED

## Related pages

-   [Mesh normals AvailableNormals are the directions a mesh's faces and vertices point, used for lighting and culling, and flipped ones look black or vanish.](https://appliedmanifold.com/learn/normals/)
-   [Flipped normals AvailableRecalculate normals outside, flip the faces left over and apply mirrored scale so a model draws correctly in any engine.](https://appliedmanifold.com/mesh/fix-flipped-normals/)
-   [STL duplicate vertices AvailableSTL repeats every corner per triangle, so weld it with Merge by Distance right after import before any repair or smoothing.](https://appliedmanifold.com/mesh/remove-duplicate-vertices-stl/)
-   [STL scale AvailableSTL numbers are millimeters by convention, so import at 0.001, apply the scale and export GLB or FBX for a game engine.](https://appliedmanifold.com/mesh/fix-model-scale-stl/)
-   [Fill mesh holes AvailableClose mesh holes by hand with a single face, a grid fill or a bridge between edge loops, then fix normals and UVs.](https://appliedmanifold.com/mesh/fill-mesh-holes/)
-   [meshfxmeshfx reads an input model, repairs surface faults and compiles reduced GLB levels of detail for Godot, three.js or any glTF loader.](https://appliedmanifold.com/docs/mesh/)

[All pages in meshfx →](https://appliedmanifold.com/mesh/)

[← OBJ normals](https://appliedmanifold.com/mesh/fix-flipped-normals-obj/)[USD normals →](https://appliedmanifold.com/mesh/fix-flipped-normals-usd/)

04 // FAQ

## STL normals questions

[All questions →](https://appliedmanifold.com/faq/)

**README.FIX\_FLIPPED\_NORMALS\_STL**

### How do I fix flipped normals on an STL?

Weld the vertices first, recalculate normals outside in your 3D editor and export again. The new file has matching facet normals and vertex order.

### Why does my slicer still report errors after I fix the normals?

Flipped normals often sit next to holes and open edges. Fix those as well because a slicer needs a closed shell with consistent orientation.

### Why does my STL look inside out in one program and fine in another?

The facet normals and the vertex order disagree and each program trusts a different one. Recalculating and exporting again makes them match.

### How do I fix holes, flipped normals and loose triangles in an STL?

Weld the triangles first, fill the holes, recalculate normals outside and delete loose faces with cleanup. Each step then works on a connected surface.

## Explore meshfx outputs

Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx →](https://appliedmanifold.com/docs/mesh/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
