Polyaniline (PANI) thin films were successfully deposited using controlled electrodeposition (ED) technique from a mixed solution of 0.1M aniline and 0.5M H2SO4 on ITO coated substrate. The effect of different deposition cycles 10, 25, 50, 75, 100 on thickness, optical and morphological properties of electrodeposited PANI thin films was studied. The formation mechanism of highly conducting form of polyaniline i.e. Emeraldine salt is explained. The support of Fourier transform‐infra red (FT‐IR) and Raman spectroscopy was given to confirm Emeraldine salt of PANI. Further DC electrical conductivity of PANI has been measured in temperature range from 300 to 500 K using two point probe method. The optical and morphological properties of PANI give its application towards flexible electrochromic glasses.