In this work, for the first time, we prepared Pt loaded K+ doped graphitic carbon nitride (g-C3N4) catalyst forphotocatalytic water splitting to produce H2 and H2O2 simultaneously without any sacrificial agent. Bothproducts are high-value chemicals and in gas-liquid two phases, which avoid the trouble of separation. XRD,N2 adsorption, UVVis, SEM, TEM, PL, XPS and ESR were used to characterize the as-prepared catalysts. TheCB and VB of as-prepared catalysts can be adjusted from -1.29 V and + 1.4 V for g-C3N4 to -0.18 V and + 2.3 Vfor KCN(8) by controlling the K+ concentration. The reaction result indicates that a moderate band position issignificantly important for effective photocatalytic water splitting to simultaneously produce H2 and H2O2.After loading of Pt to promote the electron-hole separation efficiency, Pt-KCN(5) displays the H2 and H2O2production abilities of 550 mmol¢g1¢h1 and 620 mmol¢g1, simultaneously. This work opens a new windowfor photocatalytic water splitting research.