What is a SCAD file?

A SCAD file is not a 3D model but a program: OpenSCAD source code that describes a shape with commands like cube(), cylinder() and difference(). To print or view it you render it in OpenSCAD and export an STL or 3MF.

File extension.scad
TypeParametric 3D script (code)
Developed byOpenSCAD project (open source)
First released2010
EncodingPlain text (OpenSCAD language)
Colour / materialsPreview only
UnitsNone – treated as millimetres
Exact CAD geometryDefined by code
MIME type—
Opens in 3dfilesNo (closed format) – export it as described below

About the SCAD format

OpenSCAD is a free "programmer's CAD": instead of drawing, you write code, and every number can be a parameter. That is why many customizable models on Printables, Thingiverse and MakerWorld ship as .scad files – you change the parameters and generate your own version.

Because the file only contains instructions, no viewer or slicer can open it directly. It has to be computed (rendered) first.

What a SCAD file looks like inside

OpenSCAD

width = 40;   // [20:80]
height = 12;

difference() {
  cube([width, 20, height]);
  translate([width / 2, 10, -1]) cylinder(d = 5, h = height + 2, $fn = 48);
}

Comments like // [20:80] make a variable appear as a slider in OpenSCAD's Customizer.

How to open or convert a SCAD file

  1. Install OpenSCAD (free, Windows / macOS / Linux) and open the file.
  2. Optional: change parameters in Window → Customizer.
  3. Press F6 (Render), then File → Export → Export as STL (or 3MF).
  4. Open the exported STL in the STL viewer or your slicer.

Common problems

Render takes forever

High $fn values and many Boolean operations are slow in the classic engine. Recent OpenSCAD development builds have a much faster "Manifold" backend (Preferences → Advanced).

"Nothing to export"

You pressed F5 (preview) instead of F6 (render).

Questions about SCAD files

Can MakerWorld or Thingiverse customise SCAD files?

Yes – both have online customizers for OpenSCAD models, which export STL without installing anything.