Green synthesis of silver nanoparticles (AgNPs) employing an aqueous plant extract has emerged as a viable eco-friendly method. The aim of the study was to synthesize AgNPs by using plant extract of Sanvitalia procumbens (creeping zinnia) in which the phytochemicals present in plant extract act as a stabilizing and reducing agent. For the stability of the synthesized AgNPs, different parameters like AgNO3 concentration, volume ratios of AgNO3, temperature, pH, and contact time were studied. Further, AgNPs were characterized by UV–visible spectroscopy, FT-IR (Fourier Transform Infrared Spectroscopy), XRD (X-ray Diffraction), SEM (Scanning Electron Microscopy), and EDX (Energy Dispersive X-ray Spectrometer) analysis. FT-IR analysis showed that the plant extract contained essential functional groups like O–H stretching of carboxylic acid, N–H stretching of secondary amides, and C–N stretching of aromatic amines, and C–O indicates the vibration of alcohol, ester, and carboxylic acid that facilitated in the green synthesis of AgNPs. The crystalline nature of synthesized AgNPs was confirmed by XRD, while the elemental composition of AgNPs was detected by energy dispersive X-ray analysis (EDX). SEM studies showed the mean particle diameter of silver nanoparticles. The synthesized AgNPs were used for photocatalytic degradation of Orange G and Direct blue-15 (OG and DB-15), which were analyzed by UV-visible spectroscopy. Maximum degradation percentage of OG and DB-15 azo dyes was observed, without any significant silver leaching, thereby signifying notable photocatalytic properties of AgNPs.