Microequilibrium transformation of micelles and vesicles assembled by ionic liquid surfactants enables the precise structural design and controlled synthesis of carbon micro/nanospheres, which can be used for high-performance supercapacitor electrodes.