Short answer
Painters usually use painter’s tape along the edges of the glass and the frame. For larger areas of glass, they cover the pane with plastic sheeting, masking film or paper. Some painters skip the tape altogether and cut in freehand. Clean the glass before you tape it, so the tape sticks.
Clean the glass first
Dust, grease and dirt stop tape from sticking well. Paint laid over dirt may not bond to the frame either. Wipe the glass and frame before you apply any tape.
Painter’s tape on the edges
Painter’s tape is the most common choice. Run it along the edge of the glass where it meets the frame, and along the frame edge where it meets the wall. Some painters tape both the wall and the glass for crisp, straight lines.
Some painters leave a small gap of about 2 mm between the tape and the frame, so a thin line of paint overlaps the glass. The idea is that the overlap seals the paint line against the glass. Test this on a scrap piece first, since it depends on the paint and the frame.
Film, plastic or paper for larger glass
For big panes, cover the glass with plastic sheeting, masking film or paper rather than relying on tape alone. Newspaper taped over the window also gives basic protection. Tape-and-drape sheeting is another option for larger jobs. Use the covering to catch spatter, and tape it firmly to the frame so it doesn’t blow loose while you work.
Painting without tape
Some painters skip the tape and cut in freehand with a steady brush. This takes practice. It works best on frames with clean lines, and it is harder on uneven or small frames where a slip can reach the glass.
Removing the tape
Advice on timing varies. One view is to pull the tape while the paint is still wet, so the paint doesn’t crack at the edge. Another is to peel it off at a shallow angle once the paint has dried. Either way, don’t leave the tape on for too long, especially in sun or heat, because it can get harder to remove and may lift paint with it. Test a small section before you pull the whole length.
Related frame and sill questions
If you are repainting the frame itself, check can window frames be repainted for the main issues to look at first. The paint you choose matters too, so see what paint to use on wooden window frames. If the sill is on your list as well, should I paint the window sill with a roller or brush covers that choice.
Bottom line
Painters usually protect windows with painter’s tape along the glass and frame edges, and they cover larger panes with plastic, masking film or paper. Clean the glass first. Advice on removing the tape varies, so test a small section before you pull the whole length.