Provided are a near-infrared-absorbing glass having high transmittance in a visible light region, an excellent near infrared absorption property, excellent climate resistance, etc., and is suitable for use as/in a near-infrared-absorbing element such as a near-infrared-absorbing filter, and a near-infrared-absorbing element to which the above near-infrared-absorbing glass is applied, and the near-infrared-absorbing glass contains, by cationic %, 25 to 45% of P<5+>, 1 to 10% of Al<3+>, 15 to 30% of Li<+>, 0.1 to 10% of Mg<2+>, 0.1 to 20% of Ca<2+>, 0.1 to 20% of Sr<2+>, 0.1 to 20 Ba<2+> and 1 to 8% of Cu<2+> and contains, as anionic components, 25 to 50 anionic % of F<-> and O<2->.