A new series of linker-based derivatives of non-steroidal anti-inflammatory drugs were designed and synthesized. All the compounds were well characterized with the help of various spectroscopic techniques such as FT-IR, 1H NMR, 13C NMR, and HRMS. The main emphasis of this paper is to understand the switching of the most promising compounds 8 and 10 towards anti-inflammatory and anticancer activity in terms of in-silico and in-vitro studies in detail. During the molecular docking study, compounds 8 and 10 demonstrated the importance of hetero atoms as well as the perfect alignment of a compound in the binding pocket of a target site, which may affect their bioactivity. Here, the presence of 1,3‑dicarbonyl interactions with ASN 351 in compound 8 (not found in compound 10) may be responsible for its better inhibitory activity against the COX-2 target site. On the other hand, a slight increase in the potency of compound 10 towards anticancer activity may be due to the instantaneous participation of the OH group and carbonyl group to give conventional hydrogen bonds towards THR 149 amino acid residue, which was missing in compound 8. Molecular dynamics simulation was also performed for compounds 10 and 8 toward COX-2 and HER-2 protein sites. Further, compounds 8 and 10 were subjected to in-vitro COX-2 inhibition and cytotoxicity assay and the results obtained were in accordance with the in-silico study. Thus, compound 8 become more potent towards COX-2 inhibition with IC50 value of 48.51 µg/ml and compound 10 showed good bioactivity toward cytotoxic activity with IC50 value of 93.03 µg/ml.