A new type of direct 5-hydroxymethylfurfural (HMF) oxidation fuel cell based on a bifunctional PtNiSx/CB catalyst not only transformed chemical energy into electric energy but also converted HMF into value-added 2,5-furandicarboxylic (FDCA).