In the present study, the structural, mechanical, electronic and optical properties of all-inorganic vacancy-ordered double perovskites A2Sn1−xTixY6 (A = K, Rb, Cs; Y = Cl, Br, I) are explored by density functional theory. The structural and thermodynamic stabilities are confirmed by the tolerance factor and negative formation energy. Moreover, by doping Ti ions into vacancy-ordered double perovskite A2SnY6, the effect of Ti doping on the electronic and optical properties was investigated in detail. Then, according to the requirement of practical applications in photovoltaics, the optimal concentration of Ti ions and the most suitable halide element are determined to screen the right compositions. In addition, the mechanical, electronic and optical properties of the selected compositions are discussed, exhibiting the maximum optical absorption both in the visible and ultraviolet energy ranges; thus, the selected compositions can be considered as promising materials for application in solar photovoltaics. The results suggest a great potential of A2Sn1−xTixY6 (A = K, Rb, Cs; Y = Cl, Br, I) for further theoretical research as well as experimental research on the photovoltaic performance of stable and toxic-free perovskite solar cells.