The invention discloses a method and a device for measuring sulfur content in coal by ultraviolet absorption spectroscopy. In the measurement method, the decomposition scale and a threshold are determined adaptively by combining empirical mode decomposition with 3sigma criterion, and non-stationary characteristics of differential absorption degree per se can be fully retained, so the spectral interference problem caused by dust, water vapor and background gas in combustion gas is effectively solved; the instantaneous concentration of SO2 is obtained through calculation according to the differential absorption degree after noise reduction and trend term removal, and the total sulfur content accumulated in the coal sample combustion gas is calculated through the gas flow; the sulfur content in the coal can be obtained by dividing the coal sample amount by the total sulfur content separated from the coal sample combustion; and the pretreatment process needed to be performed on the combustion gas by coulometric titration and an infrared absorption method is avoided. The device for measuring the sulfur content in the coal by the ultraviolet absorption spectroscopy comprises a combustion furnace, a measuring chamber, an ultraviolet light source, a spectrometer, an air purifying device, a flow meter, a waste gas treatment device, a computer, and the like.