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
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.
Sign in with Google or an emailed code to upload your own file. The sample file works without signing in.
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.
How to convert STL to BREP
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.
Sign in, then drop a binary or ASCII .stl file up to 300 MB onto the converter.
Choose the units the model was made in: millimetres, centimetres, metres or inches.
Flat areas are merged into single faces, and curved areas are fitted where the mesh allows.
We email you when the BREP is ready. Load it in FreeCAD, CadQuery or gmsh.
STL vs BREP
STL stores triangles. BREP stores faces, edges and vertices.
Need exact, editable geometry? Hire a CAD designer to model the part from the mesh.
What the rebuild does
A plain conversion turns every triangle into a face. Ours merges flat areas and fits curves where the mesh allows.
Neighbouring triangles on one flat area become a single face, so a flat side comes back as one face, not dozens of triangles.
Cylinders and free-form surfaces are fitted where the mesh is clean enough. Elsewhere, curved areas stay faceted.
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
Pick by what the next program needs.
| STL | BREP | STEP | |
|---|---|---|---|
| Geometry | Triangles only | Faces, edges and vertices (B-rep) | Faces, edges and vertices (B-rep) |
| Units | Not stored | Not stored (ours is mm) | Stored (ours is mm) |
| Opens in | Every slicer and 3D tool | FreeCAD, CadQuery, gmsh and other OCCT tools | Almost every CAD program |
| Best for | 3D printing | Scripts, meshing and OCCT pipelines | Editing in CAD and sending to suppliers |
The model is going into FreeCAD, CadQuery, build123d, gmsh or your own Open CASCADE code.
You're in the right placeThe model is going to SolidWorks, Fusion, Onshape or a supplier.
STL to STEP for CAD IGESChoose IGES whenA CAM program or older CAD system asks for IGES.
STL to IGES for CAMOpen it anywhere
Any tool built on Open CASCADE reads BREP.
In Python, CadQuery's importBrep and build123d's import_brep load the file in one line. In C++, BRepTools::Read does the same.
FAQ
The rebuild, units, solids or surfaces, pricing and your files.
Contact usLast updated 13 November 2026Upload 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.
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.
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.
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.
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.
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.
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.
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.
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.
Most commercial CAD programs don't import Open CASCADE .brep files. Convert STL to STEP for them instead; it uses the same rebuild.
Yes. gmsh and Salome open .brep files directly.
Yes. Both extensions are used for the same Open CASCADE format.
Binary or ASCII .stl files up to 300 MB, from any CAD program, slicer, 3D scanner or model site.
To upload your own file, sign in with Google or an emailed code. The sample file works without signing in.
It depends on the mesh. Large or dense meshes can take 10 minutes or more, and we email you when the file is ready.
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.
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
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
3 downloads of any size. Good for a one-off project.
Pro
5credits
$12.99
$2.60 each
5 downloads of any size. The everyday choice.
Team
10credits
$19.99
$2.00 each
10 downloads of any size. Best balance of price and volume.
Studio
15credits
$26.99
$1.80 each
15 downloads of any size. Lowest price per file.
Marathon OS Design Hub
Search the Marathon OS library for a usable starting model. Review dimensions, licensing and manufacturing suitability before using it.