The automatic winding machine comprises a main rod frame, a lower cylinder and an upper cylinder are fixedly installed at the upper end and the lower end of the outer ring of the main rod frame respectively, a winding mechanism is arranged on the outer wall of the lower cylinder, a frame body is fixedly connected with the outer wall of the lower cylinder, a buffer strip is fixedly connected to the tail end of a sliding block, and the buffer strip is fixedly connected to the tail end of the sliding block. The tail end of the buffer strip is fixedly connected with a telescopic spring, the tail end of the telescopic spring is fixedly connected with a clamping strip, a wiping mechanism is installed on the upper portion of the interior of the wire inlet pipe, and a balance cylinder is fixedly connected between the lower cylinder and the upper cylinder. According to the automatic winding machine for transformer production, the multiple sets of winding mechanisms can wind wires of multiple sets of transformers, the winding speed is increased, the automatic winding machine is suitable for batch production of cables of the transformers, meanwhile, the sliding grooves, the sliding blocks and the clamping strips are arranged, stable rotation of the winding rollers can be kept, meanwhile, stable supporting force can be provided for rotation of the winding rollers, and the winding efficiency is improved. And the winding work of the cable of the transformer is facilitated.