Thread adapter: connect bottles, jars, pipes and bolts
A thread adapter for any two threads
A thread adapter joins two parts that were never meant to fit: a soda bottle to a pump dispenser, a mason jar to a bottle cap, a garden hose to a PET bottle, an M16 bolt to an M12 nut. This generator builds that adapter for you. You choose a thread for each end, decide whether it is female (screws onto a bottle neck or a bolt) or male (screws into a cap or a nut), and download a printable STL. Browse the examples to see what is possible, or open the generator and start from the default: a soda bottle to soda bottle coupler.
Everything runs in your browser. Nothing is uploaded, and the whole design is stored in the link you can share.
How the generator works
The adapter is a stack of three sections: end A at the bottom, a straight middle section, and end B at the top. Each end has its own set of controls under “End A (bottom)” and “End B (top)”.
- Pick “Female” or “Male” under “Thread” for the end.
- Pick a “Thread family” (soda bottle, bottle neck, mason jar, pipe thread G, metric M, or custom size) and then a “Size”.
- Adjust “Outer diameter”, “Pitch” and “Thread length” if you need something that is not in the tables.
- Set “Clearance”, “Wall thickness”, “Bore”, “Middle section” and “Grip” for the body.
- Download the STL.
The part is built as one solid. When the two ends have very different diameters, the generator adds a conical transition and, if needed, lengthens the middle section so that the transition prints without supports. You get a hint in that case.
Thread families and sizes
| Family | What it is for | Examples |
|---|---|---|
| Soda bottle (PCO) | Carbonated drink bottles | PCO 1881, PCO 1810 |
| Bottle neck (SPI) | Cosmetic, pump and spray bottles | SPI 24-410, SPI 28-400, SPI 28-410, SPI 38-400 |
| Mason jar | Canning jars | Mason 70-400 (regular), Mason 86-400 (wide mouth) |
| Pipe thread G | Taps, garden hoses, fittings | G1/2, G3/4, G1 |
| Metric (M) | Bolts, nuts, cable glands | M12, M16, M20 |
| Custom size | Everything else | by diameter and pitch |
For a female end the size describes the male thread it fits on. For a male end it describes the thread of the matching nut or cap. The generator shows a summary line per end, for example the diameter, the pitch, the threads per inch and the length.
Custom sizes
With “Custom size” you enter the “Outer diameter” (from 6 to 140 mm, measured over the crests of the male thread), the “Pitch” (0.5 to 8 mm) and the “Thread length” (up to 40 mm; 0 picks a usual length). For inch threads divide 25.4 by the threads per inch: 8 TPI is 3.175 mm, 20 TPI is 1.27 mm. Two examples show this: the lotion bottle refill joins a 1 inch × 8 TPI thread to a 1.175 inch × 7 TPI thread, and the tripod adapter converts a 3/8 inch tripod thread to the 1/4 inch camera thread.
Fit, flanks and clearance
A printed thread needs a little air between the two parts. “Clearance” is the gap per side, default 0.2 mm, adjustable from 0 to 0.8 mm. A well-tuned printer is fine with the default. If the parts bind, raise the value by 0.05 to 0.1 mm; if they wobble, lower it.
“Flanks” changes the thread profile:
- Print-friendly (default): the downward-facing flanks are steeper and slightly shallower than the standard, so the thread prints without supports and still screws onto the standard part. The profile is the largest shape that clears the standard thread.
- Standard: the exact standard profile with the clearance applied. The slicer sees the flanks as overhangs and may add supports in the thread zones.
An honest note: the thread fit has not been test-printed yet. The geometry follows the thread tables and the clearance logic is checked in the tests, but a printer, a filament and a real bottle neck all add tolerances. Print a short ring with just the thread first (set “Middle section” and the other end small) and try it on the real part before you commit to a long print.
Body: wall, bore, middle section and grip
“Wall thickness” (1.2 to 6 mm, default 2 mm) is the wall around a female thread and the wall inside a male thread. “Bore” is the diameter of the channel through the adapter; 0 makes it as wide as both ends allow, and the generator reduces it with a hint if the walls would get too thin. “Middle section” (0 to 40 mm, default 3 mm) is the straight length between the ends.
“Grip” can be “Round” or “Hex”. The hex gives you flats to tighten the adapter with a wrench, which is useful for pipe threads and bolts. The reducer G3/4 to G1/2 and the double nipple G1 to G3/4 use it, and a longer middle section such as 6 mm leaves room for the wrench.
A male thread has a narrow channel because the thread itself takes up space. If the bore gets small, the warning “the wall inside the male thread is only … mm thick” appears. Then print with dense infill or choose a larger thread.
Print settings
The adapter stands on end A with its axis vertical, so the threads are ring-shaped layers and need no supports in the default setup. These numbers come from a real slice (PrusaSlicer, Prusa MINI, 0.20 mm SPEED profile, Prusament PLA, no automatic supports):
| Example | Filament | Time |
|---|---|---|
| Soda bottle to soda bottle | 6.2 g | 27 min |
| Soda bottle to pump bottle 24-410 | 8.5 g | 38 min |
| Reducer G3/4 to G1/2 with hex | 11.5 g | 50 min |
| Cable gland M25 to M20 | 6.4 g | 33 min |
| Tripod 3/8 to 1/4 | 2.9 g | 26 min |
| Mason jar to bottle cap | 48.5 g | 1 h 50 min |
Tips for good threads:
- Use a 0.4 mm nozzle and a layer height of 0.2 mm or finer. Fine pitches such as 1.27 mm look better at 0.12 to 0.16 mm.
- Print slowly on the outer walls and keep the cooling on. Thread crests are thin and curl when they stay hot.
- Use three or more perimeters for the thread zone. The infill does not carry the load, the walls do.
- If the first layer flares out (elephant’s foot), the bottom thread turns tight. Add a bit of clearance or enable elephant foot compensation in your slicer.
- Keep the adapter below 180 mm in height. Extreme size differences with a hex grip can exceed that; the editor warns you.
Use cases
- Bottles: refill a lotion bottle through a soda bottle neck, put a pump or a sprayer on a PET bottle (soda bottle to pump bottle, trigger sprayer on a soda bottle), or connect two bottles neck to neck.
- Mason jars: put a bottle cap or a sprayer on a regular mason jar or go from wide mouth to regular.
- Garden and water: soda bottle to garden thread G3/4 for a quick watering can or a drip irrigation bottle.
- Workshop and electrics: bolt adapters like M16 to M12 and a cable gland reducer.
- Photography: tripod 3/8 to camera 1/4.
A printed adapter is not rated for pressure. Do not use it for gas, hot water, drinking-water supply lines or anything where a leak or a burst is dangerous. For food contact use a food-safe filament and remember that layer lines are hard to clean.
Similar tools
If you need a single bolt and a matching nut instead of an adapter, try the bolt and nut generator. For a plain tube connection see the funnel.
Origin and license
The idea and the layout of this generator, two threaded sections stacked on top of each other and sized by diameter and pitch, come from Customizable threaded connector/adapter by DTMakes (CC-BY-4.0). The threads themselves are rebuilt here with our own thread code and the standard tables for PCO, SPI, mason jar, G and metric threads, so the geometry is not a copy of the original. More on licenses on the license page.
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 |
|---|---|---|---|
| End A (bottom) | |||
| Outer diameter | 25.4 mm | 6 – 140 mm | Outer diameter of the male thread this end fits on or into, measured over the thread crests. 1 inch = 25.4 mm. |
| Pitch | 3.18 mm | 0.5 – 8 mm | Distance from one thread to the next. For inch threads: 25.4 divided by the threads per inch (8 TPI = 3.175 mm). |
| Thread length | 0 mm | 0 – 40 mm | Length of the thread. 0 uses the usual length for this thread, such as the height of the bottle neck. |
| End B (top) | |||
| Outer diameter | 29.8 mm | 6 – 140 mm | Outer diameter of the male thread this end fits on or into, measured over the thread crests. 1 inch = 25.4 mm. |
| Pitch | 3.63 mm | 0.5 – 8 mm | Distance from one thread to the next. For inch threads: 25.4 divided by the threads per inch (8 TPI = 3.175 mm). |
| Thread length | 0 mm | 0 – 40 mm | Length of the thread. 0 uses the usual length for this thread, such as the height of the bottle neck. |
| Fit | |||
| Clearance | 0.2 mm | 0 – 0.8 mm | Gap per side between the printed thread and the matching part. If it binds, raise it by 0.05 to 0.1 mm. |
| Body | |||
| Wall thickness | 2 mm | 1.2 – 6 mm | Wall around a female thread and inside a male thread. |
| Bore | 0 mm | 0 – 120 mm | Diameter of the channel through the adapter. 0 makes it as wide as both ends allow. |
| Middle section | 3 mm | 0 – 40 mm | Straight length between the ends. Transitions between different diameters are added automatically. |
Frequently asked questions
Is the fit tested?
Not yet. The thread profiles follow the standards, but the adapter has not been test-printed on real parts. Print a short test piece first and raise the clearance by 0.05 to 0.1 mm if it binds.
Do I need supports?
No. With the default “Print-friendly” flanks the thread and the transitions between different diameters print without supports. With “Standard” flanks your slicer may add supports in the thread zones.
Will the adapter be watertight?
Not by itself. Printed threads leave small gaps. For liquids use a gasket or PTFE tape, print with enough walls and keep the adapter for low pressure only.
My thread is not in the list. What now?
Choose “Custom size” as the thread family and enter the outer diameter of the male thread and the pitch. That covers inch threads, camera threads and cable glands.
Which material should I use?
PETG or ASA for anything that touches water, cleaning agents or sun. PLA works fine for dry parts and for trying out the fit.
Origin & license
- Customizable threaded connector/adapter by DTMakes · CC BY 4.0 · code ported – Idea and layout taken: two threaded sections stacked, sized by diameter and pitch. Threads rebuilt with our own thread library.