An automatic anti-swing device of a crane effectively solves the problem that lifted goods are prone to swing and comprises a main beam, supporting legs and an
electric trolley, a winding drum is installed on the
electric trolley, a fixing frame is arranged below the
electric trolley, the upper end of the fixing frame is rotationally connected with a
pulley block, a first steel
wire rope is wound around the
pulley block, and the other end of the first steel
wire rope is wound around the winding drum. Auxiliary mechanisms are arranged on the front side and the rear side of the fixing frame and comprise first fixed pulleys, second fixed pulleys, third fixed pulleys and second steel wire ropes, the first fixed pulleys and the third fixed pulleys are located on the lower portion of the fixing frame, and the second fixed pulleys are located on the upper portion of the fixing frame. The second steel
wire rope sequentially penetrates through the first fixed
pulley, the second fixed pulley and the third fixed pulley, supporting plates are fixed to the left end and the right end of the second steel wire
rope, rings are fixed to the sides, away from the second steel wire
rope, of the supporting plates, vertical guide rods are fixed to the supporting legs, and the rings vertically slide along the guide rods.