The automatic packaging machine is made up of bag-type automatic packaging of various granular, strip/block irregular materials, such as puffed food, snack food, Quick-frozen foods, pet foods, such as raisins, red dates, melon seeds, almonds, pine nuts, candy, jelly and other materials. It automatically completes the feeding, bagging, coding, bag opening, quantification, filling, heat sealing, output packaging operations.