A normal incidence vacuum ultraviolet (VUV) and a grazing incidence extreme ultraviolet (EUV) spectrometers have been developed for the edge and core impurity measurements in HL-2A tokamak. The VUV and the EUV spectrometers cover wavelength ranges of 300 similar to 3200 angstrom and 50 similar to 500 angstrom, respectively. A spatial resolution of 2 mm has been achieved for the VUV spectrometer when a space-resolved slit 50 mu m in width is used. The space-resolved slit is placed between the entrance slit and the grating of the spectrometer. The spectral resolutions of 0.15 angstrom for the VUV spectrometer in the wavelength coverage of the concave 1200 grooves/mm grating and of 0.22 angstrom for the EUV spectrometer at lambda=200 angstrom with a flat-field laminar-type holographic grating are obtained. The sensitivity of the VUV spectrometer was calibrated in situ with the plasma bremsstrahlung radiation. The experimental results from both spectrometers are presented, especially the line intensity radial profiles measured by the VUV spectrometer.