Abstract- In this paper, a bending machine for tuning optical design of LED module is proposed. The tuning is done by changing the bending angles of each package on a given module with the help of automatic control program. Luminous intensity distribution can be controlled by adjusting the light emission path, which in turn can be implemented as changing the bending angles of individual LED packages on the module. The proposed machine is capable of bending packages to specified angles with errors less than 0.1°. Three-dimensional light distribution for bent package LED modules is also studied based on various application scenarios so that each scenario can have diversified luminous intensity distribution resulting in higher uniformity and better luminance quality. The machine has several advantages, including quick bending, high accuracy, and great customizability. These advantages make the machine meet the requirements of automatic mold forming.