Organometallic halide perovskite solar cells (PSCs) are rapidly evolving as the promising photovoltaic technologies with high record efficiency over 24%. The inorganic p‐type semiconductor NiOx is extensively used as important hole transport layers for the realization of stable and hysteresis‐free solar cells due to their good electronic properties, facile fabrication, and excellent chemical endurance. However, the critical issues of NiOx films including poor intrinsic conductivity and mismatched band alignment limit further improvement of the device performance. Herein, it is demonstrated that a versatile alkaline earth metal (Mg, Ca, Sr, and Ba) doping strategy can effectively engineer the electronic properties of NiOx contacts in inverted planar PSCs. Alkaline earth metal doping can deepen valence band maximum and enhance the hole conductivity of NiOx films, which better aligns the energy band in solar cells. The champion device based on Sr‐doped NiOx films attains a power conversion efficiency of 19.49% with a high open‐circuit voltage (VOC) of 1.14 V for NiOx‐based CH3NH3PbI3 devices. The resulted device shows negligible hysteresis and high stability as well. This finding provides a systematic doping strategy to further improve the performance of inverted planar PSCs.