The invention relates to a method for sterilizing packaging material, comprising an emitter that is adapted to emit charge carriers, in particular electrons, wherein the charge carriers form at least one cloud, and wherein the emitter and the packaging material are moved relative to each other so that a flow of a gaseous medium is established in between the emitter and the packaging material. The method comprises the steps of: controlling a movement profile between the emitter and the packaging material; sterilizing the flow of the medium in between the emitter and the packaging material by adjusting the movement profile so that the flow of the medium in between the emitter and the packaging material is sterilized. Also disclosed is a device for sterilizing packaging material.