The present study aimed to investigate the genetic effects of hydrocortisone (HC) treatment on keloids and screen medicines to be used in a combination therapy of keloids with HC. The dataset GSE7890 was downloaded from Gene Expression Omnibus. It contained data regarding 4 fibroblast samples from normal scar tissue and 5 samples from keloid tissue with HC treatment, as well as 5 samples from normal scar and 5 samples from keloids without HC treatment. Following the identification of differentially expressed genes (DEGs), the functions of these DEGs were analyzed by Gene Ontology (GO) and pathway enrichment analyses. Furthermore, adverse effects of HC were identified using WebGestalt. Additionally, candidate small molecule drugs associated with keloids were selected from a connectivity map database. A total of 166 and 41 DEGs, with and without HC treatment respectively, were only present in dermal fibroblasts from keloids (termed genesets A and B, respectively). A set of 26 DEGs was present following both treatments (geneset C). A number of DEGs in geneset B (COL18A1 and JAG1) were associated with endothelial cell differentiation. However, in genesets A and C, certain genes (CCNB1 and CCNB2) were involved in the cell cycle and p53 signaling pathways, and a number of genes (IL1R1 and COL1A1) were associated with bone loss. Additionally, numerous small molecule drugs (including acemetacin) were associated with keloids. Thus, it has been determined that HC may treat keloids by targeting genes associated to endothelial cell differentiation (COL18A1 and JAG1). However, HC has a number of adverse effects, including bone loss. Acemetacin may be applied in a combination therapy, along with HC, to treat keloids.