All-solid-state batteries (ASSBs) have high safety and high energy density. Li 10 SnP 2 S 12 sulfide solid electrolyte has attracted extensive attention due to its low fabrication cost and outstanding performance in ASSBs. However, its ionic conductivity and stability to lithium and air need to be further improved. Here, in order to avoid the formation of impurities related to Sn-related compounds, the content of SnS 2 in the raw materials is reduced, and to improve ionic conductivity and stability to lithium and air. The S site is doped with O by the solid-phase sintering method, and a series of Li 10 Sn 0.95 P 2 S 11.9-x O x (0≤x≤1) electrolytes are prepared. Li 10 Sn 0.95 P 2 S 11.4 O 0.5 (LS 0.95 PSO 0.5 ) has a high ionic conductivity of 3.96 mS cm -1 and low activation energy after cold pressing. According to the Hard-Soft-Acid-Base theory, doping O into the electrolyte in advance will improve the stability. The ionic conductivity decay of LS 0.95 PSO 0.5 after exposure to air is smaller, which proves that O doping improves the air stability of the electrolyte. LS 0.95 PSO 0.5 also shows good stability to lithium. The assembled LNO@LCO/LS 0.95 PSO 0.5 /Li-In ASSB exhibits a high first-cycle discharge capacity of 133 mA h g -1 and good cycling stability. • Various ratio of elemental O is doped with Li 10 Sn 0.95 P 2 S 11.9 sulfide solid electrolyte. • High ionic conductivity can be obtained by appropriate O doping. • The all-solid-state battery with Li 10 Sn 0.95 P 2 S 11.4 O 0.5 as the electrolyte has good electrochemical performance.