 The boron dope carbon catalyst reported by the authors provides an environmentally benign route for hydrogen peroxide production with high selectivity and activity, making it a promising solution for the oxygen reduction reaction.