The invention discloses a method for improving the surface cleanliness of a spring. The method comprises the following steps that demagnetizing is conducted for the first time, specifically, the spring is demagnetized through a demagnetizing machine; shot blasting is conducted, specifically, the spring is subjected to shot blasting through a shot blasting machine; heat treatment is conducted, specifically, the shot-blasted spring is tempered; demagnetizing is conducted for the second time, specifically, the spring is demagnetized through the demagnetizing machine; and hydrocarbon cleaning is conducted, specifically, the spring is cleaned through a hydrocarbon cleaning machine. According to the method, magnetism, residual stress and a surface oxidation layer, grease and dirt of the spring can be eliminated timely, and blind hole parts, concave parts, small gaps and other parts of springs and special-shaped golden parts are effectively cleaned; meanwhile, pollution and noise are avoided, batch assembly-line operation can be achieved, the machining efficiency is high, the cleaning quality is high, the requirement for the cleanliness standard is met; and meanwhile, damage to the spring is avoided, product performance is improved, the appearance requirement is met, a large amount of labor is saved, labor intensity is reduced, and the economic benefits are improved.