Inspired by living systems that have the inherent skill to convert solar energy into bioelectric signals with their light-driven cross-membrane proton pump, a photoelectric conversion system that can work in alkaline conditions based on photoinduced reversible pH changes by malachite green carbinol base and a smart gating hydroxide ion-driven nanofluidic channel is demonstrated. In this system, solar energy can be considered as the only source of cross-membrane proton motive force that induces diffusion potential and photocurrent flowing through the external circuit. The conversion performances are 0.00825% and 36%, which are calculated from the photoelectric conversion and Gibbs free energy diffusion, respectively. The results suggest that electric power generation and performance could be further optimized by selecting appropriate photosensitized molecules and enhancing the surface-charge density as well as adopting the appropriate channel size. This facile, cost-efficient, and environmentally friendly photoelectric conversion system has potential applications for future energy demands such as production of power for in vivo medical devices.