Volatile accumulation during tomato ripening greatly affects the fruit flavor. In this study, four accessions from each of the three tomato subgroups (BIG, S. lycopersicum, CER, S. lycopersicumvar. Cerasiforme, and PIM, S. pimpinellifolium) were subjected to a sensory evaluation. The CER subgroup had the highest fruit-flavor score. Using a Headspace solid-phase microextraction/gas chromatography-mass spectrometer (HP-SPME/GC-MS), a volatile database containing 94 volatiles was created. Pentanal accumulated in green fruits and 1-pentanol in red fruits. 1-Octen-3-ol was discovered to underlie the bitterness of green tomatoes, and it was most abundant in PIM green fruits. Phenylethyl alcohol affected the acidity and sweetness of red tomatoes, and it was most abundant in CER red fruits. Branched-chain volatiles were most abundant in PIM and BIG red fruits, while apocarotenoids were most abundant in CER red fruits. These findings suggest that domestication and improvement have influenced volatile content, and apocarotenoids and branched-chain volatiles synergistically mediated aromatic flavors in red fruits. This study provides a metabolic basis for analyses of the molecular mechanisms of fruit-flavor formation.