Novel Pd nanoparticle/carbon nanofiber composite with Pd nanoparticles uniformly dispersed within the carbon nanofibers framework was successfully prepared by a simple and controllable method, which showed superior electrocatalytic performance toward oxidation of formic acid.