A new azomethine chromogenic probe, HL, based on hydrazide shiff base has been synthesized and used as a colorimetric sensor for naked-aye detection of CN− and AcO− ions in organic and semi-aqeouse media. The probe HL has been characterized using standard spectroscopic methods (IR, 1H NMR, UV-Vis) as well as elemental analysis. The anion recognition ability of HL was evaluated using UV–Vis spectroscopy and 1HNMR technique. The results exhibited that the HL acts as a highly selective chemosensor for the detection of CN− and AcOˉ in pure DMSO and DMSO and DMSO: H2O (90:10 v/v) media over other anions such as F−, Cl−, Br−, I−, SO42−, SO32−, PO43−, H2PO4−, HSO4−, NO2− and NO3−. In order to examine the potential applicability of the prepared chemosensor, HL was used for detection Sodium diclofenac (SD) in aqeous media. As shown in Fig. 2, a diagnosable color change was observed from colorless to pale yellow after addition of SD. The ability of HL for rapid colorimetric sensing of SD was studied using UV–Vis spectroscopy, and 1H NMR titration methods.