Graphitic carbon nitride (g-C3N4) photocatalysts have attracted much attention towards harvesting solar energy for applications in energy and environment sectors. However, separation of electron-hole pairs is an intrinsic problem for the bulk g-C3N4. Here, we report the tiny amount of carbon doped TiO2 modified g-C3N4 (C-TiO2/g-C3N4) with a narrow bandgap and prolonged lifetime of charge carriers. This heterojunction photocatalysts were successfully fabricated via a facile heat treatment under atmosphere. The enhanced separation of photogenerated charge carriers and narrow band gap confer superior photocatalytic activities with 5.728mmol/g photogenerated hydrogen gas for 5h and 52.395mmol/g for 64h in triethanolamine aqueous solution. The apparent quantum efficiency of C-TiO2/g-C3N4 is ~ 6.2% under 420nm irradiation, which is about 2.4 times higher than the corresponding value 2.6% of pristine g-C3N4. This photocatalyst with excellent photocatalytic performance and photo-stability can work as a promising candidate to applicate in solar-to-fuel conversion and environmental remediation.