All-inorganic perovskite CsPbBr3 nanocrystals (NCs) display high photoluminescence quantum yield and narrow emission, which show great potential application in optoelectronic devices. However, the poor environment stability of NCs will hinder their practical application. Herein, a series of ionic liquids with different anions (BF4-, Br-, and NO3-) were used as a sole capping ligand to synthesize NCs. Among the three samples, 1-hexadecyl-3-methylimidazolium tetrafluoroborate ([C16MIM]BF4) capped NCs have the highest stability in light, thermal, and water, possibly attributing to the in situ passivation of bromine vacancy via pseudohalogen BF4- and tight binding of ionic liquid ligands and lead atoms. In addition, green-emission [C16MIM]BF4 NCs were used to assemble a white light-emitting diode device, and it possessed a wide National Television System Committee color gamut of 124.5% and a stable emission peak at high driving currents of 380 mA. This work paves the way for resurfacing perovskite NCs with ultrahigh stability, thereby driving the perovskite NC display industry closer to real-world application.