Porous carbon frameworks were obtained by one-step carbonization-activation method.
The hierarchical pore structures were advantageous for EDLCs.
The nitrogen- and oxygen functional groups contributed to high pesudocapacitance.
The porous carbon frameworks exhibited excellent electrochemical performances.