All-perovskite tandem solar cells are considered next generation devices that can further improve the utilisation rate of solar energy.Compared to single-junction perovskite solar cells (PSCs), the performance of tandem cells depends on the performance of the top and bottom solar cells.Here, we use a co-modification strategy to introduce PEAI to the top and bottom interfaces of the perovskite film at the same time to improve the performance of the top solar cell. Experimental and theoretical results show that PEAI can not only improve the quality of the perovskite film through the chemical interaction but also reduce the nonradiative recombination in the device. Ultimately, the efficiency of the wide bandgap (1.77 eV) PSCs based on NiOXreaches 16.5%.At the same time, the performance of the all-perovskite tandem solar cells also reached 26.81% and showed excellent stability.