A flexible perovskite photodetector with room-temperature self-healing function without external trigger is developed. A crosslinked polyurethane network is filled to the grain boundary of perovskite film, which not only improves the crystal quality of perovskite and mechanical stability but also enables flexible perovskite photodetectors to self-heal at room temperature.