Background: Hexokinase 2 not only plays a role in physiological function of human normal tissues and organs, but also plays a vital role in the process of glycolysis of tumor cells. However, there are few comprehensive studies on HK2 in esophageal carcinoma (ESCA) needs further study.Methods: Oncomine, Tumor Immune Estimation Resource (TIMER), The Cancer Genome Atlas (TCGA) and Gene Expression Omnibus (GEO) database were used to analyze the expression differences of HK2 in Pan-cancer and ESCA cohort, and to analyze the correlation between HK2 expression level and clinicopathological features of TCGA ESCA samples. GO/KEGG, GGI, and PPI analysis of HK2 was performed using R software, LinkedOmics, GeneMANIA and STRING online tools. The correlation between HK2 and ESCA immune infiltration was analyzed TIMER and TCGA ESCA cohort. The correlation between HK2 expression level and m6A modification of ESCA was analyzed by utilizing TCGA ESCA cohort.Results: HK2 is highly expressed in a variety of tumors, and its high expression level in ESCA is closely related to the weight, cancer stages, tumor histology and tumor grade of ESCA. The analysis results of GO/KEGG showed that HK2 was closely related to cell adhesion molecule binding, cell-cell junction, ameboidal-type cell migration, insulin signaling pathway, hif-1 signaling pathway, and insulin resistance. GGI showed that HK2 associated genes were mainly involved in the glycolytic pathway. PPI showed that HK2 was closely related to HK1, GPI, and HK3, all of which played an important role in tumor proliferation. The analysis results of TIMER and TCGA ESCA cohort indicated that the HK2 expression level was related to the infiltration of various immune cells. TCGA ESCA cohort analyze indicated that the HK2 expression level was correlated with m6A modification genes.Conclusion: HK2 is associated with tumor immune infiltration and m6A modification of ESCA, and can be used as a potential biological target for diagnosis and therapy of ESCA.