Spectroscopic studies of emissions released from tungsten ions combined with a pellet injection technique have been conducted in Large Helical Device for contribution to the tungsten transport study in tungsten divertor fusion devices and for expansion of the experimental database of tungsten line emissions. The spectral intensities of W5+, W24+–W28+, W37+, W38+, W41+–W43+, W45+, and W46+ emission lines were measured simultaneously over a wide wavelength range from x-ray to visible. Time evolutions of the various tungsten line spectra indicate that the tungsten confinement time depends on the electron density of the plasma and is long in high density plasmas, on the order of seconds, and short in low density plasmas, on the order of sub-seconds. When the confinement time was long, the tungsten ions remained in the plasma until the end of the discharge, changing their dominant charge with the change in electron temperature. When the confinement time was short, the tungsten ions rapidly decreased in all charge states and disappeared. Space-resolved EUV and visible spectroscopy measurements have revealed that tungsten ions stayed in the core region of the plasma with changing their dominant charge state depending on the electron temperature in the discharges with the long confinement time. Detailed analysis of soft x-ray emission suggested that the confinement time increases with density and becomes saturated when the central electron density exceeds 2 × 1013 cm−3.