A simple method is developed to boost the electrochemical performance of graphitic carbon nitride/graphene composites as supercapacitor electrodes.