Hierarchical porous carbon based on the self-templating structure of rice husk was prepared for high-performance supercapacitors.