Hyperglycemia serves an important role in the pathogenesis of diabetic cardiomyopathy. The aim of the present study was to investigate whether exogenous hydrogen sulfide (H2S) protects against high glucose-induced inflammation and cytotoxicity in cardiac cells by inhibiting the p38 mitogen-activated protein kinase (MAPK)/nuclear factor-kappa B (NF-kappa B), cyclooxygenase-2 (COX-2) and inducible nitric oxide synthase (iNOS) signaling pathways. Rat H9c2 myocardium cells were exposed to 33 mM glucose (high glucose, HG) for 24 h to stimulate HG-induced cytotoxicity. One group of cells was pretreated with NaHS (a donor of H2S) prior to HG exposure, and cell viability was determined using the Cell Counting Kit-8 assay. The protein expression levels of p38MAPK, the phosphorylated p65 subunit of NF-kappa B, iNOS, COX-2 and caspase-3 were analyzed by western blotting, and the protein expression levels of interleukin (IL) -1 beta and IL-6 were detected by enzyme-linked immunosorbent assay (ELISA). Pretreatment of H9c2 cells with NaHS for 30 min prior to exposure to HG significantly ameliorated the expression of p38MAPK and NF-kappa B. In addition, pretreatment with NaHS markedly attenuated p38MAPK/NF-kappa B-mediated cytotoxicity and inflammation, as evidenced by the significant increase in cell viability and decrease in iNOS, COX-2, IL-1 beta and IL-6 expression levels. Furthermore, treatment of cells with NaHS significantly decreased the expression of caspase-3, which suggested that NaHS attenuated HG-induced apoptosis. In conclusion, the results of the present study provided evidence to suggest that exogenous H2S protects against HG-induced cytotoxicity and inflammation in H9c2 cardiac cells. H2S may exert these cytoprotective effects via inhibition of the p38MAPK/ NF-kappa B, COX-2 and iNOS signaling pathways.