Put the numbers in the link
Every parameter is a link parameter; the link below opens the example part. ChatGPT, Claude or any assistant can write one like it from the parameter list (names, units, ranges) at: parameter list (JSON)
Say what has to fit inside — or how big the closed box may be — and pick a lid: a sliding lid that clicks shut, a hinged lid printed already assembled, a lift-off, snap-on or magnetic lid, or none. Add compartments and a label, set one fit clearance for every lid, rail and hinge, and print a small fit test first. The box rebuilds live as real CAD and every combination is checked: the lid closes clean, the hinge swings clear, the slide clicks home.
The real generator runs in your browser: set the parameters, then download STEP or STL. Nothing to install, no sign-up.
The first open downloads the CAD engine (about 20 MB).
Each parameter below rebuilds real geometry on every change — this is parametric CAD, not a scaled mesh.
| Parameter | Default | Range | What it does |
|---|---|---|---|
| Sizes areSIZE | Inside | Inside / Outside | Inside: what has to fit in the box. Outside: the closed box — lid, hinge and latch included — for a drawer or a shelf; take 1–2 mm off the drawer's inside so the box slides in. |
| LengthINNER_L | 80 mm | 20 – 300 | Inside (or outside) length. The box must fit your printer's bed — pick it below. |
| WidthINNER_W | 50 mm | 20 – 300 | Inside (or outside) width. |
| HeightINNER_H | 30 mm | 10 – 250 | Inside: from the floor to the closed lid (on a hinged box the base — Lid depth adds the lid on top). Outside: the closed box's whole height. |
| WallWALL | 2 mm | 1.2 – 8 | 2 mm is five 0.4 mm lines. Snap-on, lift-off and magnetic lids keep their groove or lip in the wall and need a little more than 1.2. |
| FloorFLOOR | 1.6 mm | 1.2 – 16 | Eight 0.2 mm layers by default; thicker for heavy contents. |
| Corner radiusCORNER_R | 3 mm | 0 – 20 | Outside corners; the inside rounds by this less the wall. The sliding lid rounds with the box. |
| Lid typeLID | Sliding | Sliding / Hinged / Lip / Snap-on / Magnetic / None | A sliding lid with a click and finger grooves, a hinged lid, a lid that lifts off a lip, a snap-on lid, a lift-off lid held by eight magnets, or none. |
| Fit clearanceCLEARANCE | 0.25 mm | 0.1 – 0.5 | Gap per side between parts that slide or turn. 0.25 suits a tuned printer in PLA; add 0.05–0.1 for PETG. Hinges get 0.1 more, never under 0.3. |
| HingeHINGE | Print-in-place | Print-in-place / Pin / Filament pin | Hinged lid only: printed already assembled, or with a pin you push in — a printed pin or an M3 screw, or a length of 1.75 mm filament. |
| LatchLATCH | Clip | Clip / Toolbox clasps / Magnets / None | Hinged lid only. Clip: stands on the box and clicks into the lid; pull its tip out to open — stays shut in a bag (needs the base 11 mm deep inside, and makes the lid at least 6.4). Toolbox clasps: hook over a screw, the firmest; each takes two M3 × 30 screws. Magnets: hold the lid down, lift with a tug. One latch up to 100 mm long, two up to 200, three above. |
| Lid depthLID_DEPTH | 10 mm | 4 – 60 | Hinged lid only: how deep the lid is inside — at least 4 mm (deeper on its own where the hinge or the clip needs it), never deeper than the base. |
| Magnets (diameter × thickness)MAGNET | 6x2 mm | 6x2 / 6x3 / 8x2 / 8x3 / 10x2 / 10x3 | Magnetic lid: eight magnets — four in posts in the box's corners, flush with the lip, four in the lid. Hinged lid's magnet latch: four. 6 × 2 is the Gridfinity magnet; pockets are 0.2 mm over size for a drop of glue. |
| Compartments along the lengthDIV_X | 1 | 1 – 12 | Compartments side by side along the length (1 = no dividers). Dividers are 1.6 mm thick, so each compartment is (Length − 1.6 × (count − 1)) ÷ count: 7 in 116 mm are 15.2 mm each. |
| Relative widths along the lengthCELLS_X | e.g. 1 2 1 | Uneven compartments: relative widths, one per compartment — 1 2 1 makes the middle one twice as wide. Widths in mm are scaled to fill the inside the same way, so they come out exact when they add up to the length minus 1.6 mm per divider. | |
| Compartments along the widthDIV_Y | 1 | 1 – 12 | Compartments along the width. |
| Relative widths along the widthCELLS_Y | e.g. 2 1 | Uneven compartments along the width, as above. | |
| Divider heightDIV_H | 100 % | 20 – 100 | Lower dividers make small parts easier to pick out. At 100 % they stop 0.2–0.5 mm under the lid, so small parts cannot hop over — a hinged lid gets ribs on the same lines to close its own depth too. |
| Label textLABEL | text | Engraved into the lid so it reads the right way when the lid is shut (an open box carries it on the front), as big as fits: letters up to a third of the inside width tall, smaller for long text. Letters A–Z without accents, numbers and common symbols. | |
| Label styleLABEL_STYLE | Engraved | Engraved / Inlay | Engraved 0.6 mm deep, or an inlay: the letters as a separate part flush in the engraving, in a second colour — for a printer that prints two filaments in one layer (AMS, MMU). |
| StackableSTACKABLE | off | on / off | Open boxes only: the bottom steps in with a 45° shoulder, so it drops into the rim of the box below. |
| Printer bedBED | 256 x 256 | 180 – 320 (7 printers) | The lid is laid out beside the box in whichever direction fits, 6 mm apart and 2 mm clear of the bed's edge; if it cannot share the plate it is named “lid (second plate)”. A print-in-place hinged box prints open in one piece, so it has to fit side by side. |
| Fit test print onlyFIT_TEST | off | on / off | A 40 × 30 mm (inside) box with the same lid, clearance, wall and corners — about twenty minutes of print to check the fit before the real one; glue its magnets in too. |
Every parameter can go in the page's link, so one link opens exactly the part you want. Example (120 × 80 × 40 mm inside, sliding lid, 3 compartments):https://www.forgent3d.com/en/generators/parametric-box-generator?INNER_L=120&INNER_W=80&INNER_H=40&LID=sliding&DIV_X=3
STEP AP214 in millimetres, exact B-rep — it opens directly in SolidWorks, Fusion, FreeCAD, Onshape or Inventor, and goes straight into a CNC quote form. STL for the slicer is one click too.
| This generator | Typical online STL generator | Vendor CAD library | |
|---|---|---|---|
| Any size within the range | Yes | Yes | Catalog sizes only |
| STEP with exact surfaces | Yes | Usually an STL mesh only | Yes |
| Changes the sliders don't cover | “AI edit” on the page | No | No |
| Account needed to download | No | Usually no | Often |
Every parameter is a link parameter; the link below opens the example part. ChatGPT, Claude or any assistant can write one like it from the parameter list (names, units, ranges) at: parameter list (JSON)
Press “AI edit” in the generator and say what to change — a keyway, holes, a different shape. The AI edits the part's model.py and it rebuilds in your browser, with undo. A few edits a day are free without signing in; to keep the result or go further, copy it into your models and continue with the AI agent.
Edit with AI →For bigger changes, several rounds, or a part you want to keep: copy it into your models (free account). The Forgent3D AI agent reads the model.py, edits it, rebuilds it and checks the result itself.
Copy and continue with the AI agent →Sliding for the classic pencil-box feel — it clicks home and has finger grooves to pull it open. Hinged for a box you open often: print-in-place comes off the printer assembled; the pin hinge is the robust choice for big boxes or a printer that fuses hinges. Lift-off for a simple dust cover; for a box that rides in a bag, snap-on or a hinged lid with the clip or toolbox clasps; magnetic for a lift-off lid that pulls down onto eight magnets (it comes off with a tug); none for trays and stackable bins. Lift-off and magnetic lids have a finger notch at the left end, the snap-on lid a thumb tab there.
The fit clearance: the gap per side between parts that slide or turn. 0.25 mm suits a tuned printer in PLA; add 0.05–0.1 for PETG or a printer that over-extrudes, take 0.05 off if the lid rattles. Hinges always get 0.1 more and never less than 0.3. Switch on “Fit test print only” to print a 40 × 30 box with the same lid in about twenty minutes before the long print.
Your choice. Inside (the default) is what goes in: Length × Width × Height from the floor to the closed lid. Outside is the whole closed box — lid, hinge barrel and latch included — for a drawer or a shelf: take 1–2 mm off the drawer's inside so the box slides in. On a hinged box, Height is the base and Lid depth adds the lid.
Usually over-extrusion, elephant's foot or fuzzy skin bridging the gap. The hinge gets 0.35 mm at the default clearance; turn fuzzy skin off, never scale the file in the slicer (that changes the gaps — change the size here instead), and if it still fuses raise the clearance or pick the pin hinge (a printed pin, an M3 screw or 1.75 mm filament).
Pick your printer's bed. The lid is laid out beside the box in the direction that fits; when the two cannot share one plate the lid is named “lid (second plate)” — split it off in your slicer. A print-in-place hinged box prints open in one piece, so it has to fit side by side, or use the pin hinge.
No supports: lids print face down with the label on the bed side, sliding rails and lips are 45°, and every edge on the bed has a small chamfer against elephant's foot. 0.2 mm layers and three or more walls; a brim for boxes over 150 mm in PETG. Press magnets in with a drop of glue and mind the poles — the lid's must attract the box's.
https://www.forgent3d.com/en/generators/parametric-box-generator?INNER_L=120&INNER_W=80&INNER_H=40&LID=sliding&DIV_X=3 — the sizes are the inside of the box. Download STL to print box and lid, or STEP to edit.
https://www.forgent3d.com/en/generators/parametric-box-generator?SIZE=outside&INNER_L=200&INNER_W=100&INNER_H=60&LID=none&DIV_X=3 — with Sizes set to Outside the numbers are the whole box, so it drops into the drawer; the inside is what the walls leave.
Yes. Models you generate and the STL / STEP files you export are yours: print them, sell the prints, or use them in a product. No attribution to Forgent3D is required.
Already have your own .scad file? Convert OpenSCAD to STEP → · Preview it in the browser → · Have an STL? Convert it to STEP →