Metal halide perovskites are promising for applications in light-emitting diodes (LEDs), but still suffer from defects-mediated nonradiative losses, which represent a major efficiency-limiting factor in perovskite-based LEDs (PeLEDs). Reported here is a strategy to synthesize molecular passivators with different anchoring groups for defects passivation. The passivated perovskite thin films exhibit improved optoelectronic properties as well as reduced grain size and surface roughness, thus enable highly efficient PeLEDs with an external quantum efficiency of 15.6% using an imidazolium terminated passivator. Further demonstrated is that the in-situ formation of low-dimensional perovskite phase on the surface of three-dimensional perovskite nanograins is responsible for surface defects passivation, which leads to significantly enhanced device performance. Our results provide new fundamental insights into the role of organic molecular passivators in boosting the performance of PeLEDs.