Conjugated random terpolymers, PJ-25, PJ-50, and PJ-75 were successfully synthesized from three different monomers. Fluorine-substituted benzotriazole (2F-BTA) was incorporated into 4,8-bis(4-chlorothiophen-2-yl)benzo[1,2-b:4,5-b′]dithiophene (BDT-T-Cl) and a 1,3-bis(4-(2-ethylhexyl)thiophen-2-yl)-5,7-bis(2-alkyl)benzo[1,2-c:4,5-c′]dithiophene-4,8-dione (BDD)-based alternating copolymer PM7 as a third monomeric unit. The solubility of the random terpolymers in nonhalogenated solvents increased with the number of 2F-BTA units in PM7. The random terpolymers were mixed with 3,9-bis(2-methylene-) to fabricate organic photovoltaic (OPV) cells. Among the three terpolymers and two related binary copolymers (e.g., PM7 and J52-Cl), outdoor photovoltaic (PV) cells (AM 1.5G) based on the PJ-50:IT-4F blend showed a high power conversion efficiency (PCE) of 11.34%. In addition, PJ-50 was employed as a donor in indoor PV (IPV) cells and was blended with nonfullerene acceptors, which have different absorption ranges. Among them, the PJ-50:IT-4F-based IPV device had the highest PCE of 17.41% with a J sc of 54.75 μA cm −2 and an FF of 0.77 under 160 μW cm −2 light-emitting diode (LED) light. The terpolymer introduced in this study can be regarded as a promising material for the fabrication of outdoor PV and IPV cells with excellent performance involving the use of an eco-friendly solvent.