Hydrogen peroxide (H2O2) can exert diverse signaling and stress responses within living systems depending on its spatial and temporal dynamics. Here we report a new small-molecule probe for producing H2O2 on demand upon photoactivation and its application for optical regulation of cofilin-actin rod formation in living cells. This chemical method offers many potential opportunities for dissecting biological roles for H2O2 as well as remote control of cell behavior via H2O2-mediated pathways.