Introduction: Tryptophan metabolism has been shown to be involved in tumor development. Two main tryptophan-degrading enzymes, tryptophan 2,3-dioxygenase (TDO2) and indoleamine 2,3-dioxygenase 1 (IDO1), may potently promote cancer cell survival and distant metastasis in diverse types of cancer, such as lung and breast cancer. IDO1 overexpression is an independent prognosticator in gastric cancer (GC). This work aimed to uncover the expression of TDO2 and its clinicopathologic significance in GC. Methods: TDO2 expression was evaluated in public data of The Cancer Genome Atlas cohort STAD and in two different GC cohorts. Correlation between TDO2 and immune cell infiltrates as well as PD-L1 tumor staining was investigated. The biofunction of TDO2 was examined with MTT, colony formation, and spheroid formation assays by RNA interference. Results: TDO2 expression was correlated with both progressive disease and clinical outcome, and its expression was an independent predictor of prognosis in GC. TDO2 expression was correlated with infiltration of immune cells and tumor expression of PD-L1. Inhibition of TDO2 expression suppressed cell proliferation, colony formation, and cell invasion of GC cells. Additionally, suppression of TDO2 expression inhibited spheroid body-formation and viability of GC organoids. Conclusion: Our data show that TDO2 might be a crucial marker for predicting prognosis and targeted therapy in GC.