Convert STL to BREP online

Upload an .stl and download an Open CASCADE BREP file for FreeCAD, CadQuery or gmsh. Flat areas come back as single faces instead of dozens of triangles. First 2 files free, any size up to 300 MB. After that, 1 credit per file.

STL to BREP converter

Rebuilt · Open CASCADE
STL
From STLbinary or ASCII
BREP
rebuilt · Open CASCADE
Drop your STL file here
or browse files
.stl · up to 300 MB
STL has no units. Most printable models are millimetres.

First 2 conversions free — any size up to 300 MB. Then $2.99 or 1 credit per file, charged at download. Prices include tax.

Have a BREP file? You can also turn BREP files into STL.

  • Files up to 300 MB
  • Flat areas merged
  • Units: mm, cm, m or in
An STL triangle mesh and the same part rebuilt as an Open CASCADE BREPSTLtriangle mesh · no unitsBREPrebuilt from the mesh

STL to BREP converter at a glance

Converts
STL (binary or ASCII) to BREP.
You get
One BREP file in millimetres, rebuilt from the mesh: flat areas as single faces, curved areas fitted where the mesh allows. Meshes over 1 million triangles come back as a faceted surface model.
File size
Up to 300 MB. We email you when the file is ready.
Price
First 2 files free, any size up to 300 MB. After that, 1 credit per file.

How to convert STL to BREP

STL to BREP in four steps

To convert STL to BREP, sign in, upload the .stl above, choose the units the model was made in (usually millimetres) and download the BREP file. The rebuild merges flat areas into single faces and fits cylinders and free-form surfaces where the mesh allows, so FreeCAD, CadQuery and gmsh get faces instead of a triangle soup. Curved areas may stay faceted, and there's no feature tree.

  1. Upload

    Sign in, then drop a binary or ASCII .stl file up to 300 MB onto the converter.

  2. Set units

    Choose the units the model was made in: millimetres, centimetres, metres or inches.

  3. Convert

    Flat areas are merged into single faces, and curved areas are fitted where the mesh allows.

  4. Download

    We email you when the BREP is ready. Load it in FreeCAD, CadQuery or gmsh.

STL vs BREP

What changes when STL becomes BREP

STL stores triangles. BREP stores faces, edges and vertices.

What the BREP keeps

  • The shape of the mesh, in millimetres
  • Flat areas, as single faces
  • Curved areas, fitted as cylinders or free-form faces where the mesh allows
  • Every body in its position

What it leaves behind

  • Feature history, sketches and constraints, which an STL never had
  • The exact curves of the original design: the rebuild can only follow the triangles
  • Curved detail on rough or very large meshes, which stays faceted

Need exact, editable geometry? Hire a CAD designer to model the part from the mesh.

What the rebuild does

From triangles to faces

A plain conversion turns every triangle into a face. Ours merges flat areas and fits curves where the mesh allows.

STLFlat areas

Neighbouring triangles on one flat area become a single face, so a flat side comes back as one face, not dozens of triangles.

BREPCurved areas

Cylinders and free-form surfaces are fitted where the mesh is clean enough. Elsewhere, curved areas stay faceted.

STLLarge meshes

Meshes over 1 million triangles skip the rebuild and come back as a faceted surface model, up to about 35,000 faces.

There's no feature tree: you edit the geometry directly. After download, look at a hole: a fitted hole is one cylindrical face; a faceted one is many strips.

Choose the right format

STL vs BREP vs STEP

Pick by what the next program needs.

STL, BREP, STEP compared
STLBREPSTEP
GeometryTriangles onlyFaces, edges and vertices (B-rep)Faces, edges and vertices (B-rep)
UnitsNot storedNot stored (ours is mm)Stored (ours is mm)
Opens inEvery slicer and 3D toolFreeCAD, CadQuery, gmsh and other OCCT toolsAlmost every CAD program
Best for3D printingScripts, meshing and OCCT pipelinesEditing in CAD and sending to suppliers
BREPConvert to BREP when

The model is going into FreeCAD, CadQuery, build123d, gmsh or your own Open CASCADE code.

You're in the right place
STEPChoose STEP when

The model is going to SolidWorks, Fusion, Onshape or a supplier.

STL to STEP for CAD
IGESChoose IGES when

A CAM program or older CAD system asks for IGES.

STL to IGES for CAM

Open it anywhere

Where BREP files open

Any tool built on Open CASCADE reads BREP.

FreeCADOpens BREP
CadQueryimportBrep
build123dimport_brep
gmshOpens BREP
SalomeImports BREP
OCCTBRepTools::Read

