The invention relates to the technical field of automation of production lines of small electronic products, in particular to an integrated automatic production line integrating feeding, machining, assembling, conveying and sorting. The automatic production line comprises a feeding unit, a machining unit, an assembling unit, a conveying unit and a sorting unit, wherein the feeding unit, the machining unit, the assembling unit, the conveying unit and the sorting unit are arranged on a guide rail type aluminum alloy table board. The feeding unit, the machining unit and the assembling unit are arranged in the moving direction of materials in the production line. The conveying unit is arranged on a guide rail conveying device. The guide rail conveying device is arranged in the moving direction of the materials in the production line and located on one side of the feeding unit, one side of the machining unit and one side of the assembling unit. The sorting unit is arranged on the ends of the assembling unit and the guide rail conveying device. According to the automatic production line, the whole production process is automatically controlled, workers do not need to watch over the production line in real time, the production efficiency is improved, the automation control accuracy is high and the quality product rate of products is increased.