The invention relates to the technical field of conventional electric power manufacturing, and discloses a moisture absorber for a transformer. The moisture absorber comprises a side box, a main box body, a sealing cover, a silica gel moisture absorption device I, a silica gel moisture absorption device II, a connecting pipe, an air humidity detector and a bolt, wherein the right end of the side box is connected with the left end of the main box body through a flange plate, and the sealing cover is located on the upper surface of the main box body. Real-time humidity detection is carried out on air entering the transformer through the arrangement of an air humidity detector, so that the safety of the transformer is effectively improved; the moisture absorption effect of the moisture absorber is strictly monitored by adopting a modern technology; and manual observation and a glass silica gel cylindrical container are omitted, the labor cost is reduced, the structural strength of the moisture absorber is improved, the safety of the moisture absorber is improved, and the loss caused by damage of the silica gel container is reduced. Meanwhile, the use efficiency of silica gel can be effectively improved, the use time of the silica gel is prolonged, the replacement frequency of the silica gel is reduced, and the maintenance cost is reduced.