The Geostationary Environment Monitoring Spectrometer (GEMS), an ultraviolet and visible imaging spectrometer, provides air-quality information over a large area of the Asia Pacific region with a high spatiotemporal resolution. To assure the reliability of trace gas retrieval, accurate knowledge of the spectral response function (SRF) is critical for spectral calibration as well as retrieval algorithms. Here, we characterize the GEMS SRF using prelaunch SRFs obtained with the monochromatic laser measurements during the ground test and inflight SRFs retrieved using the solar irradiance measurements after the launch. The prelaunch SRFs are analyzed in terms of shape (skewness and kurtosis), width, and under-sampling and show that the full-width at half-maximum is smaller than 0.6 nm with a maximum of 0.589 nm. The variations along both the spectral and spatial directions are smooth and within 3.65%, indicating a highly homogenous and stable optical system of GEMS. To characterize the prelaunch SRFs and monitor the behavior of inflight SRFs, we applied several analytical functions including asymmetric super Gaussian (ASG) and hybrid Gaussians to the prelaunch SRFs. The spectral fitting of the measured GEMS irradiance with a reference spectrum shows that the ASG to be the best representative of the GEMS SRFs. The inflight SRFs, retrieved with the GEMS irradiances and the ASG, agree well with the prelaunch SRFs, suggesting that the inflight spectral performance and characteristics of GEMS are similar to those investigated from the on-ground characterization.