We developed infrared laser-evoked gene operator (IR-LEGO), a microscope system optimized for heating cells without photochemical damage. Infrared irradiation causes reproducible temperature shifts of the in vitro microenvironment in a power-dependent manner. When applied to living Caenorhabditis elegans, IR-LEGO induced heat shock-mediated expression of transgenes in targeted single cells in a more efficient and less deleterious manner than a 440-nm dye laser and elicited physiologically relevant phenotypic responses.