The TiO2 layers were electrochemically deposited under galvanostatic mode using three different deposition times. They were intended to be used as compact layers in perovskite solar cells. The structural and optical properties and surface morphology of electrochemically deposited TiO2 compact layers (TiO2 ED-CLs) were studied by X-ray diffraction, scanning electron microscopy and UV-vis absorption spectroscopy. The present work mainly examined the quality and electron blocking behavior of TiO2 ED-CLs developed under different deposition times and modified electrolytes (TiCl3/K2CO3 and TiCl3/Na2CO3) by cyclic voltammetry. This electrochemical study indicated that the ED-CL deposited at 800s offered an optimum blocking behavior and the TiO2-CLs formed from TiCL3/K2CO3 is apparently less dense giving lower blocking effect compared to TiO2-CLs deposited from TiCL3/Na2CO3 system.