The invention discloses a COB (chip on board) optical component automatic testing sorting machine, comprising a cabinet, a conveyor belt, a PLC (programmable logic controller) control system, an image system, a constant-current constant-voltage source system, a spectral analysis system, a data analysis system, as well as a feeding mechanism, a testing mechanism, a discharging mechanism, a classifying and receiving mechanism and a turnplate mechanism which are respectively arranged on the cabinet. The function of the automatic testing sorting machine is to realize auto-feeding and auto-discharging, the parameters such as the wavelength, the voltage drop, the luminous flux and the chromaticity coordinates of the COB optical component can be automatically tested online by sampling the light diffusely reflected through an integrating sphere by controlling the constant-current constant-voltage source system, lighting the COB component, and starting the spectral analysis system, and the automatic classification can be realized in combination with the PLC control system, and a subsequent package mechanism can perform the classified package conveniently; the testing and the sorting of the whole COB optical component are automatically performed, the production efficiency is high, the influence from a plurality of human factor is avoided, the detection precision is high, the labor can be substituted, the labor intensity is reduced, and the labor cost is reduced.