Print a box with a friction-fit lid to your measurements
A box with a lid that simply stays on
A box with a friction-fit lid is the oldest trick in storage: a container, a lid, and nothing in between. You lift the lid off, put things in, and press it back on. No hinge to break, no groove to clean, no screw to lose. This generator makes that box to your measurements: for screws and nuts, coins, guitar picks, batteries, resistors, playing cards, pills or a small gift.
You set the inner size and the generator adds walls, floor and lid around it. Round the corners as much as you like, split the box into a grid of compartments, cut a thumb notch so the lid lifts off easily, and give the lid its own color. Box and lid come out side by side on one plate, flat, without supports.
You’ll find ready-made versions among the examples, such as the small parts box with four compartments, the resistor organizer with 15 compartments or the card box for a poker deck.
How the generator works
The generator runs entirely in your browser. Nothing is uploaded, and your design lives in the link: use “Share” to send exactly this box to someone, or bookmark it. Every change shows up in the 3D preview right away.
- Enter the inner size under “Size”: “Inner width”, “Inner depth” and “Inner height”.
- Check “Wall thickness”, “Floor thickness” and “Corner radius”.
- Set the fit under “Lid and fit”, mainly the “Play”.
- Split the box into compartments under “Compartments”.
- Choose the colors and download the file as STL or 3MF.
Under the size fields the generator shows the outer size live. The default box, 60 × 40 × 30 mm inside, measures 64 × 44 mm on the outside and 33.6 mm tall with the lid on.
How the lid fits
The lid is a flat plate with the outline of the box. On its underside it has a plug ring that reaches into the opening. The ring follows the inner outline of the box, including the rounded corners, but it is smaller by the “Play” on each side. With the default 0.2 mm, the ring sits in the box with a gap of 0.2 mm all around, and that’s the amount of friction you feel. The ring is hollow, “Ring thickness” 1.2 mm by default, which is three lines with a 0.4 mm nozzle. It flexes a little, which makes the fit forgiving of small differences between printers.
“Plug depth” (4 mm by default) says how far the ring reaches into the box. A deeper ring holds better and keeps the lid from shifting sideways, but it also takes room under the lid. If the box is too low for the plug depth you set, the generator shortens the ring and tells you.
The top edge of the ring has a small lead-in: its last 0.4 mm step inward in two stages of 0.15 and 0.3 mm. So the ring finds the opening on its own and you don’t have to aim.
The thumb notch
A friction-fit lid needs something to pry it off. The “Thumb notch” is a slot in the front wall of the box, right under the lid plate. It is 14 mm wide and 5 mm deep by default. Slide a fingernail in, lift, and the lid comes off. The notch is a plain vertical cut, so it prints without any support. The generator narrows it if it would touch the rounded corners and leaves it out if the front wall is too short. Set it to 0 and the wall stays closed, for example for a box that should not be opened by accident.
Setting size and fit
| Setting | Range | Default |
|---|---|---|
| Inner width | 10–170 mm | 60 mm |
| Inner depth | 10–170 mm | 40 mm |
| Inner height | 6–150 mm | 30 mm |
| Wall thickness | 1.2–5 mm | 2 mm |
| Floor thickness | 0.8–5 mm | 1.6 mm |
| Corner radius | 0–20 mm | 4 mm |
| Lid thickness | 1–5 mm | 2 mm |
| Plug depth | 2–12 mm | 4 mm |
| Ring thickness | 0.8–3 mm | 1.2 mm |
| Play | 0–0.6 mm | 0.2 mm |
All sizes are inner sizes: measure what you want to store and add a millimeter or two of room. The “Inner height” runs from the floor to the rim; the lid plate sits on top of it. The corner radius applies to the outer edges. The inside gets the same radius minus the wall, so the wall stays even; with a radius smaller than the wall, the inside corners are square.
The play is the most important value. Below 0.1 mm the generator warns you, because the lid then binds on most printers. If your first lid is too tight, add 0.05 mm and reprint only the lid with “Parts” set to “Lid only”. That takes minutes, not an hour.
Compartments
Under “Compartments” you set “Columns” (from left to right) and “Rows” (from front to back). Two columns and two rows give four equal compartments, as in the small parts box. Seven columns in a slim box make a weekly pill box. The dividers have the “Divider thickness” (1.2 mm by default) and are spread so that all compartments are equally large; the smallest one is shown in the section’s summary.
The “Divider height” is a percentage of the space under the lid ring. The ring reaches into the box, so the dividers must stop below it, or the lid wouldn’t close. At 100 % they end 0.4 mm below the ring. Lower dividers make it easier to get things out, and they print faster. If a compartment gets narrower than 8 mm, the generator warns you.
Colors and multi-material printing
The box has two colors, “Box” and “Lid”. Left empty, the lid takes the color of the box. Give it a color of its own and it becomes a separate part, as in the jewelry box with the pink lid or the resistor organizer.
Downloads come as “Multi-color 3MF (PrusaSlicer)” for an MMU3, XL or Core One, “3MF (Bambu Studio / OrcaSlicer)” for printers with an AMS, and “STL per color (ZIP)” for any other slicer. Because box and lid don’t touch on the plate, nothing needs to be printed inside or under the other part. With a single nozzle, set “Parts” to “Box only” or “Lid only” and print them one after the other with a filament change in between.
Printing tips
- Orientation: as the generator lays them out. The box stands with its opening up, the lid lies on its plate with the ring pointing up. No supports needed.
- Layer height: 0.2 mm. The lead-in on the ring is built in steps that match this height.
- Material: PLA or PETG. PETG is a bit springy and often wants 0.05 mm more play.
- First layer: elephant’s foot makes the lid plate’s first layer slightly wider; that doesn’t affect the fit, because the ring is above it. The bottom edge of the box is not part of the fit either.
- Time and material: the small parts box with four compartments takes 40.6 g of filament and 1 h 13 min on a Prusa MINI with the “0.20mm SPEED” profile and Prusament PLA. The resistor organizer takes 54.4 g and 1 h 39 min, the card box 44.6 g and 1 h 19 min, and the weekly pill box 26.1 g and 52 min.
With automatic supports turned on, none of these boxes got a single support line, and the filament weight stayed the same.
Which box when?
The site has several box generators, and each one has its strengths:
- This box is the plainest: lift off, put in, press on. It needs the least material for the lid, makes no demands on your printer beyond a good play value, and gives you rounded corners and a grid of compartments.
- The sliding lid box has a lid that slides in grooves and clicks shut. Choose it when the lid must not fall off, for example in a school bag, or when you want an SD card comb.
- The hinged box keeps the lid attached with a hinge and a snap latch, and it prints in one piece. Choose it for boxes you open many times a day.
- The vase mode box prints in a single spiral line and is the fastest and lightest. Choose it for large, thin-walled tins.
Origin and license
The friction-fit box with an inner plug and optional dividers is a classic that many designers have published as an OpenSCAD model. This generator is an independent design: Parametric box for OpenSCAD by Johny5, Simple parametric box and lid by cryxli, Box with cover and division parametrisable by Michal Houdek, Customizeable box with lid by Gladius, Custom lidded box OpenSCAD by Tilead and Rounded rectangular containers with lid by Dust are credited as inspiration. No code and no dimensions were taken from them; the geometry, the lead-in on the ring, the thumb notch under the lid and the way the dividers stop below the ring are our own. The licenses are listed on the licenses page.
Try it right away in the generator, browse the examples, and if you’d rather have a lid that slides, have a look at the sliding lid box.
All parameters
The numeric settings of the generator with their default values and allowed ranges. Text, fonts, patterns and colors are set directly in the generator.
| Parameter | Default | Range | Meaning |
|---|---|---|---|
| Size | |||
| Inner width | 60 mm | 10 – 170 mm | Clear width from left to right. The outside adds two walls. |
| Inner depth | 40 mm | 10 – 170 mm | Clear depth from front to back. The thumb notch is in the front wall. |
| Inner height | 30 mm | 6 – 150 mm | From the floor to the rim. The lid adds its plate on top. |
| Wall thickness | 2 mm | 1.2 – 5 mm | 1.2 mm is three lines with a 0.4 mm nozzle, 2 mm feels solid. |
| Floor thickness | 1.6 mm | 0.8 – 5 mm | Thickness of the floor. |
| Corner radius | 4 mm | 0 – 20 mm | Rounding of the vertical outer edges, 0 = square. The inside is rounded by the same amount less the wall. |
| Lid and fit | |||
| Lid thickness | 2 mm | 1 – 5 mm | Thickness of the lid plate. Thicker is stiffer. |
| Plug depth | 4 mm | 2 – 12 mm | How far the ring of the lid reaches into the box. Deeper holds better but needs more room under the lid. |
| Ring thickness | 1.2 mm | 0.8 – 3 mm | Wall thickness of the plug ring. 1.2 mm is three lines and flexes a little, which helps the friction fit. |
| Play | 0.2 mm | 0 – 0.6 mm | Gap between ring and wall on each side. 0.2 mm suits most printers; if the lid binds, add 0.05 mm, if it is loose, take 0.05 mm away. |
| Thumb notch | 14 mm | 0 – 40 mm | Width of the slot in the front wall under the lid, where your fingernail lifts the lid. 0 = none. |
| Notch depth | 5 mm | 2 – 12 mm | How far the slot reaches down from the rim. |
| Compartments | |||
| Columns | 1 | 1 – 10 | Compartments from left to right. |
| Rows | 1 | 1 – 10 | Compartments from front to back. |
| Divider thickness | 1.2 mm | 0.8 – 3 mm | 1.2 mm is three lines with a 0.4 mm nozzle. |
| Divider height | 100 % | 20 – 100 % | In percent of the space under the lid ring. At 100 % the dividers stop 0.4 mm below it. |
Frequently asked questions
The lid is too tight or too loose, what now?
Change the “Play” by 0.05 mm and reprint only the lid: set “Parts” to “Lid only”. If the lid binds, add play; if it wobbles, take some away. The default of 0.2 mm per side suits most well-tuned printers; PETG often wants 0.05 mm more than PLA.
Do I need supports?
No. The box stands with its opening up and the lid lies upside down on its plate, with the ring pointing up. Nothing hangs over. In a test slice with PrusaSlicer’s automatic supports turned on, not a single support line appeared and the filament weight did not change.
How does the lid stay on?
By friction. The ring on the underside of the lid fits into the opening with a gap of the “Play” on each side. The thin ring flexes slightly, and the layer lines of ring and wall grip each other. That keeps the lid on even in a bag, yet it lifts off with a fingernail in the thumb notch.
When should I use this box instead of the sliding lid box, the hinged box or the vase mode box?
Take this one when you want the plainest box: lift off the lid, put things in, press it back on. The sliding lid box needs more width for its grooves, but its lid cannot fall off; the hinged box keeps the lid attached and prints in one piece, and the vase mode box saves time with single-wall spiral walls.
Can I print the lid in another color?
Yes. Box and lid have their own colors and are exported as separate parts, as 3MF for PrusaSlicer or Bambu Studio. They sit side by side on the plate, so any multi-material printer can print both in one go. With a single nozzle, print them one after the other with “Parts”.
How large can the box be?
The outside is the inner size plus two walls, so up to 180 mm with 170 mm inside and 5 mm walls. If box and lid don’t fit side by side on a 180 mm bed, the generator puts them one behind the other, and if that fails too it tells you to print them one at a time.
Origin & license
- Parametric box for OpenSCAD by Johny5 · CC BY 4.0 · idea – idea: a plain box with a push-in lid and optional dividers (own geometry, no code and no dimensions taken)
- Simple parametric box and lid by cryxli · CC BY 4.0 · idea – idea: a plain box with a push-in lid and optional dividers (own geometry, no code and no dimensions taken)
- Box with cover and division parametrisable by Michal Houdek · CC BY 4.0 · idea – idea: a plain box with a push-in lid and optional dividers (own geometry, no code and no dimensions taken)
- Customizeable box with lid by Gladius · CC BY 4.0 · idea – idea: a plain box with a push-in lid and optional dividers (own geometry, no code and no dimensions taken)
- Custom lidded box OpenSCAD by Tilead · CC BY 4.0 · idea – idea: a plain box with a push-in lid and optional dividers (own geometry, no code and no dimensions taken)
- Rounded rectangular containers with lid by Dust · CC BY 4.0 · idea – idea: a plain box with a push-in lid and optional dividers (own geometry, no code and no dimensions taken)