Moulding device for moulding three-dimensional products from a mass of foodstuff which is suitable for human consumption, said moulding device comprising: - a pump device for pumping the mass, - a mould which can be displaced along an associated path in a direction of displacement by associated drive means and contains mould cavities which are each delimited by a circumferential wall, a base and a filling opening which lies opposite the base, - a mass-feed component, which is arranged in a mass-feed position along the path for the mould, for the purpose of feeding mass to the mould cavities, which mass-feed component is coupled to the pump device for supplying the mass, - closure means which act downstream of the mass-feed position for the purpose of closing the filling opening of the mould cavity, - a source of air or another medium under pressure, - a first passage, which is in communication with one or more first nozzles located in a central area of the base, - a second passage which is in communication with one or more second nozzles in the circumferential wall, in the vicinity of the base, wherein the source of air or another medium under pressure is connectable to said first passage and said second passage selectively, and wherein, for releasing the moulded product from the mould cavity, the device is adapted to feed air or another medium under pressure first to the second passage and thus to said one or more second nozzles in the circumferential wall, while no air or other medium under pressure is being fed to the one or more first nozzles, and then to feed air or another medium under pressure to the first passage and thus to said one or more first nozzles as well. - a pump device for pumping the mass, - a mould which can be displaced along an associated path in a direction of displacement by associated drive means and contains mould cavities which are each delimited by a circumferential wall, a base and a filling opening which lies opposite the base, - a mass-feed component, which is arranged in a mass-feed position along the path for the mould, for the purpose of feeding mass to the mould cavities, which mass-feed component is coupled to the pump device for supplying the mass, - closure means which act downstream of the mass-feed position for the purpose of closing the filling opening of the mould cavity, - a source of air or another medium under pressure, - a first passage, which is in communication with one or more first nozzles located in a central area of the base, - a second passage which is in communication with one or more second nozzles in the circumferential wall, in the vicinity of the base, wherein the source of air or another medium under pressure is connectable to said first passage and said second passage selectively, and wherein, for releasing the moulded product from the mould cavity, the device is adapted to feed air or another medium under pressure first to the second passage and thus to said one or more second nozzles in the circumferential wall, while no air or other medium under pressure is being fed to the one or more first nozzles, and then to feed air or another medium under pressure to the first passage and thus to said one or more first nozzles as well.