Print a maze gift box: guide and tips
What is a maze gift box?
A maze gift box is a puzzle container in two parts: a core with a handle, whose outside carries a maze of raised walls, and a sleeve that slides over it like a cup. Inside the sleeve sits a small pin that runs between the walls of the maze. Until the pin has found its way all the way to the exit, the sleeve will not come off, and the gift inside stays where it is.
That makes the box the perfect wrapping for a money gift at Christmas or for a birthday, for a voucher, concert tickets or a ring. Instead of tearing open an envelope, the lucky person spends minutes turning and pushing the sleeve, feeling their way through dead ends, and enjoys it all the more when the sleeve finally slides off. Because you cannot see the pin, you have to remember the way or explore it systematically. The maze on the core is visible, but only as long as the sleeve is not on it.
With this generator you design the box yourself: size, cavity, difficulty, a new maze with one click, a name or greeting on the sleeve and, if you like, several colors. Everything is computed in your browser, nothing is uploaded, and the whole design lives in the page link.
How the box works
The maze is made of square cells that run around the core in rows. Every cell is either a wall or a path. From bottom to top the layout is always the same:
- Wall ring right above the handle: it stops the sleeve from sliding further down.
- Resting ring: a path once around the core. This is where the pin sits when the box is closed. In this position the sleeve turns freely, so nobody can see where the way begins.
- Entry row: a wall with exactly one gap into the actual maze.
- The maze: rooms and paths that branch, wind around and end in dead ends.
- Exit at the top: a wall with a single gap. Once the pin reaches it, the sleeve slides off.
The exit always sits above the room that is farthest from the entry. That keeps the solution path long, so the box does not open after two moves.
Inside the core is the cavity: a bore that is open at the top and closed by the end of the sleeve once the box is shut. The sleeve rests on the handle; the handle is a little wider than the sleeve on purpose and has twelve corners, so it is easy to hold on to.
What fits inside?
The size of the cavity follows from the radius, the inner wall and the number of cell rows. The generator shows the exact sizes right next to the model. A few reference points:
| Contents | Size | Matching setting |
|---|---|---|
| Euro banknotes, rolled across | 62–82 mm tall | standard box: Ø 26 × 105 mm |
| Gift card or voucher card | 85.6 × 54 mm | card box: Ø 64 × 88 mm |
| Ring in a small pouch | about 30 mm | ring box: Ø 32 × 49 mm |
| Stacked 2 euro coins | Ø 25.75 mm, 2.2 mm thick | coin tube: Ø 27 × 70 mm, about 30 coins |
For banknotes, roll the note over its short side so that the roll is as long as the note is tall. Three to four notes fit into the standard box together. A card in credit card format cannot be rolled, so it needs the large card box, where it stands upright.
Maze, seed and difficulty
Every maze comes from a seed, a number from which the generator derives all its random decisions. Same seed, same maze: that matters, because it lets you save the link and print exactly the same box again later. The dice button next to the seed gives you a new maze.
You control the difficulty with three things:
- Grid size: more cells around and more cell rows give more rooms. The easy box for kids has 30 rooms, the hard maze 288.
- Maze style: “Long corridors” (recursive backtracking) creates few but very long, winding paths. “Many dead ends” (Prim’s algorithm) keeps branching into short dead ends, as in the dead-end example.
- Pins: with two or three pins the maze repeats around the core. It gets easier that way, but the sleeve sits without play and turns especially smoothly; see the box with two pins.
Next to the maze settings you see how many cells long the solution path is and how many dead ends there are. That is a good way to compare different seeds.
Nested boxes
Under Levels you turn the box into a set of Russian dolls: with two to four levels, every sleeve carries another maze on its outside and is covered by the next sleeve. All sleeves rest on the same handle. To reach the gift you first solve the outermost maze, pull off the outer sleeve, face the next maze, and so on until the core is free. The box with three levels is a good start, the fourfold box is for real puzzle fans.
Because the inner sleeves are printed upside down, their paths are chamfered at the top and the bottom, and their pins have 45° flanks on both sides. The walls of these mazes are therefore at most 0.4 cells high. Every level gets a maze of its own, all derived from the same seed.
Text and colors
You can put a name or greeting on the outer sleeve, such as “Happy birthday”, “Merry Christmas” or a child’s name. Along the sleeve the text reads from bottom to top and can be large; around the sleeve it runs around the circumference. Raised text stands out, engraved text is cut in. You can choose from several fonts, including Pacifico, Lobster or Bangers, or upload a font of your own.
For a printer with a multi-material setup (MMU3, AMS), give the core, the sleeve and the text colors of their own. The text then becomes a separate part inlaid into the sleeve, like the name in yellow or the Christmas gift in red and green. Without one, simply print the core and the sleeve one after the other in different colors. In the 3MF every part is already assigned to the right extruder.
Printing without supports
Both parts come ready to print from the download: the core with its handle down, the sleeve with its closed end down. So that nothing hangs in the air, every corner under a maze wall is filled at 45°. The pin in the sleeve is a wedge whose underside also rises at 45° and runs exactly parallel to those chamfers. That way it slides past the walls without catching.
- Layer height: 0.2 mm works for the standard box. For very small cells under 3.5 mm, use 0.15 mm.
- Material: PLA is ideal because it keeps its size. PETG works too, but rather wants 0.1 mm more play.
- First layer: an elephant foot on the sleeve narrows the opening. Trim the edge with a knife or use your slicer’s elephant foot compensation.
- Infill: 15–20 % is enough; the maze walls are solid anyway.
- Print time: your slicer shows the exact time. Expect a few hours for both parts of the standard box, so start well before the holidays.
Putting it together and opening it
Put the gift into the core. Then set the sleeve on top and find the gap of the exit with the pin. From there you follow the path backwards down to the resting ring at the handle. This is easiest while you can still see the core: memorize the way or take a photo of the core before you give the box away.
Opening is the fun part for the person who gets the gift: hold the handle, turn the sleeve, push it a little, turn again. Whoever gets lost simply pushes the sleeve back to the resting ring and starts over.
If the sleeve sticks or wobbles
Every printer prints a little differently. If the sleeve sticks, increase the sleeve play in steps of 0.1 mm and reprint only the sleeve; under “Parts” you can choose “Sleeves only” for that. If it wobbles too much, go the other way. If the pin catches on the walls, set a smaller pin size; at 0 the generator makes the pin as large as the paths allow. If the pin skips over the walls, the walls are too low: raise the wall height or reduce the pin play. The generator warns you when a setting no longer works safely.
Origin & license
The maze gift box is based on MazeCryptexGenerator by guberti (MIT license). From it come the idea of wrapping the maze as a grid of cells around a cylinder (cell size from radius and cell count, walls one cell high, bore and handle), the rings at the handle and the sleeve with its pin. Our comparison with the OpenSCAD original gives the same volume to within 0.02 % for the same grid. New are the maze generator with its seed, the 45° chamfers for printing without supports, the text option and the nested sleeves.
The idea of nested levels goes back to the Russian Doll Maze Puzzle Box by Adrian Kennard (RevK) and the OpenSCAD remix by AJMartel (both CC BY 4.0). We did not take their geometry with milled grooves; the levels were rebuilt with raised walls. You can find the license text under licenses.
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 |
|---|---|---|---|
| Maze | |||
| Radius | 15 mm | 8 – 45 mm | Radius of the core at the floor of the paths. Together with the inner wall it sets the cavity size. |
| Cells around | 20 | 8 – 80 | Number of maze cells once around the core. More cells make narrower paths. |
| Cell rows | 23 | 9 – 99 | Rows from bottom to top, including the wall ring, the resting ring and the exit. Sets the height of the box. |
| Levels | 1 | 1 – 4 | 1 = core and sleeve. From 2 on, every sleeve carries another maze outside (walls at most 0.4 cells high) and is covered by the next sleeve. |
| Pins | 1 | 1 – 3 | With two or three pins the maze repeats around the core, and the sleeve sits without wobble. |
| Seed | 0 | 0 – 999999 | Start value of the maze: same seed, same maze. The dice makes a new one. |
| Core and handle | |||
| Wall height | 0.45 | 0.25 – 0.8 | Height of the maze walls as a share of the cell size. Higher walls hold the pin more safely but leave it less room. |
| Handle height | 8 mm | 3 – 20 mm | Height of the handle at the bottom of the core. |
| Handle corners | 12 | 0 – 24 | Corners of the handle so it is easy to grip; 0 = round. |
| Handle overhang | 2 mm | 0 – 8 mm | How far the handle sticks out beyond the outer sleeve. |
| Inner wall | 2 mm | 1.2 – 10 mm | Wall thickness between the cavity and the floor of the paths. |
| Floor | 3 mm | 1 – 20 mm | Solid floor above the handle, below the cavity. |
| Sleeve and pin | |||
| Sleeve play | 0.4 mm | 0.1 – 1 mm | Gap between the wall tops and the sleeve. If the sleeve sticks, add 0.1 mm; if it wobbles, take 0.1 mm away. |
| Sleeve wall | 2 mm | 1.2 – 6 mm | Wall thickness of the sleeve (for nested boxes up to the floor of its paths). |
| Sleeve end | 2.4 mm | 1.2 – 8 mm | Thickness of the closed end of the sleeve. |
| Pin size | 0 mm | 0 – 6 mm | Width and height of the pin tip, 0 = as large as the paths allow. |
| Pin play | 0.6 mm | 0.2 – 2 mm | Gap between the pin tip and the floor of the path. |
| Text on the sleeve | |||
| Text size | 0 mm | 0 – 30 mm | Height of the capital letters, 0 = fit the sleeve. |
| Relief depth | 0.8 mm | 0.4 – 2 mm | How far the text stands out or is engraved. |
Frequently asked questions
How do you open the box?
Hold the handle and turn and push the sleeve so that the pin inside follows the paths. At the end of the way it slips through the gap at the top rim, and the sleeve comes off. You cannot see the pin, so you have to feel your way through.
Does a banknote fit inside?
Yes. The standard box has a cavity of 26 mm diameter and just over 10 cm depth. Euro notes are 62 to 82 mm tall and fit when rolled across, several of them together. The generator shows the exact sizes next to the model.
Do I need supports?
No, as long as the 45° paths are switched on. Print the core with the handle down and the sleeve with its closed end down, exactly as they come from the download. The pin and every wall are chamfered at 45° underneath.
The sleeve sticks or wobbles – what now?
Change the sleeve play in steps of 0.1 mm: more play if it sticks, less if it wobbles. If the pin catches in the paths, set a smaller pin size. Often it is enough to remove the elephant foot of the first layer.
Is every maze solvable?
Yes. Every maze has exactly one path from the resting ring at the handle to the exit. The generator always builds a complete maze without islands, and the same seed always gives the same maze.
What is a nested maze box?
With two to four levels, every sleeve carries a maze of its own outside and is covered by the next sleeve, like Russian dolls. To reach the gift you solve the mazes one after the other, from the outside in.
Origin & license
- MazeCryptexGenerator by guberti · MIT · code ported – Cylinder maze from cells (cell size, wall height, bore, handle, rings at the handle) and sleeve with pin ported; maze generator, 45° chamfers and nested sleeves are new.
- Russian Doll Maze Puzzle Box by Adrian Kennard (RevK) · CC BY 4.0 · idea – Idea of nested maze boxes with several pins; own construction with raised walls instead of grooves.
- Russian Doll Maze Puzzle Box (OpenSCAD remix) by AJMartel (Alain74Martel) · CC BY 4.0 · idea – Level structure and 45° knobs as the model for printing without supports; no geometry, maze tables or logos taken.