OpenSCAD Playground — Online Editor & STL Export
Free online OpenSCAD editor: write .scad code, preview it in 3D and export STL, 3MF, SVG or DXF. Runs the real engine in your browser, with Customizer sliders. Nothing is uploaded.
Edit the OpenSCAD code on the left and press Render (or Ctrl+Enter). The real OpenSCAD engine runs in a background Web Worker, and the result appears in the 3D viewer on the right. Top-level variables with a range comment, like width = 40; // [10:100], become Customizer sliders. When you are happy, pick STL, 3MF, OFF, SVG or DXF and download the file. Share link copies a URL that contains your whole model.
model.scad
24 lines · Ctrl+Enter to render3D preview
Drag to rotate · scroll to zoom · right-drag to panCustomizer
Sliders edit the code — press Render, or enable Auto-render.
Export
STL, 3MF and OFF export 3D solids for slicers and CAD. SVG and DXF need a 2D model (for example circle(), square() or projection()).
Learn more
What OpenSCAD is and why people use it
OpenSCAD is a free, open-source 3D modeler where you describe a solid with code instead of dragging shapes with a mouse. A model is a small program: primitives such as cube(), sphere() and cylinder() are combined with union(), difference() and intersection(), then moved with translate(), rotate() and scale(). Because the result is just text, it is easy to version-control, review in a diff and reuse in other projects.
The big payoff is parametric design. If a bracket's hole spacing, wall thickness and height are variables, one edit regenerates a correct part for a different screw, printer or room. That is why OpenSCAD is popular for 3D-printed enclosures, jigs, brackets, gears and anything that needs to be resized precisely and repeatably.
A first model in three lines
Subtracting one shape from another is the core move of CAD-by-code. This example makes a cube with a spherical pocket: difference() { cube(20, center = true); sphere(r = 13, $fn = 64); }. The first child is the solid, every following child is removed from it. The $fn variable sets how many facets a curved surface gets, so higher values look smoother but render slower.
From there the usual progression is to wrap geometry in a module so you can call it with arguments, drive repeated features with a for loop, and pull the key dimensions to the top of the file as named variables. Those top-level variables are exactly what the Customizer panel turns into sliders.
Using the Customizer sliders
OpenSCAD's Customizer reads simple assignments at the top of a file and shows an input for each. This playground follows the same convention: a number followed by a comment such as // [5:50] becomes a slider from 5 to 50, // [1:0.5:6] adds a step size, a true or false value becomes a checkbox, and a list such as // [small, medium, large] becomes a dropdown.
Moving a slider rewrites that line in your code, so what you see in the editor is always exactly what gets rendered. Turn on Auto-render to see the model update as you drag, or leave it off and press Render when you are ready — useful for heavier models.
Exporting for 3D printing, laser cutting and CAD
STL is the universal format for 3D printing: a triangle mesh with no color or unit information, accepted by every slicer. 3MF is a newer, more compact format that stores units and can carry more metadata, and many modern slicers prefer it. OFF is a simple text mesh format handy for scripts and research tools.
For flat work, a 2D model exports to SVG or DXF, which laser cutters, CNC routers and vinyl cutters accept. Build the outline with 2D primitives like circle(), square() and polygon(), or flatten a 3D model with projection(cut = true). If you export a 3D model to SVG you will get an error, because there is no single flat outline to describe.
Printing tips: make it printable
Model in millimeters, add small tolerances to parts that must fit together (0.2 mm is a typical starting gap for FDM printers), and avoid zero-thickness walls. Keep overhangs under about 45 degrees where you can, or orient the part so the flat face lies on the bed. Preview the mesh in your slicer before printing — it is the final check for thin walls, floating islands and non-manifold edges.
If a render looks faceted, raise $fn on the curved parts only rather than globally, because every extra facet multiplies the work of boolean operations. A value around 48 to 96 is usually plenty for printing.
Frequently asked questions
Do I need to install OpenSCAD?
No. This page runs the real OpenSCAD engine compiled to WebAssembly directly in your browser. There is nothing to install, and it works on Windows, macOS, Linux and Chromebooks.
Is my model uploaded to a server?
No. Rendering happens in a Web Worker on your own device. The code and the generated mesh never leave your browser; the only thing stored is the last model in your browser's local storage so you can pick up where you left off.
How do I export an STL file for 3D printing?
Render your model, choose STL in the Export panel and click Download. The file opens in any slicer (Cura, PrusaSlicer, Bambu Studio, OrcaSlicer). Use 3MF if you want a slicer-friendly format with units, or OFF for simple mesh interchange.
Which OpenSCAD features and libraries are supported?
Core language features are supported: 2D and 3D primitives, boolean operations, transforms, loops, modules, functions, list comprehensions, linear_extrude, rotate_extrude, hull, minkowski and text(). External libraries such as BOSL2 or MCAD are not bundled yet, and use<>/include<> of files that are not part of the engine will fail.
Why is the first render slow?
The first render downloads the OpenSCAD engine (about 10 MB), which your browser then caches. After that, simple models render in well under a second. Complex models with minkowski() or high $fn values take longer in any OpenSCAD build; use the Cancel button if a render runs long.