An ultraviolet ray and infrared ray-absorbing glass composition includes the following basic glass components (weight ratio): 60% to 75% of SiO2, 8% to 20% of Na2O, 3% to 12% of CaO, 0.1% to 5% of Al2O3, 2% to 5% of MgO, 0.02% to 7% of K2O, 0.1% to 5% of BaO, 0.01% to 0.4% of SO3 and the following ultraviolet ray and infrared ray-absorbing glass main body coloring and coordinating part: 0.22% to 1.35% of Fe2O3, 0.001% to 0.8% of ZrO2+HfO2, 0% to 0.5% of Cl, 0% to 2% of B2O3, 0.01% to 0.8% of TiO2, 0.001% to 0.06% of CuO, 0% to 2.0% of Br, 0% to 0.02% of MnO, 0% to 2.0% of F, 0.001% to 0.5% of SrO, and 0.005% to 2.2% of CeO2. The reduction oxidation ratio of Fe2O3 in the glass composition is 0.4 to 0.8.