We report on properties of BaTiO3 thin films where the bandgap is tuned via aliovalent doping of Mn and Nb ions co-doped at the Ti site. The doped films show single-phase tetragonal structure, growing epitaxially with a smooth interface to the substrate. Using piezoforce microscopy, we find that both doped and undoped films exhibit good ferroelectric response. The piezoelectric domain switching in the films was confirmed by measuring local hysteresis of the polarization at several different areas across the thin films, demonstrating a switchable ferroelectric state. The doping of the BaTiO3 also reduces the bandgap of the material from 3.2 eV for BaTiO3 to nearly 2.7 eV for the 7.5% doped sample, suggesting the viability of the films for effective light harvesting in the visible spectrum. The results demonstrate co-doping as an effective strategy for bandgap engineering and a guide for the realization of visible-light applications using its ferroelectric properties.