Biomass-derived carbon materials have broad application prospects in energy storage, but still face problems such as complex synthesis paths and the massive use of corrosive activators. In this study, we proposed a mild and efficient pathway to prepare nitrogen-doped porous carbon material (N-YAC) using one-step pyrolysis with solid K2CO3, tobacco straw, and melamine. The optimized material (N-YAC0.5) was not only enriched with nitrogen, but also exhibited a high specific surface area (2367 m2/g) and a reasonable pore size distribution (46.49% mesopores). When utilized in electrodes, N-YAC0.5 exhibited an excellent capacitance performance (338 F/g at 1 A/g) in the three-electrode system, and benefitted from a high mesopore distribution that maintained a capacitance of 85.2% (288 F/g) at high current densities (20 A/g). Furthermore, the composed symmetric capacitor achieved an energy density of 14.78 Wh/kg at a power density of 400 W/kg. In summary, our work provides a novel and eco-friendly approach for converting biomass into high-performance energy-storage materials.