Background: The cervical cancer is the second most prevalent cancer for the woman in the world. It is caused by the oncogenic human papilloma virus (HPV). The inhibition activity of histone deacetylase (HDAC) is a potential strategy for cancer therapy. Suberoylanilide hydroxamic acid (SAHA) is widely known as a low toxicity HDAC inhibitor. This research presents in silico SAHA modification by utilizing triazole, in order to obtain a better inhibitor. We conducted docking of the SAHA inhibitor and 12 modified versions to six class II HDAC enzymes, and then proceeded with drug scanning of each one of them.Results: The docking results show that the 12 modified inhibitors have much better binding affinity and inhibition potential than SAHA. Based on drug scan analysis, six of the modified inhibitors have robust pharmacological attributes, as revealed by drug likeness, drug score, oral bioavailability, and toxicity levels.Conclusions: The binding affinity, free energy and drug scan screening of the best inhibitors have shown that 1c and 2c modified inhibitors are the best ones to inhibit class II HDAC.