5-Aminolevulinic acid (ALA) plays a vital role in promoting plant growth, enhancing stress resistance, and improving fruit yield and quality. In the present study, tomato fruits were harvested at mature green stage and sprayed with 200 mg L–1 ALA on fruit surface. During ripening, the estimation of primary and secondary metabolites, carotenoids, and chlorophyll contents, and the expression levels of key genes involved in their metabolism were carried out. The results showed that ALA significantly promoted carotenoids accumulation by upregulating the gene expression levels of geranylgeranyl diphosphate synthase (GGPPS, encoding geranylgeranyl diphosphate synthase), phytoene synthase 1 (PSY1, encoding phytoene synthase), phytoene desaturase (PDS, encoding phytoene desaturase), and lycopeneβ-cyclase (LCYB, encoding lycopene β-cyclase), whereas chlorophyll content decreased by downregulating the expression levels of Mg-chelatase (CHLH, encoding Mg-chelatase) and protochlorophyllide oxidoreductase (POR, encoding protochlorophyllide oxidoreductase). Besides, the contents of soluble solids, vitamin C, soluble protein, free amino acids, total soluble sugar, organic acid, total phenol, and flavonoid were increased in ALA-treated tomato fruit, but the fruit firmness was decreased. These results indicated that the exogenous ALA could not only promote postharvest tomato fruit ripening but also improve the internal nutritional and flavor quality of tomato fruit.