Highly porous materials with a bimodal pore size distribution in the micro-mesopore range have been produced from biomass by adding melamine to the hydrochar/KOH mixture used in the activation process. These carbons are characterized by BET surface areas in excess of ∼3300m2g−1 and a porosity equally distributed between micropores and mesopores. The use of melamine in the synthesis process not only extends the pore size distribution into the mesopore region, but leads to the incorporation of a certain amount of nitrogen atoms into the carbon framework. These materials combine high ion adsorption capacities (micropores) and enhanced ion-transport kinetics (mesopores) leading to an outstanding capacitive performance in ionic liquid-based supercapacitors. Thus, they have specific capacitances >160Fg−1 at 1Ag−1 and >140Fg−1 at 60Ag−1 in both pure ionic liquid and in acetonitrile-diluted ionic liquid, enabling these materials to store up to a maximum of ca. 60Whkg−1 in both kinds of electrolytes and deliver ca. 20Whkg−1 at ∼42kWkg−1 (discharge time ca. 2s) in pure ionic liquid and ∼25–30Whkg−1 at ∼97–100kWkg−1 (discharge time ∼1s) in acetonitrile-diluted ionic liquid.