In this work, oxygen-doped g-C3N4 mesoporous nanosheets (O-CNS) were synthesized via a facile recrystallization method with the assistance of H2O2. The crystal phase, chemical composition, morphological structure, optical property, electronic structure and electrochemical property of the prepared O-CNS samples were well investigated. The morphological observation combining with nitrogen adsorption-desorption results demonstrated that the prepared O-CNS samples possessed nanosheets-like morphology with porous structure. The O doping into g-C3N4 resulted in the augment of specific surface area, which could provide more active sites for photocatalytic reaction. Simultaneously, the visible-light absorption capacity of O-CNS samples was boosted owing to the regulation of O doping. The built energy level induced by the O doping could accelerate the migration rate of photoinduced carriers, and the porous structure was most likely to speed up the release of hydrogen during photocatalyic hydrogen process. Resultantly, the photocatalytic hydrogen production rate of the optimized oxygen-doped g-C3N4 nanosheets reached up to 2012.9 μmol•h-1•g-1, which was 13.4 times higher than that of bulk g-C3N4. Thus, the significantly improved photocatalytic behavior was imputed to the porous structure, the augment of active sites, and the enhancement of visible light absorption and charge separation efficiency.