The fabrication of stable perovskite nanofilm patterns is important for the development of functional optical devices. However, current production approaches are limited by the requirement for strict inert gas protection and long processing times. Here, a confined flash printing synthesis method is presented to generate perovskite nanofilms under ambient conditions, combining precursor transfer, perovskite synthesis, crystallization, and polymer protection in a single step within milliseconds. A laser simultaneously prints and induces the flash synthesis, confined in a polymer nanofilm, under normal ambient conditions. Due to its simplicity and flexibility, the method enables the combination and screening of many different perovskite precursor materials on various substrates. Besides for the development of novel perovskite materials and devices, the nanofilms can be applied for biodetection. The unique H2O2-responsive property of the ultrathin perovskite quantum dot film is applied for biomolecule detection based on oxidase-catalyzed enzymatic reactions.