The invention relates to the technical field of steel part machining, in particular to a steel part stacking and sorting device which comprises an ejection plate, a grabbing assembly, lifting drive equipment, a base plate, a leveling assembly and a stacking flat plate. The stacking flat plate is located and installed at the upper end of the base plate. By means of the lifting drive equipment, theejection plate moves downward, then the grabbing assembly makes contact with a workpiece, then the grabbing assembly grabs the workpiece, then the lifting drive equipment enables the workpiece to be lifted, and the workpiece is stacked and piled up on the stacking flat plate. After the workpiece is stacked and piled up on the stacking flat plate, an adjusting screw rod can be rotated, the adjusting screw rod is connected with the installing base in a threaded manner, therefore the adjusting screw rod enables the installing base to move inward while rotating, then an L-shaped baffle is driven to move inward, by mean of the L-shaped baffle, the workpiece stacked and piled up on the stacking flat plate is neat, the labor intensity is reduced, and the sorting effect is improved.