The invention relates to a pallet machine which can automatically pallet bagged materials as bulked cement, chemical materials, rice or the like. The invention comprises a feeder, a bag rotation transmitter, a compression transmitter, a buffer transmitter, a grouped transmitter, a grouped bag pusher, a layering machine, a side face shape corrector, a vibration shape corrector, a lifter, a disc feeder, a pallet bearing outputting device, an output transmitter, a pallet disc storage transmitter, an electric control cabinet, a walk bench, and an arm rest lift. The invention has reasonable structure, low cost, and high speed, which combines a plurality of single machines, with clear and reasonable structure and simple maintenance.