In this work, a series of carbon dots (CDs) modified hollow g-C3N4 spheres (HCNS-Cx) were constructed via a double in situ approach using cyanamide and glucose as precursors, respectively. As HCNS-Cx was synthesized by one-step in situ thermal polymerization of two precursors, which could make CDs and g-C3N4 keep tight connection and increase the separation of the photogenerated electron-hole pairs. The average diameter and wall thickness of the HCNS-Cx are about 355 nm and 55 nm, respectively. Under the visible light irradiation, the H-2 evolution rate (HER) of HCNS-C1.0 (2322 mmol g(-1) h(-1)) was 19 times that of bulk g-C3N4 (122 mmol g(-1) h(-1)) and 1.8 times that of HCNS without CDs modification (1289 mmol g-1 h(-1)), respectively. And its apparent quantum efficiency is 17.93% at 420 nm. The specific surface area, light absorption capacity, and charge carrier mobility of HCNS-Cx could be dramatically improved due to the introduction of CDs and hollow structures of g-C3N4 spheres, resulting in a significant improvement of photocatalytic activity. (C) 2021 Hydrogen Energy Publications LLC. Published by Elsevier Ltd. All rights reserved.