The self-assembly process for compatible functional layers of devices is a simple, feasible, and energy-saving strategy. In mesopor-ous perovskite solar cells (PSCs), compact and scaffold TiO2 films generally function as the hole-blocking and electron-transporting layers, re-spectively. However, both of these layers are usually generated through a high-temperature annealing process. Here, we deposited TiO2 com-pact films through a room-temperature self-assembly process as effective hole-blocking layers for PSCs. The thickness of TiO2 compact films can be easily controlled by the deposition time. Through the optimization of TiO2 compact films (80 nm), the power conversion efficiency (PCE) of mesoporous PSCs without and with hole conductor layers increases up to 10.66% and 17.95%, respectively. Notably, an all-low-tem-perature planar PSC with the self-assembled TiO2 layer exhibits a PCE of 16.41%.