The invention discloses an automatic packaging machine which comprises a rotary table, material trough mechanisms, a film tearing mechanism, a material feeding mechanism, a bar code scanning mechanism, a film coating mechanism, a labeling mechanism, a bag discharging mechanism, a bag tearing mechanism and a bagging mechanism, wherein the material trough mechanisms, the film tearing mechanism, the material feeding mechanism, the bar code scanning mechanism, the film coating mechanism, the labeling mechanism, the bag discharging mechanism, the bag tearing mechanism and the bagging mechanism are arranged outside the rotary table in the anticlockwise rotation direction of the rotary table; and a film feeding station, a material feeding station, a bar code scanning station, a film coating station and a bagging station are arranged on the rotary table in the circumferential direction of the rotary table in sequence so as to finish working procedures such as film releasing and tearing, film feeding, material feeding, bar code scanning, film coating, bag discharging, labeling, bag tearing, bag opening, bagging and discharging. The automatic packaging machine integrates various working procedures, realizes automatic film coating, bar code sticking and bagging, is compact in connection of the working procedures, high in production stability and high in degree of automation, adopts a double-product processing mode and has high productivity.