The invention discloses a steel ball racking machine comprising a rack, a funnel arranged on the rack, an upper valve sealing mechanism, a lower valve sealing mechanism, a racking cylinder, an upper chute, a discharge cylinder, a lower chute, a discharge pipe and a control system, wherein the upper valve sealing mechanism comprises a first supporting plate arranged on the rack, a first driving mechanism is arranged on the first supporting plate, a first transmission mechanism is connected to the first driving mechanism, a first propelling mechanism is connected to the first transmission mechanism, and an upper valve is connected to the first propelling mechanism; the discharge cylinder is arranged on the bottom surface of a second supporting plate, a discharge hole is arranged in the discharge cylinder, a material storage cavity is communicated with the discharge hole, and a lower valve can simultaneously seal the outlet of the material storage cavity and the inlet of the discharge hole; the lower chute is arranged on the discharge cylinder, the lower valve is located in the lower chute, and the inlet of the discharge hole is located in the bottom surface of the lower chute; the discharge pipe is connected with the discharge cylinder; and the control system is electrically connected with the first driving mechanism and a second driving mechanism.