The carton forming machine is a three-dimensional carton forming machine driven by cam double guide rails. There is no noise and little vibration during the production process. The machine can be used to produce three-dimensional paper boxes such as hamburger boxes, packing boxes, cake boxes, French fries boxes, hardware boxes, etc.