
The LyraMaker Hinged Box Generator builds a storage box with a lid on a real pin hinge and a latch that clicks shut — the two parts most printed boxes get wrong.
Set the size inside or out, the wall thickness, the hinge and the closure, then download the box, the lid and the pin together or one by one as STL or 3MF.
The LyraMaker Hinged Box Generator creates 3D printable boxes with a hinged lid in your browser. The box and the lid are separate parts joined by a pin through interleaved knuckles, and a long snap latch or a pair of magnets keeps the lid closed.
Printed hinges usually fail in three ways: the parts do not fit, they fuse and will not turn, or a thin snap-in pin breaks. This generator avoids all three. The knuckles have an axial gap and the hinge axis sits clear of the walls, so the lid swings a full 180° without rubbing — every size is checked for collisions as it rotates. The pin holes are teardrop-shaped so they keep their size when printed sideways, and the load is carried by a filament, metal or flat-printed pin rather than a thin plastic peg. The latch tab is long so it bends only a little, and its ridge has a 45° face, so it clicks shut, opens with a pull, and prints without supports.
Boxes are built with OpenSCAD WebAssembly in your browser — nothing is uploaded. For simpler storage, try the box generator with push-fit and sliding lids, or explore every LyraMaker generator.
Print-in-place hinges and thin snap-in pegs are where most printed boxes fail: they fuse, refuse to turn or snap off after a few openings. By default the box and the lid each print on their own and a pin goes through the knuckles — a piece of 1.75 mm filament, a nail or rod, or a pin you print lying flat. The pin carries the load, the plastic only turns around it, so the hinge stays free and does not break. If you would rather not use a pin, the Snap-in option joins them with bumps and pits instead.
Yes — choose Snap-in. Every lid knuckle then carries a cone or dome bump on each side, and the box knuckles beside them have matching pits with a channel leading in from behind. Lay the lid open behind the box, slide it forward along the channels and press: the outer bumps ride up short ramps so the box's side walls flex outward a fraction of a millimetre, the inner ones squeeze past a slight neck, and all of them click into their pits, where they turn as the hinge axle. A higher bump holds better but needs more force; 1 mm suits most boxes. The pin hinge is still the strongest choice for big or heavy boxes.
Close the lid on the box so the knuckles line up, then push the pin in from the open end — the far end of the hole is closed, so it stops there. With filament, cut it a little long, push it in and melt the protruding end with a lighter or soldering iron so it cannot slide out. A printed pin has a head; a drop of glue under the head keeps it in place.
Change the pin clearance. 0.15 mm per side suits most printers; if the pin will not go in, raise it to 0.2–0.25 mm, and if the lid wobbles, lower it to 0.1 mm. The holes are teardrop-shaped so they keep their size when printed sideways. If the knuckles rub against each other, raise the knuckle gap.
The lid has a long, thin tab that hangs over the front of the box; a small ridge on it clicks into a groove in the box. Because the tab is long, it bends only a fraction of a millimetre, which plastic tolerates thousands of times. Pull the tab's lip outward to open. If you prefer, choose magnets instead: round magnets press into pockets in the box and lid.
Download them laid out for printing: the box stands upright, the lid lies upside down. Neither needs supports — the hinge knuckles sit on a 45° slope. Use 3 walls, 15–20% infill, and PLA or PETG. Print one test box at a small size first if you are unsure of your printer's tolerances.