The invention relates to the field of biological medicines, in particular to a pH value testing method which comprises the following steps: with an amino proton as an endogenous contrast agent, testing corresponding chemical exchange saturated transferring effect ratios R of amino protons of known pH value amino proton source solutions under different saturated pulse intensities, establishing function relationships of pH values and the ratios R corresponding to the different known pH value amino proton source solutions according to the different known pH value amino proton source solutions andtested corresponding ratios R, and finally calculating expected pH values according to the function relationships of values Ri tested through experiments and the function relationships. By adopting the method, influence of concentrations can be eliminated, parameters such as exchangeable proton concentrations and longitudinal relaxation times of water do not need to be estimated or measured, so that pH values can be relatively accurately, conveniently and non-destructively measured. In addition, since amino is relatively low in chemical exchange velocity, stable imaging under magnetic resonance field intensity of common clinical application can be achieved, and thus the method has good application prospects.