Porous carbon generated from biomass has a rich pore structure, is inexpensive, and has a lot of promise for use as a carbon material for energy storage devices. In this work, nitrogen-doped porous carbon was prepared by co-pyrolysis using bagasse as the precursor and chlorella as the nitrogen source. ZnCl2 acts as both an activator and a nitrogen fixer during activation to generate pores and reduce nitrogen loss. The thermal weight loss experiments showed that the pyrolysis temperatures of bagasse and chlorella overlap, which created the possibility for the synthesis of nitrogen-rich biochar. The optimum sample (ZBC@C-5) possessed a surface area of 1508 m2g-1 with abundant nitrogen-containing functional groups. ZBC@C-5 in the three-electrode system exhibited 244.1F/g at 0.5A/g, which was extremely close to ZBC@M made with melamine as the nitrogen source. This provides new opportunities for the use of low-cost nitrogen sources. Furthermore, the devices exhibit better voltage retention (39%) and capacitance retention (96.3%). The goal of this research is to find a low cost, and effective method for creating nitrogen-doped porous carbon materials with better electrochemical performance for highly valuable applications using bagasse and chlorella.