The diffractive top-hat beam shapers are diffractive phase optical elements used to transform a near-gaussian incident laser beam into a uniform-intensity spot of either round or rectangular shape with sharp edges. Applications include laser heat treatment, annealing of surfaces in machinery and microelectronics, optical heads of laser writers and optical information processing.