The invention discloses a palletizer for stacking steel pipes, which comprises a steel pipe conveyor belt, a bottom plate, a palletizing mechanism, a material pushing mechanism and a magnetic suction device for steel pipes. The material pushing mechanism is composed of a pushing plate and a second electric telescopic rod. The palletizing mechanism includes multiple sets of support plates, limit frames, multiple sets of first fixed seats, multiple sets of limit rods and multiple sets of second fixed seats, and the steel pipe magnetic device includes a column, a motor, a rotating seat and a supporting Components, the material holding component includes a third electric telescopic rod, a first placement plate, an air cylinder and a second placement plate. The invention can effectively realize the magnetic fixation of the supporting part to the steel pipe through the electromagnetic attraction on the supporting part and the supporting part, and can effectively realize the connection between the elastic picking piece and the extrusion plate through the position of the elastic picking piece in the arc-shaped chute. contact, the steel pipes can be stacked one by one through the inclined support plate, and the steel pipes can be stacked layer by layer by adjusting the expansion and contraction of the first electric telescopic rod.