CSG to AMF Converter: mm-Scale AMF 1.1 | MiConvert

CSG to AMF Converter: OpenSCAD Designs to AMF 1.1

Your OpenSCAD .csg export becomes an AMF 1.1 file in millimeters with one object and one volume. It holds geometry only, so AMF's color and material features stay unused; assign those in your slicer.

📁

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 → AMF

Why CSG needs converting before an AMF workflow can use it

AMF, the Additive Manufacturing File format standardized as ISO/ASTM 52915, is an XML mesh format. It was created to give 3D printing what STL lacks: declared units, colors and multiple materials. OpenSCAD's .csg export has none of that. It lists primitives, transformation matrices and boolean operations that need a CSG evaluator to become a surface, and the slicers that read AMF do not evaluate them.

We handle this on our servers in two steps. FreeCAD 1.1 parses the file with its built-in OpenSCAD importer, builds the solids, and triangulates them at a 0.1 mm chord tolerance with a 0.5-radian angle limit. It passes the mesh along as a temporary GLB, and a second script turns that mesh into AMF 1.1 XML.

The resulting file declares millimeter units and lists coordinates to six decimal places inside one object with one volume. FreeCAD keeps OpenSCAD values as millimeters, so a part modeled 20 units wide measures 20 mm in the slicer. Cylinders with a $fn of 3 to 16 remain faceted; every other round shape is rebuilt as a true curve before meshing. The file has no color, no materials, no multiple volumes for multi-material printing and no object names. The XML is written uncompressed, so it is larger than an equivalent binary mesh.

AMF has become a niche format, and most current slicers favor 3MF. This converter fits a toolchain that asks for AMF specifically, such as an older Slic3r-based setup or a service that lists it among accepted files. When the choice is yours, the CSG to 3MF converter applies the same meshing in a package more slicers read. CSG support was repaired on October 12, 2026, and no CSG to AMF conversion has run on the live site yet, so check the first file before relying on it.

How to convert CSG to AMF

  1. Save the design as CSG in OpenSCAD with File > Export > Export as CSG, and upload that .csg rather than the .scad.
  2. Scan the file for hull(), minkowski(), text(), import(), surface(), projection(), glide() or subdiv(). Each one causes a refusal; for those designs, render in OpenSCAD and use its own Export as AMF.
  3. Confirm the model is solid 3D geometry, because flat 2D shapes alone cannot become an AMF mesh.
  4. Upload the file. AMF is the fixed target, and a batch can hold up to 10 files without signing in.
  5. Download the .amf once both steps finish, then open it in your slicer and confirm it reads as millimeters before slicing.

Inside the AMF this converter writes

  • AMF 1.1 in plain XML, readable in any text editor if you want to inspect vertices and triangles.
  • A millimeter unit attribute that matches the coordinates FreeCAD produces from OpenSCAD values.
  • Vertex coordinates rounded to six decimal places.
  • Only the design's final solids. Operands consumed by difference() or intersection() are not written, and identical bodies stacked in place appear once.
  • Triangulation fixed at 0.1 mm and 0.5 radians for every model, with no density control.
  • An engine message naming the unsupported OpenSCAD function when hull(), minkowski(), text() or a similar call is present.

Video Tutorial

Changing a CSG file to AMF 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-amf?utm_sour

CSG to AMF questions

Does the AMF keep colors or support multi-material printing?

No. The file has a single volume and no color or material elements, even though the AMF format allows them. Set colors or extruder assignments in your slicer, or export each material's part as a separate CSG and combine them there.

Which programs can open the converted AMF?

Slic3r-family slicers such as PrusaSlicer have long read AMF, and OpenSCAD can import it too. Support elsewhere is patchy. If your slicer refuses the file, convert the same CSG to 3MF or STL instead.

Why was my CSG rejected with a message mentioning hull() or minkowski()?

Our importer evaluates basic primitives and booleans itself. For hull(), minkowski(), text(), import() and a few others it needs the OpenSCAD program, which is not installed. Re-open the .scad in OpenSCAD, render it with F6, and use File > Export > Export as AMF to get the finished mesh.

What does 'No valid 3D geometry found' mean here?

The CSG described no solid, typically because the design is purely 2D. The message is generic and mentions textures, which do not apply to CSG. Extrude the shapes and export again, or send the file to CSG to DXF if a flat outline is what you need.

Is the AMF an exact copy of my OpenSCAD model?

It is a triangle mesh, so curves are approximated to within 0.1 mm, and small round features get few facets because the angle limit decides there. It also will not match OpenSCAD's own facets, because round shapes are rebuilt before meshing. Keep the .scad as your editable master.

Why is the .amf file bigger than I expected?

It is uncompressed XML, so every vertex is spelled out as text, which is normal for this output. If size matters, zip it before sending it, or convert to 3MF, which is a compressed package.

Where is my file processed, and when is it deleted?

On our servers, reached over HTTPS through Cloudflare; nothing is processed on your device. The source CSG is deleted when the conversion completes. The AMF can be downloaded for about 4 hours, then it is deleted automatically. The link is the only key, so anyone you give it to can download the file during that time. We log file names, sizes and outcomes.