Metal carbides, as one kinds of promising catalysts for oxygen reduction reaction (ORR), show great potential for practical applications. To furtherly improve the catalytic performance for ORR, the composition and structure of metal carbides can be modulated by elemental doping. In this paper, Ni element is adopted to substitute partial Fe to enhance the catalytic performance for ORR of Fe3(B,C). The composition of the carbide is designed as Ni and iron based B-doped carbides ((Fe3-XNiX)(B,C)), where X is set as 1.8, 1.5 and 1.2, respectively. The preparation procedure of the catalysts was firstly investigated. The obtained results confirmed that 140 ℃ hydrothermal treatment following with 700 ℃ calcination under nitrogen atmosphere was the best synthesis procedure. The structure of the prepared (Fe3-XNiX)(B,C) series catalysts was investigated by HRTEM, XPS, XRD and SEM tests. Results showed that the catalysts still kept the orthorhombic structure of Fe3C based carbide despite the crystal cell parameters had slight changes with the substitution of Ni for Fe. XPS showed that the electronic states of Ni, Fe, C and B changed slightly with the changes of Ni content in the carbides. The electrocatalytic performances of (Fe3-XNiX)(B,C) for ORR were examined by CV, LSV, Tafel, i-t, RDE and RRDE tests. Results showed that the catalytic performance of the catalysts changed with the Ni content. In all the catalysts, (Fe1.5Ni1.5)(B,C) displayed the highest catalytic performance for ORR. RDE and RRDE test results showed that (Fe1.5Ni1.5)(B,C) catalyzed ORR was major happened through 4-electron pathway. Density functional theory calculations confirmed that the electrons that transferred from Ni to other elements modulated the electron state of Fe, C and B, which enhanced the electrocatalytic activity of the catalysts for ORR. The results of the paper revealed that the catalytic performance of metal carbides for ORR could be improved by the electronic state modulation through hetero-atom doping. The B-doped iron-nickel bimetallic carbides especially (Fe1.5Ni1.5)(B,C) show great promise to be alternate for Pt-group based catalysts for ORR.