PCB Enclosure Generator
Open your board and get a 3D-printable box that fits its exact outline — standoffs under the mounting holes, a lid that drops into place, and STL or 3MF ready for your slicer. Everything runs in your browser; the board file never leaves your device.
What it makes
The generator traces your board outline (not just its bounding box), grows it by the gap you choose, and builds walls and a floor around it. Odd shapes — round LED rings, L-shaped boards, cut-out corners — get a box of the same shape. The lid is laid out flat next to the box, so both parts print without supports.
What you get
- Outline-fitted walls — Follows the real board edge, including curves and notches, with an adjustable gap all round.
- Standoffs — One post under every mounting hole, with a pilot hole sized for a self-tapping screw (about 80% of the hole diameter).
- Ledge for hole-less boards — No mounting holes? The board rests on a 1 mm ledge along the inner wall instead.
- Drop-in lid — A plate with a locating lip that sits inside the walls, with a printing tolerance you can tune.
- STL and 3MF — Both parts in one file, already oriented for printing.
- Live 3D preview — The box is drawn around your board in the viewer and updates as you change the numbers.
Default dimensions
| Setting | Default | Allowed range |
|---|---|---|
| Wall thickness | 2 mm | 0.8–10 mm |
| Floor thickness | 2 mm | 0.8–10 mm |
| Gap around the board | 0.5 mm | 0–10 mm |
| Board height above the floor | 5 mm | 1–30 mm |
| Room above the board | 12 mm | 1–100 mm |
| Lid thickness | 2 mm | 0.8–10 mm |
| Lid lip height | 3 mm | 0–15 mm |
| Lid fit tolerance (per side) | 0.25 mm | 0–1 mm |
These are the starting values in the tool. Board thickness comes from your file.
How to use it
1. Open your board — KiCad, Gerber, Eagle, EasyEDA, Altium, PADS, P-CAD, Protel 99, or a Gerber ZIP.
2. Click Case in the toolbar.
3. Set the gap, wall, standoff height and the room your tallest part needs.
4. Check the ghosted box around the board in 3D.
5. Download STL or 3MF and slice it — no supports needed.
What it doesn't do (yet)
Openings for USB ports, headers and switches are not cut automatically — the file does not tell us reliably where each connector meets the edge or how tall it is. Cut them in your slicer or CAD tool. There are no snap fits or screw bosses in the lid in this version.
FAQ
Which screws fit the standoffs?
The pilot hole is about 80% of the board's mounting-hole diameter, which suits a self-tapping screw of the hole's size — for a 3.2 mm hole, an M3 self-tapping screw. For machine screws, drill the hole out or add a heat-set insert.
What material and settings should I print with?
PLA or PETG at 0.2 mm layers works for most boxes. The box prints upright with the open top facing up and the lid prints plate-down, so neither needs supports. Use 3 or more wall perimeters if you want a stiff case.
The lid is too tight or too loose. What do I change?
Change the lid fit tolerance. It is the gap per side between the lid lip and the inner wall; raise it by 0.1 mm if the lid will not go in, lower it if it rattles. Printers differ, so a quick test print helps.
Can I add cut-outs for connectors?
Not automatically in this version. Import the STL into your slicer (most can subtract a box shape) or a CAD tool such as Fusion or FreeCAD and cut the openings there.
Is my board file uploaded anywhere?
No. Parsing and the 3D geometry both run in your browser with WebAssembly. Nothing is sent to a server.
Make a case for your board
Free, in the browser, no account. Your file is processed on your own computer.