The invention discloses a winding device having an automatic winding function and used for cable production. The winding device comprises a base. A first fixing rod and a second fixing rod are fixedlymounted on the two sides of the top of the base correspondingly. A protective shell is fixedly mounted on the left side of the first fixing rod. A motor is fixedly mounted on the left side of the first fixing rod and is located inside the protective shell. According to the winding device having the automatic winding function and used for cable production, through the cooperation of the base, thefirst fixing rod, the second fixing rod, the protective shell, the motor, a circular sliding groove, a first disc, a first sliding block, a clamping block, a winding cylinder, a cylinder, a limiting disc, a clamping groove, an outer shell, a controller, an electric telescopic rod, a circular sliding rail, a second disc, a bearing, a telescopic rod and a second sliding block, the problems of low winding speed, long winding time and high cost of manual winding are solved; and when the winding device is used, manual winding is not needed, the amount of labor used for cable winding is reduced, thecable winding cost is reduced, and the cable winding time is shortened.