The invention relates to the technical field of winding equipment and discloses an automatic winding machine, which is used for winding an enameled wire into a coil, and comprises a machine seat, a wire arrangement mechanism, a winding mechanism, a wire clamping mechanism, a wire twisting mechanism, a heating mechanism, a wire removing mechanism and a control center. The wire arrangement mechanism is used for winding the enameled wire. The winding mechanism is capable of winding the enameled wire onto the wire arrangement mechanism; the wire clamping mechanism is capable of clamping the end of the enameled wire onto the wire arrangement mechanism or is capable of pinching off and fixing the enameled wire. The wire twisting mechanism is capable of tightening the enameled wire wound onto the wire arrangement mechanism. The heating mechanism is used for heating the enameled wire wound onto the wire arrangement mechanism. The wire removing mechanism is capable of removing a coil formed on the wire arrangement mechanism. The control center is capable of controlling the actions of all the mechanisms. Compared with the prior art, the automatic winding machine can complete a series of automatic operations on the enameled wire, such as winding, heating, twisting, removing and the like. The automatic winding machine has the advantages of high production efficiency and higher degree of automation, which can reduce the cost and reduce the reject ratio of the coil. The automatic winding machine is suitable for processing various coils with different dimensions.