Printing a travel soap box: size, material, tips
A soap box made to measure
Bar soap, shampoo bars and conditioner bars are great for travel: nothing leaks, no 100 ml limit in your carry-on, no plastic bottles. What they need is a box in which they can dry after a shower instead of sitting in their own soapy water. With this generator you print a travel soap box that fits your bar exactly: a bottom, a lid with air holes and a drain insert that keeps the soap above the floor.
The box has three parts. The bottom is a box with rounded corners whose upper half steps in to a thin collar. The lid slides over that collar and clicks in with a small bead on both short ends. Its plate carries a hexagonal field of air holes. Horizontal grip ribs on the long sides of lid and bottom help you open it with wet fingers. The drain insert is a grid with hexagon holes that stands on four corner feet and has a finger notch on one end. You’ll find every example in the gallery, for instance the standard travel box or the box for a shampoo bar.
How the generator works
The generator runs entirely in your browser. You set the sizes, the preview rebuilds the three parts right away, and at the end you download an STL or 3MF file. Nothing is uploaded, you don’t need an account, and your design lives in the link (“Share”), so you can bookmark it or send it to someone.
The parts lie on the bed the way you print them: bottom and lid on the left, one above the other, the insert to the right. If that doesn’t fit a 180 mm bed like the Prusa MINI’s, the generator stacks the parts in three rows instead. If that is still too big, you get a warning and print the parts one at a time; just switch off “Lid”, “Bottom” or “Drain insert” under “Parts”.
Measuring the bar and choosing a size
The key setting is the inner size. Measure your bar at its widest point with a ruler or calipers and add 3–5 mm to length and width. Soap shrinks over time, but a fresh bar is often bigger than you think. For the “Inner depth” take the bar height plus the insert (a 2 mm plate on 3 mm feet, 5 mm together) plus a few millimeters of air, because the lid isn’t domed: its plate sits right on the collar.
“Preset” offers ready sizes for the usual cases:
| Preset | Inner size (L × W × D) | for |
|---|---|---|
| Soap bar | 85 × 65 × 35 mm | a regular bar, 100–125 g |
| Shampoo bar | 75 × 75 × 35 mm | round shampoo and conditioner bars up to 72 mm |
| Guest soap | 60 × 45 × 25 mm | guest and hotel soaps |
| Large bar | 100 × 68 × 40 mm | natural soaps, shaving soap |
| Razor and soap | 140 × 50 × 30 mm | a safety razor plus a bar |
The outside grows by the “Wall thickness” all around (3.5 mm by default). The standard box is 92 × 72 mm outside and 38.2 mm tall when closed. Inner length and width go from 30 to 160 mm, the depth from 15 to 80 mm.
Lid, snap fit and air holes
The lid fits over the collar of the bottom. “Collar height” sets how far it slides on; with 0 the generator uses half the inner depth, like the original. “Collar width” (1.5 mm by default) splits the wall: what the collar gets, the lid’s skirt loses. With a 3.5 mm wall and 0.4 mm play the skirt keeps 1.8 mm.
The most important setting for the fit is “Lid play”. The default 0.4 mm gives a snug lid on most well-tuned printers without binding. If your printer prints a little fat, try 0.45 or 0.5 mm. If the lid wobbles, go down to 0.3 or 0.35 mm. Always change it in small 0.05 mm steps.
The snap fit is a trapezoid bead on both short ends of the collar and a matching groove in the lid. “Bead depth” (0.85 mm by default) sets how firmly it clicks. The groove is longer than the bead by the “Groove allowance” at each end, so nothing jams. For kids or a stiff material you can switch it off; then the lid holds by friction only, as in the variant without a snap fit.
The air holes form a hexagonal field: the middle row has as many holes as “Holes in the middle row”, each row further out one fewer. With 9 holes of 2.5 mm that makes 61 holes. The generator warns you if the field reaches the lid’s skirt. Set “Hole diameter” to 0 for a closed lid.
Under “Lid text” you can engrave a name or “Shampoo” into the top. Because the lid prints upside down, the text is mirrored in the model and reads right on the finished box. Air holes under the text are left out. Nice examples are the conditioner box with a label and the kids’ soap box “Mia”.
Grip ribs and drain insert
The grip ribs sit on both long sides, halfway up the wall of bottom and lid. The middle rib is as long as the “Rib length”, each further row two rib thicknesses shorter, which makes a flat diamond you can feel easily. In the original the ribs are round beads; here they get a 45° chamfer underneath so they print cleanly without supports. Ribs that don’t fit between floor and collar are left out, and the generator tells you how many remain.
The drain insert is smaller than the inside by the “Insert play” (0.4 mm) all around. It is a 2 mm grid plate with hexagon holes (“Hole size” 3 mm, “Web width” 2 mm) on four 3 mm feet in the corners. “Hole rounding” gives the hexagons soft corners, as in the example with rounded drain holes. The “Finger notch” on one short end helps you pull the insert out for cleaning. You can also print it on its own as a drain grid for a soap dish by the sink.
Colors
Bottom and insert share one color, the lid can have a second. With a lid color of its own the 3MF file holds two objects that PrusaSlicer, Bambu Studio and OrcaSlicer assign to different filaments right away. No color change during the print is needed: the parts sit side by side and each one is a single color. Without a multi-material setup, download “STL per color (ZIP)” and print box and lid one after the other. See the two-color soap box.
Material: PETG rather than PLA
A soap box gets wet, sits in a warm bathroom and spends summer days in a car or a backpack in the sun. PETG is the best choice: it hardly takes up water, copes with soapy water and warm water and only softens around 75–80 °C. PLA works too but softens from about 55 °C; in a hot car the lid can warp and then bind. PP (polypropylene) would be ideal chemically but sticks poorly to the bed.
About skin and food contact: for soap and brief contact with skin PLA and PETG are harmless. A printed part is not food safe in the strict sense, though. Fine grooves between the layers can hold residue and germs, and dyes or additives in filament are rarely certified. So use the box for soap, shampoo, a razor or earplugs, not for food. Rinse it with warm water now and then and let it dry open; a dishwasher is too hot for PLA.
Printing tips
All three parts print without supports. The bottom stands on its floor, the lid lies top side down, the insert lies grid down with its feet pointing up. Bead and groove are only 0.85 mm deep, and any printer handles their slopes cleanly.
For reference, a real slice of the standard box (all three parts on one plate) in PrusaSlicer, Prusa MINI with input shaper, profile “0.20mm SPEED”, Prusament PLA, 15 % infill, two perimeters:
| Part | Filament | Print time |
|---|---|---|
| all three parts | 67 g | 2 h 44 min |
| bottom | 35 g | 1 h 10 min |
| lid | 24 g | 57 min |
| drain insert | 8 g | 40 min |
The mini box for guest soap needs 35 g and 1 h 38 min with all parts. Even with automatic supports switched on, PrusaSlicer generates no support at all for the standard box.
To keep water from seeping through the wall, two or three perimeters make sense; with a 3.5 mm wall the slicer fills the rest solid anyway. PETG can stick too well to smooth PEI: use a textured sheet or a little glue stick as a release agent so the lid’s top side comes off cleanly. Before a big box, print the mini box as a fit test: it uses the same wall and the same collar.
Origin & license
This generator is a port of “Travel Soap Box — Fully Customizable (OpenSCAD)” by Loulou, published on Printables under the Creative Commons Attribution 4.0 (CC BY 4.0) license. The bottom with its collar, the vented lid, the snap fit, the grip ribs and the hexagon drain insert come from the OpenSCAD file soap_box.scad and were rebuilt in TypeScript with the same parameters and defaults. A comparison with the unmodified OpenSCAD model shows volume differences below one percent. New are the size presets, the lid text, the second color and the 45° chamfer under the grip ribs.
Many thanks to Loulou for the well-thought-out original. All licenses are listed under Licenses. Now open the generator, measure your soap and print your box. For a tidy bathroom shelf, try the stackable storage caddy.
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 length | 85 mm | 30 – 160 mm | Clear length inside the box. Measure the bar and add 3–5 mm. |
| Inner width | 65 mm | 30 – 160 mm | Clear width inside the box. Again 3–5 mm more than the bar. |
| Inner depth | 35 mm | 15 – 80 mm | Depth of the bottom part inside. Bar height plus the insert (plate + feet) plus a little air. |
| Box and lid | |||
| Wall thickness | 3.5 mm | 2 – 6 mm | Wall of bottom and lid together: at the top it is split into the collar and the lid’s skirt. |
| Floor thickness | 1.5 mm | 0.8 – 4 mm | Thickness of the bottom part’s floor. |
| Lid thickness | 1.5 mm | 0.8 – 4 mm | Thickness of the lid plate with the air holes. |
| Outer corner radius | 12 mm | 4 – 30 mm | Rounding of the outer corners. Inside it is smaller by the wall thickness. |
| Collar height | 0 mm | 0 – 60 mm | How far the lid slides over the bottom. 0 = half the inner depth, as in the original. |
| Collar width | 1.5 mm | 0.8 – 3 mm | Part of the wall that stays as a collar on top of the bottom. The lid’s skirt gets the rest. |
| Lid play | 0.4 mm | 0.1 – 0.8 mm | Gap between collar and lid. If the lid is too tight, add 0.05 mm; if it wobbles, take some away. |
| Lid | |||
| Hole diameter | 2.5 mm | 0 – 6 mm | Diameter of the air holes in the lid. 0 = a lid without holes. |
| Holes in the middle row | 9 | 1 – 25 | Each row further out has one hole fewer, which makes a hexagonal field. Odd numbers look best. |
| Text size | 10 mm | 4 – 30 mm | Text size as in OpenSCAD; capitals are about 70 % of it. |
| Engraving depth | 0.6 mm | 0.4 – 2 mm | How deep the letters go into the lid plate. At least 0.6 mm of plate stays above them. |
| Grip ribs | |||
| Rib thickness | 2 mm | 1 – 4 mm | Thickness of one rib. It stands out of the wall by half of that. |
| Rib length | 18 mm | 6 – 50 mm | Length of the middle rib. Each row further out is two rib thicknesses shorter. |
| Rib spacing | 1 mm | 0.5 – 4 mm | Gap between two ribs. |
| Ribs per side | 5 | 1 – 9 | Number of ribs stacked on top of each other. Ribs that don’t fit the wall height are left out. |
| Snap fit | |||
| Bead base width | 2 mm | 1 – 4 mm | Height of the bead on the collar. |
| Bead top width | 0.5 mm | 0.2 – 2 mm | Width of the bead’s flat tip. |
| Bead depth | 0.85 mm | 0.3 – 1.5 mm | How far the bead stands out. More snaps tighter but is harder to open. |
| Bead length | 10 mm | 4 – 30 mm | Length of the bead along the short end. |
| Groove allowance | 0.4 mm | 0.1 – 0.8 mm | How much longer the groove in the lid is at each end. |
| Drain insert | |||
| Hole size | 3 mm | 1.5 – 8 mm | Side length of the insert’s hexagon holes. |
| Hole rounding | 0 mm | 0 – 2 mm | Rounds the corners of the hexagons. 0 = sharp corners. |
| Web width | 2 mm | 1 – 5 mm | Web between the holes, also the width of the rim and the feet. |
| Plate thickness | 2 mm | 1 – 4 mm | Thickness of the insert’s grid plate. |
| Foot height | 3 mm | 0 – 10 mm | How high the insert stands above the floor so the water drains. 0 = no feet. |
| Insert play | 0.4 mm | 0.1 – 1 mm | Gap between insert and wall, all around. |
| Finger notch | 15 mm | 0 – 30 mm | Diameter of the notch on one short end that you pull the insert out with. 0 = none. |
| Bed | |||
| Part spacing | 4 mm | 2 – 20 mm | Gap between the parts on the bed. |
Frequently asked questions
Which material is best for a soap box?
PETG. It handles soapy water, a warm shower and a hot car better than PLA and rinses clean easily. PLA works too but softens from about 55 °C and can warp.
The lid is too tight or too loose – what now?
Change “Lid play” in 0.05 mm steps: more if it binds, less if it wobbles. If the snap fit is too firm, lower the “Bead depth” or turn the snap fit off.
What is the insert for?
It lifts the soap off the floor on four small feet. Water drains through the hexagon holes, the bar doesn’t sit in a puddle and dries faster.
How big should the box be?
Measure the bar and add 3–5 mm to length and width. For the inner depth take the bar height plus the insert (5 mm) plus a few millimeters.
Is the box watertight?
No, the air holes in the lid are intentional so the soap can dry. For the suitcase set “Hole diameter” to 0 and the lid is closed.
Is printed plastic safe for soap and skin?
For soap and brief skin contact PLA and PETG are fine. A printed part is not food safe, though, because of the grooves between layers, so don’t use the box for food.
Origin & license
- Travel Soap Box — Fully Customizable (OpenSCAD) by Loulou · CC BY 4.0 · code ported – bottom, vented lid, snap fit, grip ribs and drain insert ported from soap_box.scad; size presets, lid text and colors added