— This work reports the growth optimization and analysis of ZnO, Mg x Zn 1-x O, and Cd x Zn 1-x O thin films on silicon substrate using an electron beam evaporation system. The crystal phase purity, surface morphology, optical and electrical properties of deposited ZnO, Mg x Zn 1-x O, and Cd x Zn 1-x O thin films were studied. X-ray diffraction (XRD) spectra revealed that the deposited films were polycrystalline in nature with preferred (002) crystal orientation. Field emission scanning electron microscope study showed a dense-packed grained structure with an exact symmetrical distribution. The root-mean-square roughness of 3.03 nm was perceived by atomic force microscopy measurement for Mg x Zn 1-x O thin-film, indicating good morphology of the deposited film. Photoluminescence measurement demonstrated a near-band-edge emission peak around 363 nm for ZnO thin film. The energy band gap obtained for ZnO, Mg x Zn 1-x O, and Cd x Zn 1-x O were 3.36 eV, 3.86 eV, and 2.89 eV, respectively, as measured by Ultraviolet–Visible spectroscopy. The higher amount of photocurrent was detected in illumination condition compared to dark condition with responsivity 0.54 AW -1 for ZnO films, making it suitable for photodiodes applications. • The growth and characterization of ZnO, Mg x Zn 1−x O, and Cd x Zn 1−x O on a silicon substrate using an electron beam evaporation technique is presented. • From IV characteristics measured in dark and under illumination, it was inferred that ZnO based alloys are sensitive to light and can be utilized for fabricating photodiodes.