In this study, carbon dots (CDs) were synthesized from Peltophorum pterocarpum flowers as the precursor material using the hydrothermal method. The fluorescence emission spectra of the resulting Peltophorum pterocarpum CDs (PP-CDs) exhibited excitation-independent behavior, showing the fluorescence emission peak at 410 nm when excited at 330 nm. This method is simple, rapid and well consistent with the green chemistry and sustainable analytical method development. The as-synthesized PP-CDs acted as a promising fluorescent probe for detecting carbendazim (CBZ) via aggregation-induced emission mechanism, showing a linear response to CBZ concentrations ranging from 1 to 30 μM, with a detection limit of 5.41 nM. This method was successfully applied to quantify CBZ in food samples, achieving excellent recoveries of 99% with a relative standard deviation (RSD) of less than 2%.