The present work reports the fabrication and optical characterization of n-TiO2 thin film prepared by sol-gel method. Sol-gel solution of TiO2 was prepared using titanium isopropoxide and hydrochloric acid as a precursor and stabilizer, respectively. As-deposited, TiO2 thin film on p-Si and glass substrates have the thickness of 120 nm. The surface morphology and crystallinity of the as-deposited TiO2 thin film have been determined by Scanning Electron Microscopy (SEM), Atomic Force Microscopy (AFM) and X-ray Diffraction (XRD) techniques. SEM and AFM images shows that as-deposited TiO2 thin film is homogeneous, cracks free and uniform in nature. The X-ray diffraction (XRD) analysis shows that the as-grown TiO2 thin films have anatase phase. The optical properties of TiO2 thin film have been analyzed by UV-Vis, reflectance and transmission spectrum. Our results suggest that as-deposited TiO2 thin films are a promising candidate material for the photodetectors applications, mainly in the UV region.