The phyllosphere pH helps shape the plant microbiome and strongly influences aboveground interactions in plant canopies. Yet little is known about the distribution of pH at a microscale within the macrophyte phyllosphere and the factors promoting them because achieving high-resolution quantitative imaging of phyllosphere pH is a great challenge. Here, new ratiometric pH nano-optodes were prepared by firstly encapsulating the self-synthesized lipophilic dyes (8-acetoxypyrene-N , N , N -trioctadecyl-1, 3, 6-tri-trisulfonamide) to poly(1-vinylpyrrolidone-co-styrene) nanoparticles, and then immobilizing the resulting nanoparticles in polyurethane hydrogel on transparent foils. The nano-optodes presented reversible and fast response (t