The tray-forming machine can form various tray styles, including slotted trays, trays with lids, and other custom configurations. The automated tray machine takes a flat cardboard blank from the magazine, folds the blank, and forms a perfect tray, using self-locking tabs or hot glue for closure. The machine ejects the tray onto the output conveyor once the tray is formed.