The present invention relates a method for preparing nanometer electrocatalyst for proton exchange membrane fuel cells, comprising the steps of: 1) adding in water a platinum halogen compound or a mixture of a platinum halogen compound and a ruthenium halogen compound, and active car