By means of a two-step electrochemical conversion of levulinic acid to octaneviavaleric acid we propose the use of electrochemistry for the production of renewable chemicals and biofuels. The reactions can be performed in water and at room temperature and thus fulfil the major criteria of green chemistry.