The invention relates to a stainless steel surface three-dimensional nanocarbon film and a preparation method thereof. According to the technical schem, the preparation method comprises the following steps: firstly, performing electrochemical
anode oxidation treatment on stainless steel in a
sodium dihydrogen
phosphate solution, wherein the surface of the stainless steel is pretreated; then under a stirring condition, placing the stainless steel subjected to electrochemical
anode oxidation treatment in a
mixed solution of
dopamine and trihytdroxy methyl-aminomethane for 4-24 hours, taking out and cleaning; then raising to 500-800 DEG C from a
room temperature at a temperature raising rate of 5-15 DEG C / min in an
argon atmosphere, insulating heat for 3-10 hours, and naturally cooling with a furnace to obtain the stainless steel surface three-dimensional nanocarbon film. The stainless steel surface three-dimensional nanocarbon film has the characteristics of simple process, environment friendliness and low cost; and the stainless steel surface three-dimensional nanocarbon film is regular and ordered in structure, uniform in components, high in nano hole density, large in
carbon film specific surface area, controllable in
pore diameter, pore depth and
carbon film thickness, and compact in combination with a base material, and does not involve other
impurity elements. According to the stainless steel surface three-dimensional nanocarbon film, the stainless steel
corrosion resistance performance, the high
temperature resistance, the electrochemical sensing performance and the biological
medicine performance can be improved.