What is a BREP file?

A BREP file (.brep or .brp) is a shape saved in the native text format of the Open CASCADE geometry kernel: exact vertices, edges, faces and solids, without colours or part names. FreeCAD, CadQuery and build123d write it. To open one without FreeCAD, drop it on the 3D viewer: it opens in your browser, nothing is uploaded, and you can save it as STL, 3MF, OBJ or GLB.

File extension.brep, .brp
TypeCAD solid model (B-rep, text)
Developed byOpen Cascade (Open CASCADE Technology)
EncodingASCII text; a separate binary form exists
Colour / materialsNo – geometry and topology only
UnitsNone stated in the file – read as millimetres here
Exact CAD geometryYes – exact curves, surfaces and solids
MIME type—
Opens in 3dfilesYes – BREP viewer
Limits in 3dfilesFiles up to 1 GB open for viewing. Downloads are free up to 100 MB; larger ones need Pro. The text form is read and is also recognised without its extension. Binary BREP is a separate encoding and has not been tested here: if one does not open, save it as STEP. Numbers are taken as millimetres. Converting from BREP uses the free daily downloads: 2 per 24 hours without Pro.

Open a BREP file

How to open a BREP file without FreeCAD

  1. Drop the .brep or .brp on the 3D viewer. The shape is meshed by the same CAD engine that reads STEP files here and is shown with its size, volume and surface area.
  2. Desktop: FreeCAD opens and saves .brep and .brp; it lists them as the "OpenCasCade native format".
  3. For printing, save it from the viewer as STL or 3MF; for other 3D programs as OBJ or GLB.
  4. For an exact STEP for other CAD software, open the BREP in FreeCAD and export STEP there. A STEP saved from this viewer contains the meshed shape with flat faces, not the original curved surfaces.

About the BREP format

Open CASCADE Technology (OCCT) is the open-source geometry kernel used by FreeCAD and by the Python CAD libraries CadQuery and build123d. Its documentation says the BREP format "is used to store 3D models" made of vertices, edges, wires, faces, shells, solids, compsolids and compounds, together with triangulations and locations, and that the data are stored in the file as text.

BREP is the kernel's own format rather than an exchange standard. The specification describes no unit, no colour and no part name, only geometry and topology. To hand a model to someone who uses other CAD software, STEP is the better choice.

What a BREP file looks like inside

Order of the sections in a text BREP

DBRep_DrawableShape                          <- content type

CASCADE Topology V1, (c) Matra-Datavision    <- version line (V1, V2 or V3)
… locations                                  <- placements used by the shapes
… geometry                                   <- 2D curves, 3D curves, polygons, surfaces, triangulations
… shapes                                     <- vertices, edges, wires, faces, shells, solids

A text BREP begins with DBRep_DrawableShape and a version line that reads CASCADE Topology V1, V2 or V3. This site uses those lines to recognise a BREP that has lost its extension. OCCT also has a binary BREP form with its own header, Open CASCADE Topology; the documentation says the two forms "are not interchangeable".

Common problems

"This CAD file could not be read"

The file is damaged, is not a BREP, or is a binary BREP, which is a different encoding from the text form. Save it again as text BREP or as STEP from the program that made it.

The size looks wrong

A BREP states no unit, and its numbers are read here as millimetres. If the model was built in inches or metres, scale the exported STL with the scale tool.

Colours and part names are missing

They are not part of the format: the specification covers geometry and topology only. Use STEP when colours, names or an assembly structure matter.

Questions about BREP files

What is the difference between .brep and .brp?

None in content. FreeCAD lists both extensions for the same OpenCasCade native format.

Is BREP the same as STEP?

No. Both describe exact boundary-representation geometry, but STEP is an ISO exchange standard that also carries units, colours, names and assemblies, while BREP is the text format of one geometry kernel.

Which programs create BREP files?

Programs built on Open CASCADE. FreeCAD imports and exports it, and the Python CAD libraries CadQuery (exportBrep) and build123d (export_brep) write it.

Can I 3D print a BREP file?

After meshing. Open it in the 3D viewer and save it as STL or 3MF, which slicers read.