The regulation of molecular structures of porphyrin-based photosensitizers is crucial for yielding the effective singlet oxygen as one of the efficient photocatalytic reactive oxidation species. Here, we select methoxy substitution as an electron donor to decorate the porphyrin rings. Introducing a series of metal ions into porphyrin centers further prepares the methoxysubstituted metalloporphyrins (MPs, M = Co, Ni, Cu, Zn), with the hope of modulating their molecular dipole moments and photocatalytic activity. The theoretical calculation analyses show that the metal-free porphyrin center possesses a higher transition dipole and more delocalized orbitals, leading to efficient charge transfer and improved photocatalytic activity. The metalloporphyrin samples are then polymerized by poly(D, L-lactide-co-glycolide) to be applied to in vitro sterilization experiments. As expected, metal-free porphyrin has good antibacterial ability and good biocompatibility. Moreover, the highly effective bacteriostatic metal-free porphyrin achieves satisfactory photodynamic therapeutic outcomes against intracellular pathogens in cancer cells. This work demonstrates that the molecular dipole modulation of porphyrins is critical for their photocatalytic oxidation and antibacterial ability.