In this paper, we investigate sulfur chemistry in laboratory analogs of Jupiter Trojans and Kuiper Belt Objects (KBOs). Electron irradiation experiments of CH_3OH–NH_3–H_2O and H_2S–CH_3OH–NH_3–H_2O ices were conducted to better understand the chemical differences between primordial planetesimals inside and outside the sublimation line of H_2S. The main goal of this work is to test the chemical plausibility of the hypothesis correlating the color bimodality in Jupiter Trojans with sulfur chemistry in the incipient solar system. Temperature programmed desorption (TPD) of the irradiated mixtures allows the detection of small sulfur allotropes (S_3 and S_4) after the irradiation of H2S containing ice mixtures. These small, red polymers are metastable and could polymerize further under thermal processing and irradiation, producing larger sulfur polymers (mainly S_8) that are spectroscopically neutral at wavelengths above 500 nm. This transformation may affect the spectral reflectance of Jupiter Trojans in a different way compared to KBOs, thereby providing a useful framework for possibly differentiating and determining the formation and history of small bodies. Along with allotropes, we report the production of organo-sulfur molecules. Sulfur molecules produced in our experiment have been recently detected by Rosetta in the coma of 67P/Churyumov–Gerasimenko. The very weak absorption of sulfur polymers in the infrared range hampers their identification on Trojans and KBOs, but these allotropes strongly absorb light at UV and Visible wavelengths. This suggests that high signal-to-noise ratio UV–Vis spectra of these objects could provide new constraints on their presence