Realizing efficient and low-cost solar photocatalytic water splitting for hydrogen production is an ideal solution to address current environmental pollution and the excessive use of fossil fuels. In this work, 14 kinds of covalent organic frameworks (COFs), categorized into the N-centered TPA series and B-centered TPB series, were thoroughly examined for overall water splitting. By means of first-principles calculations, it was revealed that all these COFs exhibit semiconducting characteristics with band gaps ranging from 1.80 to 2.87 eV. Through the calculations of band edge position, the full range of COFs meets the requirement of hydrogen evolution reaction (HER), while B-centered COFs meet the criterion of overall water splitting. The spatial separation of light-generated carriers was observed, with N-centered COFs absorbing the full solar spectrum and B-centered COFs showing strong absorption in the visible range. The photogenerated electrons facilitate the HER across all COFs, resulting in a downhill change of free energy. However, the oxygen evolution reaction (OER) cannot spontaneously proceed on N-centered COFs due to their inert intrinsic activity and lack of sufficient external potential, whereas the OER proceeds favorably on B-centered COFs. These findings suggest that N-centered COFs can act as full-spectrum-driven catalysts for HER, while B-centered COFs serve as visible-light-driven catalysts for overall water splitting. Our work provides a valuable foundation for advancing the field of photocatalysis, particularly in energy conversion and storage technologies, by highlighting the unique properties of N- and B-centered COFs in promoting water splitting reactions.