Bottle cap container: print a jar with a bottle cap lid
A small container that uses a bottle cap as its lid
The bottle cap container is a small jar, box or tube with a threaded neck. A used bottle cap screws onto that neck and works as the lid, so you print only the body and the cap you would have thrown away does the rest. If a lid gets lost, the next one comes from the recycling bin.
Choose the cap, the shape and the size in the generator and download the file for your slicer. Good starting points are the pill box for a soda cap, the tall square box for cotton swabs and the large canister with a milk jug cap. All twelve designs are in the example gallery.
Please read this first
Three honest notes before you print:
- The thread was changed for printing. In the original design the underside of the thread climbs at only 20 to 25 degrees. That needs supports, and supports are hard to remove from a thread. The generator steepens the underside to 45° so that the container prints without any support. The cap ridge still clears the thread, but this has not been test-printed with real caps. Print a short test piece first (set “Height” to 20 mm) and screw a cap on before you start a big canister.
- Caps differ. The soda neck follows the PCO 1881 standard. The milk and juice necks come from the original designer’s own measurements, and other brands may differ by a few tenths of a millimeter. Check with the test piece.
- Food and medicine are your responsibility. If you keep pills, spices or anything else you eat in a 3D print, you decide whether that is acceptable. We make no claims about safety. Printed walls have layer lines that are hard to clean and the filament is not tested for this. If you do it anyway, PETG is a better choice than PLA.
How the generator works
The generator runs entirely in your browser. Nothing is uploaded, and the design lives in the link that you can share with the “Share” button. The steps:
- Choose the “Cap”: Soda, Milk or Juice.
- Choose the “Shape”: Round, Hexagon or Square.
- Set “Height” and “Diameter”.
- Optionally round the edges, add “Ridges” and change the wall.
- Read the one-line summary: it gives the size and about how many milliliters the container holds.
- Download an STL or a 3MF file.
The container is a single part with one color slot called “Container”. Take any color you like; the multi-color formats are not needed here. Print it as it comes: the file already stands on its bottom with the neck pointing up.
Choose the cap
| Cap | Cap width | Neck diameter | Thread |
|---|---|---|---|
| Soda (PCO 1881) | 30 mm | 24.2 mm | one start |
| Milk | 39.5 mm | 34 mm | three starts |
| Juice | 41 mm | 35 mm | two starts |
The neck is always round, whatever shape the body has. It is about 9 mm tall for all three caps. Soda caps are the most common ones and the neck standard is the same on a great many PET soda and water bottles, but check your own bottle before you rely on it. Milk jug caps are wider and have a coarse thread with three starts. The juice cap is the widest and has two starts.
Shape and size
Diameter is the width of the container. With 0 it is exactly as wide as the cap, so cap and body line up. You can go from the neck diameter up to 150 mm. A value below the neck diameter is raised and the editor tells you so. For the hexagon and the square the diameter is measured across the corners, so a hexagon with 36 mm is about 31 mm across the flats.
Height is the overall height including the neck, from 20 to 170 mm, 50 mm by default. If the height is too low for the neck and the shoulder, the generator raises it and shows a note. 20 mm works for all three caps at their own diameter.
Edge rounding rounds the top and bottom edges and the corners, in percent of the diameter, from 0 to 25 %, default 10 %. At 0 the edges are sharp, as in the hexagon with sharp edges. A larger value gives a soft, pebble-like body such as the one in the tall square box with 15 %.
Here is what the capacity is for a few of the examples, as the generator calculates it from the inner shape:
| Example | Size | Holds about |
|---|---|---|
| Pill box | 30 × 50 mm | 28 ml |
| Coin jar | 45 × 35 mm | 31 ml |
| Cotton swab tube | 30 × 120 mm | 72 ml |
| Spice jar | 60 × 70 mm | 123 ml |
| Milk cap jar | 39.5 × 60 mm | 62 ml |
| Large canister | 80 × 110 mm | 409 ml |
Grip ridges
Set “Texture” to “Ridges” and the body gets grooves all around, which give your fingers a better hold when you unscrew the cap. The hexagon with ridges and the square box with ridges and a juice cap show the effect. Two settings control the ridges:
- Groove depth is how deep each groove is cut, from 0.2 to 1 mm, default 0.2 mm. The wall behind the groove keeps its thickness.
- Groove height is the height of one groove in percent of the straight body, from 1 to 100 %, default 10 %. The ridges between the grooves are as tall as the grooves.
Small values give a fine knurl and large values give a few broad bands. The top edge of each groove closes at 45°, so the ridges need no supports either.
Wall and shoulder
The “Advanced” group has two settings that change the strength and the print.
Wall is the thickness of the wall and the floor, from 0.8 to 3 mm, default 0.8 mm. The neck gets twice this wall, so 1.6 mm at the default. Take a thicker wall for large containers such as the spice jar or the canister, which use 1.2 mm.
Shoulder angle is the slope of the ceiling inside, where the body narrows to the neck. It is measured from the horizontal, from 45 to 70°, default 50°. From 45° up the ceiling prints without supports. A steeper angle makes the shoulder taller, which only matters for wide containers. If the shoulder would get taller than the printer allows, the generator lowers the angle and shows a note.
Printing tips
- Orientation: the file stands on its bottom with the neck pointing up. Don’t turn it. The rounded bottom ends in a small flare at the bed, so the first layers need no support.
- No supports: in all 12 examples the slicer (PrusaSlicer) did not find a single overhang that needs supports. Leave supports off.
- Layer height: 0.2 mm is fine for the body. Use 0.16 mm or finer if you want a smoother thread.
- Material: PLA prints easily. PETG is the better choice for anything that sees moisture or warmth.
- Fit: If a cap is too tight, a light pass with fine sandpaper on the neck thread helps. If it is too loose on a milk or juice neck, try another cap of the same kind.
- Not a seal: do not expect the container to be airtight or watertight. Use it for dry contents.
These numbers come from PrusaSlicer on a Prusa MINI, 0.20 mm SPEED profile, Prusament PLA, with automatic supports switched on to check for overhangs; every example came out without supports.
| Example | Filament | Time |
|---|---|---|
| Pill box, soda cap | 6.2 g | 52 min |
| Coin jar, soda cap | 8.0 g | 39 min |
| Cotton swab tube, 120 mm | 12.2 g | 2 h 4 min |
| Spice jar with ridges | 28.6 g | 1 h 23 min |
| Milk cap jar | 9.7 g | 1 h 4 min |
| Juice cap jar | 9.4 g | 59 min |
| Large canister, milk cap | 52.7 g | 2 h 11 min |
Ideas for the container
The size of the cap decides what fits, and you decide the rest. Some ideas:
- pills, bandages or earplugs in a bag or a pocket (the pill box);
- coins, screws, beads or buttons in a low jar (the coin jar);
- cotton swabs, toothpicks, drill bits or cable ties in a tall tube (the slim tube);
- spices, tea or coffee beans in a wide jar, keeping in mind the note above about food (the milk cap jar or the canister).
If you need a lid that you print yourself, look at the screw-top jar. If you have trouble opening bottle caps, the bottle cap grip helps. For a pill box with compartments, see the weekly pill organizer.
Origin and licenses
The generator is a port of Customizable Bottle Cap Container by bradk3 on Printables (CC BY 4.0). The neck thread for the soda cap uses the thread table and the thread sweep of threadlib by Adrian Schlatter (BSD-3-Clause).
Changes in this version: the underside of the thread is steepened to 45° (source: 20–25°), the shoulder height follows the inner slope (source: a fixed sine formula), the bottom rounding ends in a flare, the tops of the grooves are bevelled at 45°, and the walls of hexagon and square are measured across the flats. The cap preview, the cross-section and the facet options of the original were left out.
The full license texts are on the licenses page. Open the Bottle cap container generator and start with an example.
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 |
|---|---|---|---|
| Container | |||
| Height | 50 mm | 20 – 170 mm | Overall height including the neck. Too low for neck and shoulder: it is raised. |
| Diameter | 0 mm | 0 – 150 mm | Width of the container, across the corners for hexagon and square. 0 = as wide as the cap. |
| Edge rounding | 10 % | 0 – 25 % | Rounding of the top and bottom edges and the corners, in % of the diameter. 0 = sharp edges. |
| Texture | |||
| Groove depth | 0.2 mm | 0.2 – 1 mm | How deep the ridges are cut into the wall. The wall behind them keeps its thickness. |
| Groove height | 10 % | 1 – 100 % | Height of each groove in % of the straight body; the ridges between them are as tall. |
| Advanced | |||
| Wall | 0.8 mm | 0.8 – 3 mm | Wall and floor thickness. The neck gets twice this wall. |
| Shoulder angle | 50 ° | 45 – 70 ° | Slope of the shoulder ceiling inside, from horizontal. 45° and more prints without supports; steeper makes a taller shoulder. |
Frequently asked questions
Which bottle caps fit?
Three types: the PCO 1881 cap of PET soda and water bottles (30 mm wide), the cap of a US gallon milk jug (39.5 mm) and a juice bottle cap (41 mm). Milk and juice necks vary between brands, so try a cap on a short test print first.
Do I need supports?
No. The container stands upright on its bottom, the neck points up, and the slicer found no overhang that needs supports in any of the 12 examples (PrusaSlicer auto-supports on a Prusa MINI). The thread underside is steepened to 45° for exactly that reason.
Is the container safe for pills or spices?
We make no claims about that. A 3D print has layer lines that are hard to clean, and the filament is not tested for food or medicine. If you store pills or spices in it, that is your responsibility. PETG is the better choice than PLA for moisture and warmth.
Is the lid airtight or watertight?
Do not count on it. The thread is a loose screw fit and printed walls have layer lines. The container is meant for dry things such as pills, coins, screws or beads, not for liquids.
Why a test print first?
The thread underside is steeper than in the original design, and it has not been test-printed with real caps. Print a short version with a height of 20 mm and screw your cap on before you spend hours on a large canister.
Is my design uploaded anywhere?
No. The generator runs entirely in your browser. Your settings live only in the link that you share yourself.
Origin & license
- Customizable Bottle Cap Container by bradk3 · CC BY 4.0 · code ported – body, ridges and threaded neck for soda, milk and juice caps ported and adapted (inner shoulder slope from 45°, bottom rounding with a flare, 45° groove tops, hexagon and square walls measured across the flats)
- threadlib by Adrian Schlatter · BSD-3-Clause · helper code ported – PCO 1881 neck thread from the thread table and the thread sweep with tapered ends ported