The parameters of several double-layer rectangular phase-only gratings are optimized in order to obtain the beam splitters with high diffraction effieiency and good intensity uniformity. The beam splitters with respectively 2, 3, and 5 fan-out beams and higher than 89% of total diffraction efficiency and less than 5% of intensity nonuniformity are obtained theoretically.