In Python, CadQuery's importBrep and build123d's import_brep load the file in one line. In C++, BRepTools::Read does the same.

FAQ

STL to BREP questions

The rebuild, units, solids or surfaces, pricing and your files.

Contact usLast updated 13 November 2026
How do I convert an STL file to BREP?

Upload the .stl file to the converter at the top of this page, choose the units the model was made in and download the BREP file. FreeCAD, which is free, can also turn a mesh into a shape and export BREP, but every triangle becomes a face there. Marathon OS is the paid route: first 2 files free, then 1 credit per file.

Is the Marathon OS STL to BREP converter free?

First 2 files free, any size up to 300 MB. After that, 1 credit per file. Credit packs bring it down to $1.80 per file. Prices include tax, you pay only when you click Download and credits never expire.

What is a BREP file?

A .brep (or .brp) file is Open CASCADE's native format for a boundary representation: the surfaces, edges and vertices of a shape. FreeCAD, CadQuery, gmsh and other tools built on Open CASCADE read it.

Which units should I choose?

The units the model was designed in. STL files do not store units, and models from Printables, Thingiverse, MakerWorld and most slicers are in millimetres. If the part opens about 25 times too small, convert again with inches.

Why does the BREP open as surfaces instead of a solid?

Two reasons: the STL isn't watertight, or the mesh went through the faceted fallback (every mesh over 1 million triangles, and any mesh the rebuild can't fit), which currently writes surfaces. Repair the mesh, or reduce it below 1 million triangles, and convert again.

Why are the holes still faceted?

The rebuild couldn't fit a cylinder to that mesh. Holes with more segments in the STL fit better, and a CAD designer can rebuild them exactly.

Do you repair the mesh first?

Meshes up to 800,000 triangles are cleaned before the rebuild: degenerate and duplicate triangles are removed, triangles are oriented consistently and small pinholes are closed. Large openings are left alone, because filling them would invent a wall. Bigger meshes go in as they are.

Is this an AI STL to BREP converter?

It doesn't use generative AI. The rebuild fits planes, cylinders and free-form surfaces to the mesh with geometry algorithms, so it never invents detail the STL doesn't have.

Can I convert a 3D scan or a sculpted model?

Yes, but scans and organic shapes have few flat or round areas to fit, so they come back made of many small faces. Meshes over 1 million triangles skip the rebuild and come back as a faceted surface model, up to about 35,000 faces. For engineering use of a scan, having a designer rebuild the part usually gives a better result.

Can SolidWorks or Fusion open a BREP file?

Most commercial CAD programs don't import Open CASCADE .brep files. Convert STL to STEP for them instead; it uses the same rebuild.

Can I mesh the BREP for FEA?

Yes. gmsh and Salome open .brep files directly.

Is .brp the same as .brep?

Yes. Both extensions are used for the same Open CASCADE format.

Which STL files can I upload?

Binary or ASCII .stl files up to 300 MB, from any CAD program, slicer, 3D scanner or model site.

Do I need an account?

To upload your own file, sign in with Google or an emailed code. The sample file works without signing in.

How long does an STL to BREP conversion take?

It depends on the mesh. Large or dense meshes can take 10 minutes or more, and we email you when the file is ready.

Are my STL files private?

Uploads and downloads use HTTPS. Uploaded and converted files are deleted automatically after 7 days, and converted files aren't added to the public CAD library unless you publish them. You keep ownership of your design. See the Privacy Policy.

Convert your STL file to BREP

A BREP rebuilt from your mesh, ready for FreeCAD, CadQuery and gmsh. First 2 files free, any size up to 300 MB. After that, 1 credit per file.

Pricing

Pay as you go, cheaper by the pack

Your first 2 CAD file conversions are free, any size up to 300 MB, including the download. From conversion 3 on, each file costs 1 credit or a one-time payment, charged only when you click Download. 1 credit downloads any file up to 300 MB, and credits never expire.

Starter

3credits

$7.99

$2.66 each

Save 11%

3 downloads of any size. Good for a one-off project.

Pro

5credits

$12.99

$2.60 each

Save 13%

5 downloads of any size. The everyday choice.

★ Most popular

Team

10credits

$19.99

$2.00 each

Save 33%

10 downloads of any size. Best balance of price and volume.

Studio

15credits

$26.99

$1.80 each

Save 40% · best value

15 downloads of any size. Lowest price per file.

Marathon OS Design Hub

Find an existing model before rebuilding one

Search the Marathon OS library for a usable starting model. Review dimensions, licensing and manufacturing suitability before using it.

View all designs