The invention relates to a preparation method of a hierarchical pore carbon foam used for a supercapacitor electrode. The method comprises: firstly taking formaldehyde, resorcinol, silicon dioxide nanoparticles and water according to a mass ratio of 1:1-2:0.1-1:0.5-10, mixing them uniformly and taking the mixture as a water phase; adopting liquid paraffin as an oil phase, using Span 80 and Tween 80 as emulsifiers, weighing Span 80, Tween 80, the oil phase and the water phase according to a mass ratio of 2:3:8-20:15-30, mixing the water phase, the oil phase and the emulsifiers under stirring to obtain an oil-in-water type emulsion, adding a catalyst to solidify make the emulsion, conducting drying, then performing high temperature carbonization, removing the silicon dioxide nanoparticles from the carbonized material by dissolution in an HF solution with a mass percent of 40%, thus obtaining carbon foam, mixing the carbon foam with KOH in a mass ratio of 3-7:1, then conducting activation at 800-1000DEG C, thus obtaining the hierarchical pore carbon foam. When the hierarchical pore carbon foam provided in the invention is used as a supercapacitor electrode, high specific capacitance can be effectively maintained, and simultaneously the large current charge-discharge performance of the electrode can be improved.