In order to meet the traceability requirements of the laser industry for the beam width measuring device and improve the laser beam width calibration capability,a device which the laser beam width is continuously adjustable based on spatial light modulator(SLM)has been designed for the calibration of different beam widths of lasers in the 400~700 nm wavelength range,which is used for the calibration of beam quality analyzers or laser spot measurement instruments.The experimental results show that the device is continuously adjustable in the width range of 0.1~5.0 mm.This device utilizes the strong ability of partially coherent beams to resist environmental disturbances,its short-term stability is 99.5%and long-term stability is 99.1%,better than the short-term stability and long-term stability of reference laser which is 96.8%and 96.3%respectively.In addition,based on the superior beam shaping ability of SLM,the device can output the irregular beam to Gaussian beam.