CSG to OBJ Converter for OpenSCAD Exports | MiConvert

Convert CSG to OBJ

Upload an OpenSCAD .csg file and get one .obj mesh of the finished solids, with coordinates in millimeters and Z pointing up. The OBJ has no material file and no object groups, so plan to set shading and materials in the program you open it in.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
CSG → OBJ

Turning an OpenSCAD CSG tree into an OBJ mesh

Constructive solid geometry describes a part as a recipe: start from cubes, cylinders, spheres and polyhedra, then add, subtract or intersect them. OpenSCAD saves that recipe, already evaluated, when you export to .csg. Blender, MeshLab, ZBrush and most renderers read Wavefront OBJ, a plain-text list of vertices and faces, but none of them can carry out the recipe, so the solid has to be computed and triangulated first.

On our servers, FreeCAD 1.1 parses the CSG with its OpenSCAD importer, which performs the boolean operations itself instead of calling OpenSCAD. FreeCAD then meshes the finished top-level solids and writes the OBJ directly, in one engine step with a 10-minute limit. This route has not yet seen real production use since CSG reading was repaired in October 2026, so if an older attempt failed, upload the file again.

Geometry is what carries across. Spheres are rebuilt exactly, cylinders exported with $fn from 3 to 16 remain the prisms you drew, and all other cylinders become true round surfaces. Triangulation then uses a fixed 0.1 mm chord tolerance and 0.5 radians, about 29 degrees, the same for a 5 mm pin and a 500 mm panel, with no setting to change it. Identical shapes stacked at the same spot are written only once.

The file stays as plain as OBJ allows. You get a single .obj with no .mtl material file and no o or g object groups, so OpenSCAD colors and part boundaries are gone and every solid shares one unnamed mesh. Each triangle has its own normal, which renders as flat facets until you turn on smooth shading. Coordinates are OpenSCAD's numbers in millimeters with Z up, and there is no unit tag, because OBJ has none.

Typical users are OpenSCAD designers who want to render a part in Blender or KeyShot, inspect it in MeshLab, paint or texture it, or submit it to a service or marketplace that accepts only OBJ.

How to convert CSG to OBJ

  1. Finish the design in OpenSCAD, press F5 to preview, and use File > Export > Export as CSG. The .scad source is not accepted.
  2. If the design relies on hull(), minkowski(), text(), import(), surface() or projection(), render it in OpenSCAD with F6 and export a mesh there instead; this converter refuses those calls.
  3. Upload the .csg. Guests can send up to 10 files of 50 MB each in one batch.
  4. Download the .obj while its link is valid, about 4 hours.
  5. In Blender's OBJ importer, set Forward Axis to Y and Up Axis to Z, and a scale of 0.001 if your scene works in meters, then apply Shade Smooth or Shade Auto Smooth to curved areas.

What you get in the OBJ

  • One .obj written by FreeCAD 1.1 directly from the solids, with no intermediate format.
  • A boolean tree evaluated by FreeCAD's OpenSCAD importer; the OpenSCAD program is not run.
  • Exact spheres and cylinders before meshing, with cylinders of $fn 3 to 16 kept as prisms.
  • Fixed tessellation: 0.1 mm maximum chord deviation and a 0.5 radian angular limit.
  • Coordinates exactly as modeled: millimeter values, Z as height, no axis swap.
  • Duplicate shapes at the same position written once rather than as overlapping copies.

Video Tutorial

Changing a CSG file to OBJ has never been easier! Watch this detailed guide on how to do it completely free right in your web browser. 🔗 Visit MiConvert: https://miconvert.com/en/csg-to-obj?utm_sour

CSG to OBJ questions

What is a CSG object?

In OpenSCAD and similar modelers, a CSG object is a solid defined by combining simpler solids with union, difference and intersection. The .csg file stores those objects as a tree. Converting to OBJ replaces the tree with the triangles of the result, so the steps that built it can no longer be edited; keep your .scad file for that.

Why does my OBJ look faceted even on round parts?

FreeCAD writes one normal per triangle, so renderers show every facet; enable smooth shading, for example Shade Auto Smooth in Blender, to fix the look. For spheres and true round cylinders, the facet size follows our fixed tolerance rather than your $fn, $fa or $fs, so small round features keep visible steps; cylinders with $fn from 3 to 16 keep exactly that many flat sides.

What units is the OBJ in, and why is it the wrong size?

OBJ stores bare numbers. Ours are millimeters, matching OpenSCAD's usual convention. Programs that treat one unit as one meter, Blender by default, show a 40 mm part as 40 m; import with a scale of 0.001 or set the scene units to millimeters.

Can I get each part as a separate object?

Not from this converter: all top-level solids go into one mesh with no groups. In Blender, select the mesh in Edit Mode and use Mesh > Separate > By Loose Parts to split bodies that do not touch.

What does the hull()/minkowski() error mean?

The message 'This CSG file uses hull()/minkowski()/text()/import()' appears because our importer has no OpenSCAD engine to compute hull(), minkowski(), text() or projection(), and it also refuses import(), surface(), glide() and subdiv(). Render in OpenSCAD and export STL or 3MF; Blender can import either and save it as OBJ.

'No valid 3D geometry found' appeared. What went wrong?

Most likely the CSG contains only 2D shapes, so there is no solid to mesh. Make the design 3D in OpenSCAD and export again, or use the CSG to DXF converter if you want a flat outline. The mention of textures in that message is shared wording for all 3D formats and does not apply here.

What does 'Could not read this 3D file' mean for a CSG?

The CSG text did not parse. Common causes are a manual edit that broke the syntax, a cut-off download, or a .scad file renamed to .csg. Re-export from OpenSCAD and upload the file untouched.

What happens to my file after conversion?

Processing runs on our servers. The .csg you upload is removed when the job completes, and the .obj is kept for download for about 4 hours, then deleted. The link is an unguessable token, but it works for anyone who has it, as many times as they like, until it expires. Operational logs record file names and results, and signed-in users see the conversion in their history until they delete their account.