Charge distribution changes in Bi- and Pb-3d transition metal perovskite type oxides were examined by comprehensive precise structural analysis, spectroscopy, and theoretical investigations. The change in the depth of the d level of the transition metal caused the intermetallic charge transfer. A temperature-induced charge-transfer transition in chemically modified BiNiO3 results in technologically important negative thermal expansion.