An experimental study of the diffraction of X rays in the keV region by a lamellar multilayer amplitude grating is described. This optics is obtained by periodic etching of an interferential multilayer mirror down to the substrate. The advantages provided by the etching to the system response and its use as an energy separator are given.