OpenSCAD download and guide — first code model and STL export

Last content update 2026-11-06
QUICK ANSWER
Choose the official stable OpenSCAD download for your operating system. The stable Releases version checked on November 6, 2026 is 2021.01, separate from Nightly development builds. Make a small block with variables and cube, check it with F5 Preview, then run F6 Render. Save the .scad code using the save icon and export geometry with File → Export → Export as STL. Slicing the STL into printer instructions is a separate step.
OpenSCAD
Software
Program type Free · Open source · Code-based 3D modeling
Stable release checked 2021.01 · November 6, 2026
Official OS downloads Windows / macOS / Linux
Example environment Windows 11 x64 · Stable 2021.01
Preview / render F5 Preview / F6 Render
File distinction .scad code source / .stl geometry
Official OpenSCAD download ↗

Choose official stable OpenSCAD for your operating system

OpenSCAD creates 3D geometry from code. Rather than sketching with a mouse in GUI CAD, you edit variables and shape commands, then calculate the result again. This guide follows official documentation to distinguish a first simple block and the two files to save.

Use the infobox website button for official downloads. The stable Releases version checked on November 6, 2026 is 2021.01. This example follows Windows 11 x64 with stable 2021.01.

ChoiceWhat to check
Windows stablex86 32-bit or 64-bit; EXE installer or ZIP
Standard x64 PC in this exampleCheck Windows system architecture and choose x86 64-bit
macOS or LinuxOfficial OS-specific download and requirements
Nightly or Development SnapshotsSeparate development requirements and features

The stable Windows guidance of Windows 7 or later on x86 32/64-bit differs from development-build guidance of Windows 10 or later on 64-bit Intel. Do not transfer development-only rendering-engine descriptions to every stable build.

Download, install and run the official stable build for your OS. Check installation permission on a company or school computer. You do not need an extra third-party download manager to obtain the program.

Enter the first block in the editor

Start with a 36×24×8 block, whose dimensions are easy to change and compare. Enter this code in the editor.

width = 36;
depth = 24;
height = 8;

cube([width, depth, height]);

width, depth and height are variable names chosen for this example. Passing the three values to cube in order defines each axis’s size. Check parentheses, square brackets, commas and semicolons together.

This example teaches geometry and file saving. Entering dimensions alone does not verify measured size or print quality on a particular printer.

Check variables, axes, semicolons and F5

Run Design → Preview, or F5, and compare the code values with the displayed block.

Code valueMeaningChange to try
widthFirst value, X dimensionChange 36 to 48
depthSecond value, Y dimensionChange 24 to 30
heightThird value, Z dimensionChange 8 to 12

Change one value at a time and press F5 again to see which direction changes. This cube example does not specify centered alignment. Distinguish its position in the view from the size of each axis.

If no shape appears, check the console first. Compare variable spelling, commas, brackets and the terminating semicolon ; on each statement. If the shape was calculated but is outside the view, use View All.

Finish F6 Render and inspect errors

Once the preview is ready, choose Design → Render, or F6. The official STL guidance describes rendering before export.

  1. Check that the final variable values and code are correct.
  2. Run F6 and wait for calculation to finish.
  3. Inspect the console for syntax and geometry errors.
  4. Correct the indicated lines and check again if necessary.

F5 Preview and F6 Render are separate stages. A long calculation alone does not prove that geometry is wrong, and unresolved errors should not be carried into export.

Save SCAD source separately from STL export

Keep editable code and exported geometry as two separate files.

FileContentsExample filename
SCADEditable code and variablesfirst-block.scad
STLRendered geometryfirst-block.stl

Use the save icon shown in the official first tutorial to save the code as .scad. Remember the folder and filename, and check that the source retains your final variable values.

After F6 finishes, choose File → Export → Export as STL. Export with an .stl filename in the desired folder and check the console’s completion or error messages.

After changing code, save the source and run Render and STL export again to update the geometry file. Check the folder and filename to avoid confusing it with an older export.

Check the files and slice if needed

Check that the folder contains both SCAD source and STL. Open the source in OpenSCAD to inspect variables and commands. Open STL in the model tool you plan to use next and check geometry, axes and dimensions. File existence and correct geometry are separate checks.

For printer instructions, use the PrusaSlicer first-slicing guide (Korean) in Related documents below. Starting with an STL, select your actual printer, nozzle and material, load the model and check layers and the generated file.

STL is geometry; G-code and similar files contain printer instructions. Distinguish code modeling and export from physical printing success. If the printer and material are undecided, do not generate print instructions using an arbitrary profile.

If your equipment and workflow use Bambu Studio, see Bambu Studio first slicing (Korean) to check printer, nozzle and material settings and distinguish the project from print output.

Official sources

Frequently asked questions

How does OpenSCAD differ from a conventional GUI CAD program?
OpenSCAD defines geometry and dimensions in text code. Change variables and calculate again to inspect the shape. This differs from choosing sketches and operations with a mouse in GUI CAD or creating scenes and animation. First decide whether repeatable simple shapes defined with code fit your purpose.
Should I download stable OpenSCAD or Nightly?
This first-use guide follows stable 2021.01 from the official Releases. Nightly Builds and Development Snapshots are development distributions for testing new features. Even on the same page, their versions, requirements and features can differ. Check your OS and the distribution label.
What if I enter code but cannot see a shape?
Check that you ran F5 Preview and look for syntax errors in the console. Compare variable names, brackets, commas and terminating semicolons with the example. If calculated geometry is outside the view, use View All. Start corrections at the line identified in the error message.
Are F5 Preview and F6 Render the same?
F5 previews geometry while editing; F6 renders it. Before STL export, run F6 and check that the console reports no errors. Seeing a preview alone does not confirm that export geometry is ready.
Can SCAD and STL files replace each other?
SCAD is the source code for editing variables and commands again. STL contains exported geometry. Save both separately. Keeping only STL does not preserve the original code and variable-editing process. After changing code, export and check the required STL again.
Can I print directly after saving STL?
STL stores geometry rather than printer instructions. Slice it with a profile for your actual printer, nozzle and material, then check layers and the generated file. A normal-looking STL or preview does not guarantee a successful physical print.