Graphite phase carbon nitride (g-C3N4) is a highly promising metal-free photocatalyst, but its low activity, due to limited quantum efficiency and small specific surface area, restricts its practical application. While exfoliating bulk crystals into porous thin-layer nanosheets and incorporating dopants have been shown to improve photocatalytic efficiency, these methods are typically complex, time-consuming, and costly processes. In this study, we developed a simple approach to synthesize oxygen-doped porous g-C3N4 (OCN) nanosheets. The resulting OCN exhibited significantly enhanced light absorption and visible-light photocatalytic activity compared to bulk g-C3N4 (BCN) and g-C3N4 (CN). The OCN achieved an impressive hydrogen evolution reaction (HER) rate of 8.02 mmol g-1 h-1, eight times greater than BCN, and demonstrated a high Rhodamine B (RhB) degradation rate of 97.3 % owing to the generation of abundant singlet oxygen. These improvements in photocatalytic performance are attributed to the narrow band gap and enhanced electron transfer properties, suggesting a promising route for the efficient design of g-C3N4-based photocatalysts.