Lens cap to print: push-on or pinch, made to measure
Print your own lens cap
The cap is gone again. Or your old telescope never had one, your binoculars collect dust, or the flashlight glass picks up scratches. This generator prints a lens cap made to measure: a push-on cap for any round barrel or filter ring from 20 to 150 mm, or a pinch cap that clicks into a filter thread or behind the rim of a lens hood. A cord eyelet, a knurled grip or thumb scallops and engraved text are optional. Browse the examples for the range, from a 23 mm eyepiece to a 90 mm dust cap.
Everything runs in your browser. You set the dimensions, see the model in 3D at once and download it as STL or 3MF. Nothing is uploaded, and the design lives in the link you copy with “Share”.
How the generator works
First you pick the Style: “Push-on” or “Pinch”. Then you enter the diameter, either from the filter size presets (37 to 82 mm) or freely. The groups “Size”, “Fit”, “Extras” and “Text” hold all other sliders. Under the model the editor shows the resulting inner diameter at the rim, and for pinch caps the diameter over the hooks.
The cap prints with its front face on the bed. The front plate lies flat and the side wall grows upward. That makes the visible face smooth and accurate, and no supports are needed.
Measuring
A wrong measurement is the most common mistake. Here is how to avoid it:
- Push-on cap: Use calipers to measure the outer diameter of the part the cap slips over: on a camera lens usually the filter ring or the front barrel, on binoculars the eyecup, on a flashlight the head. Measure in three places and take the largest value.
- Pinch cap for a filter thread: The size is printed on the lens (“Ø 58” or “58 mm”). Enter it as “Diameter”. The hooks grab the thread turns.
- Pinch cap for a lens hood: Measure the inner diameter of the hood at its rim and enter it. The hooks latch behind the hood rim.
If you only need a standard size, pick it under “Filter size”: 37, 40.5, 43, 46, 49, 52, 55, 58, 62, 67, 72, 77 or 82 mm. Any other size you set by hand; the range is 20 to 150 mm.
The push-on cap
The push-on cap is a cup: a front plate, a side wall and a hold on the inside. It sits on the outside of the barrel.
Play, depth and wall
“Play” (default 0.3 mm, range −0.6 to 1.5 mm) is added to the inner diameter. More play makes the cap looser, less makes it tighter. Every printer prints a little differently, so a shallow test print with “Inside depth” 3 mm is worth it. “Inside depth” (default 8 mm, 3–30 mm) sets how far the cap reaches over the barrel: short caps for short rings, deep caps for protective covers. The “Wall” is 1.8 mm by default (1.2–4 mm), the “Top thickness” of the front plate 2 mm (1.2–4 mm).
Hold: ribs, taper or ridge
A smooth cup with play is either too loose or does not fit. That is why “Hold” offers four variants:
- Ribs: small ribs inside that deform slightly. You set their number under “Ribs” (3–6, default 4). This is the best all-rounder.
- Taper: the wall narrows slightly toward the front, so the barrel wedges at the end of its travel.
- Ridge: a continuous ridge near the rim that acts like a small snap.
- Plain: no narrowing at all, only the play. Good for tubes you secure with tape or a rubber band anyway.
Ribs, taper and ridge narrow the inner diameter by the “Squeeze” (default 0.4 mm, 0–1.2 mm). Larger values hold harder but need more force to pull off and tire thin walls. The ribs are short enough to print without supports, and the taper and ridge have a shallow lead-in so the cap slides on.
Grip: knurl or scallops
Under “Grip” you choose “Knurled”, “Scallops” or “Smooth”. The knurled ribs on the outer wall give your thumb purchase when you pull the cap off. The scallops are two thumb recesses that use less material. The hero cap for 52 mm (push-on, 7 mm deep, four ribs, knurled) weighs 8.84 g and prints in 29 minutes.
Flange
The “Flange” (0–6 mm) is a rim of the front plate beyond the wall. It makes the cap easier to grab and sits flush with the lens ring. The 90 mm telescope dust cap uses a 3 mm flange.
The pinch cap
Instead of a wall, the pinch cap has two spring latches that grow up from the front plate and carry a hook at the tip. You press the cap into the filter ring: the arms flex inward and the hooks snap into the thread. To remove it, squeeze the latches together or pull firmly.
- “Latch height” (default 3.5 mm, 2.5–8 mm): height of the latches above the plate. Taller latches are springier.
- “Hook” (default 0.6 mm, 0.3–1.2 mm): how far the hooks reach outward.
- “Play”: here it is taken off the hooks. More play means a smaller hook diameter, so a looser fit.
- “Flange”: a border of the plate beyond the thread that covers the rim of the filter ring.
For a lens hood, use the inner diameter of the hood, taller latches (for example 4.5 mm) and larger hooks (for example 0.9 mm) so they grip securely behind the rim. The example pinch cap for a 72 mm hood is set up that way.
Cord eyelet
Under “Keeper cord” choose “Eyelet”. A flat eyelet with a hole grows on the rim, so you can thread a cord or keeper strap through it and the cap stays with the lens. Match the “Cord hole” (2–5 mm, default 3 mm) to your cord. The eyelet lies flat on the bed and needs no supports. See the 77 mm cap with an eyelet.
Text on the front
Under “Text” enter up to 24 characters, for example your name, a focal length or “50mm”. The text is engraved into the front. “Text size” is the height of the capital letters; at 0 the generator fits it to the front. “Engraving depth” (default 0.6 mm, 0.4–1.2 mm) sets how deep the letters are cut. Keep it below the “Top thickness” so the text does not break through.
Two things you should know:
- Because the cap prints with its front on the bed, the text is modeled mirrored and sits on the bed side. Seen from outside it reads correctly, and in the print it shows on the smooth underside. The example images show the inside of the cap, so the engraving on the bed side is not visible there. You see it only on the printed cap.
- A 0.4 mm nozzle cannot engrave very small letters cleanly; the editor warns you (“The capital letters are only … mm tall”).
Colors and multi-material
The cap has two color slots: “Cap” and “Text”. By default the cap is dark (#1b1b1b) and the text has no color of its own. Give the text a color, for example white, and it becomes a separate part.
- PrusaSlicer (MMU3, XL, Core One): download “Multi-color 3MF (PrusaSlicer)”. Cap and text are two objects with extruders assigned.
- Bambu Studio / OrcaSlicer (AMS): download “3MF (Bambu Studio / OrcaSlicer)”.
- No multi-material setup: “STL per color (ZIP)” gives you cap and text separately; or leave the text without a color and everything merges into one part.
In a single color the engraving shows only through light and shadow. If you want it more readable, give the text a second color. The example pinch cap with a name shows white text on a dark cap and weighs 9.47 g (22 min 44 s).
One caveat: if the text is wide and has the same color as the cap, the slicer may create small auto-support islands, because the engraving leaves a thin flat roof above it. Check the preview in your slicer and turn supports off selectively if needed. The examples were sliced without automatic supports.
Print numbers
All numbers come from a real slice with PrusaSlicer for a Prusa MINI, 0.20 mm SPEED, Prusament PLA:
| Example | Weight | Time |
|---|---|---|
| Push-on 52 mm, knurled | 8.84 g | 29 min |
| Pinch 58 mm | 6.98 g | 18 min |
| Pinch 67 mm with name | 9.47 g | 23 min |
| Push-on 77 mm with eyelet | 16.6 g | 47 min |
| Hood 72 mm | 11.89 g | 30 min |
| Binocular eyepiece 40 mm | 5.69 g | 14 min |
| Telescope 90 mm | 29.93 g | 57 min |
| Eyepiece 23.2 mm | 2.43 g | 11 min |
Printing tips
- Material: PLA is fine indoors. For a car, a backpack in the sun or a telescope in summer, PETG or ASA is the better choice: it handles heat better and is less brittle.
- Nozzle and layer height: a 0.4 mm nozzle at 0.2 mm works well. Finer layers give a smoother front and a sharper engraving.
- Perimeters: print at least three outer walls so ribs and latches stay sturdy.
- Test print: start with “Inside depth” 3 mm, check the fit, then change “Play” in steps of 0.1 mm. The link stores your values.
- Pinch caps: the latches flex best when the layer lines run across the bending direction, which the print orientation already gives you. Do not print pinch caps in very brittle material.
- Limits: there is no rear cap or body cap, because bayonets are brand-specific. The example deep protective cap for 62 mm is only a deep cap for a round tube end, not a bayonet cover.
Examples and uses
The generator is not only for camera lenses. Try the cap for a 25 mm flashlight head, the cap for a finder scope, the telescope dust cap or the cap for a 23.2 mm microscope eyepiece. Open any example in the generator and adapt it to your measurement.
Need matching hands for a clock too? Have a look at the clock hands generator.
Origin and license
The idea for this generator comes from two models on Printables, both under CC-BY-4.0: Lens cover customizable by Renato and Customizable lens cap by xythobuz. They serve as inspiration only. The source files were not fetched, the geometry is an own design and nothing was copied. Details on licenses and fonts are on the licenses page. Open the generator now or browse the examples.
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 | |||
| Diameter | 52 mm | 20 – 150 mm | Push-on: outer Ø of the barrel or filter ring. Pinch: the filter thread size or the inner Ø of the hood. |
| Play | 0.3 mm | -0.6 – 1.5 mm | Added to the inner Ø (push-on) or taken off the hooks (pinch). More play = looser. |
| Inside depth | 8 mm | 3 – 30 mm | How far the cap reaches over the barrel. |
| Wall | 1.8 mm | 1.2 – 4 mm | Thickness of the side wall. |
| Top thickness | 2 mm | 1.2 – 4 mm | Thickness of the front plate; it prints on the bed. |
| Flange | 0 mm | 0 – 6 mm | Push-on: rim of the front plate beyond the wall. Pinch: border of the plate beyond the thread. |
| Fit | |||
| Ribs | 4 | 3 – 6 | Number of small inward ribs. |
| Squeeze | 0.4 mm | 0 – 1.2 mm | How much the ribs, taper or ridge narrow the inner Ø. |
| Latch height | 3.5 mm | 2.5 – 8 mm | Height of the two spring latches above the plate. |
| Hook | 0.6 mm | 0.3 – 1.2 mm | How far the hooks reach outward into the thread or behind the hood rim. |
| Extras | |||
| Cord hole | 3 mm | 2 – 5 mm | Ø of the hole in the eyelet. |
| Text | |||
| Text size | 0 mm | 0 – 30 mm | Height of the capital letters, 0 = fit the front. |
| Engraving depth | 0.6 mm | 0.4 – 1.2 mm | How deep the text is cut into the front plate. |
Frequently asked questions
Will the cap fit my lens?
That depends on your measurement. Measure the outer diameter of the barrel or filter ring with calipers and enter it as “Diameter”. The presets are common filter sizes and not checked against any particular make. Print a shallow test cap first and adjust “Play”.
Do I need supports?
No. The cap prints with its front face on the bed and the wall grows upward. All twelve examples were sliced without automatic supports. Turn supports off in your slicer.
How long does a cap take and how much filament does it use?
The 52 mm push-on cap with knurled grip weighs 8.84 g and prints in 29 minutes on a Prusa MINI at 0.20 mm SPEED. The examples range from 2.4 g (microscope eyepiece) to 29.9 g (90 mm telescope dust cap).
Can I make a cap for the camera body or the rear of a lens?
No. Body and rear caps sit on bayonets that differ by brand, and the generator does not know them. It makes round front caps, dust caps for tubes and pinch caps for filter threads.
Can I print the text in another color?
Yes. Give the text its own color and it becomes a separate part for multi-color printing. Without its own color, or in a single-color export, it is merged into the cap and stays visible as an engraving.
Is anything uploaded?
No. The generator runs entirely in your browser, and a font of your own stays on your device. The design lives in the link you copy with “Share”.
Origin & license
- Lens cover customizable by Renato · CC BY 4.0 · idea – idea (a lens cover customizable by diameter); the source files were not fetched, the geometry is newly designed, nothing copied
- Customizable lens cap by xythobuz · CC BY 4.0 · idea – idea (a parametric push-on cap with a grip rim); the source files were not fetched, the geometry is newly designed, nothing copied