Parametric box generator: the inside you need, the lid you want, sized for your printer

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.

Open the generator →Edit with AI

Use it right here

The real generator runs in your browser: set the parameters, then download STEP or STL. Nothing to install, no sign-up.

Parametric Box Generator

The first open downloads the CAD engine (about 20 MB).

Parameters you can tune

Each parameter below rebuilds real geometry on every change — this is parametric CAD, not a scaled mesh.

ParameterDefaultRangeWhat it does
Sizes areSIZEInsideInside / OutsideInside: 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_L80 mm20 – 300Inside (or outside) length. The box must fit your printer's bed — pick it below.
WidthINNER_W50 mm20 – 300Inside (or outside) width.
HeightINNER_H30 mm10 – 250Inside: 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.
WallWALL2 mm1.2 – 82 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.
FloorFLOOR1.6 mm1.2 – 16Eight 0.2 mm layers by default; thicker for heavy contents.
Corner radiusCORNER_R3 mm0 – 20Outside corners; the inside rounds by this less the wall. The sliding lid rounds with the box.
Lid typeLIDSlidingSliding / Hinged / Lip / Snap-on / Magnetic / NoneA 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 clearanceCLEARANCE0.25 mm0.1 – 0.5Gap 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.
HingeHINGEPrint-in-placePrint-in-place / Pin / Filament pinHinged 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.
LatchLATCHClipClip / Toolbox clasps / Magnets / NoneHinged 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_DEPTH10 mm4 – 60Hinged 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)MAGNET6x2 mm6x2 / 6x3 / 8x2 / 8x3 / 10x2 / 10x3Magnetic 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_X11 – 12Compartments 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_Xe.g. 1 2 1Uneven 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_Y11 – 12Compartments along the width.
Relative widths along the widthCELLS_Ye.g. 2 1Uneven compartments along the width, as above.
Divider heightDIV_H100 %20 – 100Lower 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 textLABELtextEngraved 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_STYLEEngravedEngraved / InlayEngraved 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).
StackableSTACKABLEoffon / offOpen boxes only: the bottom steps in with a 45° shoulder, so it drops into the rim of the box below.
Printer bedBED256 x 256180 – 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_TESToffon / offA 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

What's in the STEP file

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.

How it compares

This generatorTypical online STL generatorVendor CAD library
Any size within the rangeYesYesCatalog sizes only
STEP with exact surfacesYesUsually an STL mesh onlyYes
Changes the sliders don't cover“AI edit” on the pageNoNo
Account needed to downloadNoUsually noOften

Let AI change it

Edit with AI on the page

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 →

Keep going in your workspace

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 →

How it works

  1. 1.Open the generator — the model builds right in your browser, nothing to install.
  2. 2.Tune dimensions and options in the parameter panel; the geometry rebuilds live in 3D.
  3. 3.Export STL / STEP for printing — or ask the AI agent for features beyond the sliders.

FAQ

Which lid should I pick?

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.

My lid was too tight (or too loose) — what do I change?

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.

Are the sizes inside or outside?

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.

The print-in-place hinge came out fused — why?

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).

Why does it say my box does not fit my printer?

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.

How do I print it?

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.

How do I make a 120 × 80 × 40 mm box with a sliding lid and three compartments?

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.

How do I make a box that fits a 200 × 100 × 60 mm drawer?

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.

Can I sell prints made with these generators?

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.

More generators

Already have your own .scad file? Convert OpenSCAD to STEP → · Preview it in the browser → · Have an STL? Convert it to STEP →