The fast penetration of electrification in rural areas calls for the development of competitive decentralized approaches. A promising solution is represented by low-cost and compact integrated solar flow batteries; however, obtaining high energy conversion performance and long device lifetime simultaneously in these systems has been challenging. Here, we use high-efficiency perovskite/silicon tandem solar cells and redox flow batteries based on robust BTMAP-Vi/NMe-TEMPO redox couples to realize a high-performance and stable solar flow battery device. Numerical analysis methods enable the rational design of both components, achieving an optimal voltage match. These efforts led to a solar-to-output electricity efficiency of 20.1% for solar flow batteries, as well as improved device lifetime, solar power conversion utilization ratio and capacity utilization rate. The conceptual design strategy presented here also suggests general future optimization approaches for integrated solar energy conversion and storage systems.