A novel natural renewable resource, chitosan, is used as starting materials.
Nitrogen-doped porous carbons are prepared through chemical activation between KOH and hydrochar.
The porous and chemical structures of carbons can be modified by change the KOH/CH ratio and activation temperature.
The carbons exhibit superior performance for hydrogen storage.