GA(Genetic Algorithms) Algorithms is used to improve the traditional GS algorithm,and an improved method which is based on the combination of GA and GS algorithm of the diffractive optical element design is proposed.The diffractive optical elements is analyzed and designed,which can shape the laser beam to a letter shape,special shape and several aimed pattern shapes.This simulation results and expected results are matching.And simulation results of the method is compared with the simulation results of algorithm traditional GS.In the end,the experiment for verification is done.It validates the correctness of the design method further.