a-NCs were synthesized by carbonization and controllable activation of PANI precursor.
N level and forms as well as surface area were tuned by activation temperature.
Selective performances in supercapacitor and heterogeneous catalysis were realized.