Inorganic cesium lead halide (CsPbX₃, X = Cl, Br, I) quantum dots (QDs) have attracted significant interest owing to their superior optoelectronic properties, which are promising for a wide range of optoelectronic applications including low-threshold optical-pumped lasers, high-efficiency light-emitting diodes, photodetectors, and solar cells. However, the QDs exhibit significant drawbacks in terms of stability, being susceptible to external environmental factors. Herein, Mn2+ doped CsPbClxBr3-x QDs were in-situ formed from a glass matrix, achieving both enhanced stability and tunable luminescence. Due to the excellent optical properties of Mn2+ doped CsPbClxBr3-x QDs and the protection of the glass matrix, the glass exhibits a high resolution of 17.2 lp mm−1 and underwater X-ray imaging capabilities. These attributes render Mn2⁺-doped CsPbClxBr3-x QD glass to be of significant application value in the X-ray imaging field, potentially to provide new material support for the development of optoelectronic technologies.