The invention relates to the technical field of air compressors, and discloses a silencing device for an air compressor. The silencing device comprises a left support, a left isolation cover, a rightisolation cover and a right support, wherein the right side of the left support is fixedly connected with a first cross rod, and the bottom of the left support is provided with a screw. According to the silencing device for the air compressor, a first sleeve block, a second sleeve block, a limiting pull rod, a first rotating plate, a second rotating plate, an upper spring, a lower spring and the like are arranged, the limiting pull rod is pushed leftwards, the upper spring and the lower spring are compressed, a rectangular block at the left end of the limiting pull rod is moved out of a groovein the left side of a clamping block, then the limiting pull rod is rotated by 90 degrees, the position of the rectangular block at the left end of the limiting pull rod corresponds to the position of a longitudinal through groove in the clamping block, and the limiting pull rod is loosened and reset so that the left isolation cover and the right isolation cover can be opened by pulling correspondingly to overhaul and maintain an internal motor, and the problems that later overhaul and maintenance of the motor of the air compressor are inconvenient due to the fact that the operation of installing a sound insulation board is too complex at present are solved.