The bioelectrochemical synthesis of high-quality carbon dots with strengthened electricity output and excellent catalytic performance.