Waveguide optics takes up a prominent role in the progressing miniaturization of optical devices. Chip integrated photonic waveguides especially allow for complex routing schemes of light across a chip. In/out-coupling diffraction gratings form an essential tool in waveguide systems, as they facilitate the interaction between the waveguide system and the near or far-field.[1,2] Ideally, these gratings would couple out all light in the waveguide into a beam with a predefined polarization and, phase and intensity profile. As such they should be able to produce any functional beam that is typically prepared by free space optics. Yet, in practice there is typically a design trade-off between beam quality and out-coupling efficiency.[2] Light in the waveguide has to travel laterally through the grating to be coupled out. The light therefore decays exponentially over the grating, causing much more light to be coupled out at the start of the grating than at the end. This asymmetry results in a warped out-coupling intensity that heavily influences the light beam’s intensity profile. Especially when the grating is addressing points in the near field, as is the case for focusing waveguide grating couplers, this effect can be highly disruptive. In this work we present a grating constructed from a field of sub-wavelength scatterers, rather than full grating lines. By tuning the position and the density of the scatterers, the phase and the intensity of the out-coupled light can be set precisely over large grating areas. An iterative design algorithm is developed that carefully tunes the density so as to control the light intensity in the waveguide and the amount of out-coupled light. Using FDTD simulations we show that these gratings can efficiently couple out light into a nearly diffraction limited spot with an even angular intensity. We verify this experimentally by fabricating these gratings in the SiN/SiO2 system using e-beam lithography. In addition, we also show that these gratings can couple out more complex holographic patterns. These density controlled out-coupling gratings let us efficiently address the near-field on optical chips, making them ideal waveguide components for on-chip optical trapping, holographic imaging or fluorescent excitation.[3]