Free generator · Runs in your browser

Bahtinov mask generator Sharp stars, every time.

Make a focusing mask for your telescope or camera lens: slots spaced for your focal length, a solid centre over the obstruction, and a rim that slides over your measured tube. Bahtinov, tri-Bahtinov, Carey and Hartmann.

  • Private by designNothing leaves this device
  • Four mask typesBahtinov, tri-Bahtinov, Carey, Hartmann
  • No supportsPrints flat, front face down
  • Fits your scopeFrom your own measurements

Drag to rotate · Scroll or pinch to zoom · Arrow keys when focused

Size
—
Filament
—
Parts
—
Fits
—

Start from

Telescope

Three gratings: focus until the middle spike sits exactly halfway between the two that cross.

Three Bahtinov patterns in one mask, one per third of the aperture.

Halves or quarters whose slots tilt the opposite way to their neighbours.

Two or three round holes: out of focus a star shows one dot per hole, and the dots merge into one at focus.

The diameter of the front lens or mirror: the first number in “80/480” or “150/1200”.

The second number in “80/480”. Use the native focal length, without a reducer or a Barlow.

Reflectors and catadioptrics: measure the secondary mirror or its holder across. 0 for a refractor. The mask stays solid over it.

Spider vanes
1.5 mm

The mask gets a solid bar 1 mm wider than the vane along each one.

0 °

Lines the vane bars up with the slots’ dividers where you can; you can also turn the mask on the tube.

Grating

150

Slot spacing (one slot plus one bar) = focal length ÷ this factor. 150 gives wider, easier-to-print slots; 200 gives finer focus.

7.5 °

The angled slots tilt this far each way from the straight ones. ±7.5° puts 15° between the two angled gratings, the common choice; some designs use 20° (±10°).

For short focal lengths whose slots are too fine to print. One published generator offers this; the spikes are fainter, so test it on a bright star.

3.0 mm

The solid bars between the sections, which also hold the mask together.

2.0 mm

Only used to warn you when the slots or bars are too fine to print.

Fitting

How it holds on

Measure across the front of the tube or dew shield with calipers, or wrap a paper strip round it and divide the length by 3.14.

1.0 mm

Added to your measurement for the rim’s inside. Lower it for a tighter fit.

20 mm
2.0 mm

Printed on the lens front or its cap, after the ⌀ sign. The plug pushes into the thread by friction; it does not screw in.

0.00 mm

0 matches the thread’s inner diameter. Go up if it falls out, down if it will not go in.

3.5 mm

Eight thin ribs that press on the tube or thread. Flexible filament such as TPU, or PETG, grips without scratching.

Tab, pieces and colour

Leave empty for the aperture and focal length, such as 80/480.

Pick your printer below the preview. Pieces join with dovetails along solid bars, then glue.

Download

Building the preview…

Print it well

    Everything is built on this device. Nothing you type or upload is sent anywhere.

    Advertisement

    The method

    How to make a focusing mask for your telescope

    A focusing mask covers the front of a telescope or lens with slots. On a bright star, the slots spread the light into spikes, and the spikes move as you focus. Enter your telescope’s numbers, measure the front of the tube, and the generator spaces the slots for your focal length and makes a rim that slides over the tube.

    1. Enter the aperture and focal length, and the central obstruction and spider vanes on a reflector or catadioptric.
    2. Measure the tube or dew shield across its front. For a camera lens, pick its filter thread size instead.
    3. Pick your printer below the preview. A mask too big for its bed splits into pieces.
    4. Print it flat in opaque filament, slide it on, and focus on a bright star.
    5. Take it off before you start imaging.

    The numbers

    Slot spacing and the Bahtinov factor

    The spacing of the slots (one slot plus one bar) is the focal length divided by the Bahtinov factor. The factor should be at least 150, and ideally 200. The generator keeps slots and bars the same width (1:1), so each is half the spacing. A higher factor gives finer slots that are harder to print.

    TelescopeFocal lengthSpacing at 150Slot at 150Slot at 200
    80 mm f/6 refractor480 mm3.20 mm1.60 mm1.20 mm
    150/1200 reflector1200 mm8.00 mm4.00 mm3.00 mm
    8-inch (203 mm) f/10 catadioptric2032 mm13.55 mm6.77 mm5.08 mm
    50 mm guide scope180 mm1.20 mm0.60 mm0.45 mm
    300 mm camera lens300 mm2.00 mm1.00 mm0.75 mm

    Classic Bahtinov masks have three gratings: straight slots over half the aperture, and two quarters whose slots tilt one way and the other. The common choice is 15° between the two tilted gratings (±7.5°), which is the default here. Some designs use 20° (±10°). A larger angle spreads the two crossing spikes further apart.

    Options

    Mask types and fittings

    OptionWhat it isGood for
    BahtinovThree gratings; the middle spike centres between two crossing spikes at focusMost telescopes and lenses
    Tri-BahtinovThree Bahtinov patterns, one in each third of the apertureA pattern repeated in each third of the aperture
    Carey, 2 or 4 sectionsHalves or quarters with slots tilting opposite waysA simpler two-direction pattern
    Hartmann, 2 or 3 holesRound holes; their star images merge at focusQuick rough focus, guide scopes and finders
    Rim over the tubeYour measured outside diameter plus a clearance, with optional friction ribsRefractors, reflectors, dew shields
    Plug for a filter threadA ring that pushes into the lens’s filter thread by frictionCamera lenses
    Flat discNo rim: hold it or tape it onAnything, for a quick test

    Printing

    Printing tips

    • Print it flat, front face on the bed, rim up: no supports.
    • Opaque filament, solid: any colour that blocks light, with solid infill or enough walls that the thin bars are fully solid.
    • Fine slots: bars should be at least two nozzle widths. The generator warns when the slots or bars are too fine for your nozzle.
    • Test the fit before printing the whole mask: print just the rim at a low height, or adjust the clearance.
    • Pieces: glue the dovetails on a flat surface so the mask stays flat.
    • Never point at the Sun without a proper solar filter over the front of the telescope. A focusing mask is not a filter.

    Questions, answered

    Is it free to use?

    Yes. No account, no watermark, no limits.

    Will it fit my printer?

    Choose your printer below the preview. If the mask is wider than the bed, it splits into 2 or 4 pieces along solid bars, with dovetails to line them up.

    Will it fit my telescope?

    It fits what you measure. Measure the outside of the tube or dew shield where the mask will sit, and print a short test rim first if you are unsure.

    Can I use it to look at the Sun?

    No. Never point a telescope, finder or lens at the Sun without a proper solar filter over the front. A focusing mask blocks only part of the light and gives no protection.

    Can I sell masks I print?

    The designs you make are yours. The label typeface is open-licensed, which allows making physical products. We make no claims about the masks beyond that.

    Sources

    Print advice is a starting point drawn from these references, checked on 2026-11-12. Community posts are one maker's experience, not a specification.

    1. Bahtinov mask Wikipedia
    2. Focusing masks (Bahtinov factor = focal length ÷ slit plus space, 150 to 200) Skylabs blog, Jordi Blasco
    3. SCAD Bahtinov mask generator (15° between the tilted gratings, spacing = focal length ÷ 150 to 200) GitHub, jscheidtmann
    4. Bahtinov mask generator (20° mask angle) GitHub, jkua
    5. Photographic filter: thread sizes and pitch Wikipedia
    6. ISO metric screw thread: minor diameter Wikipedia
    7. Eclipse safety NASA
    8. SIL Open Font License SIL International