Moulding device for moulding three-dimensional products from a mass of foodstuff which can be pumped, for example a meat mass, comprising: - a mould member having a moulding surface in which at least one mould cavity for moulding the products from the foodstuff is arranged, which mould cavity is provided with a mould cavity opening at the moulding surface, - a filling device for filling the mould cavity of the mould member with the foodstuff, which filling device is provided with a dispensing mouth, and a pump for displacing a volume of the foodstuff from the dispensing mouth, wherein the mould cavity opening of the mould cavity of the mould member and the dispensing mouth of the filling device can be moved with respect to one another along a movement path by a drive device, and wherein the dispensing mouth and the mould cavity opening each, viewed in the direction of the movement path, comprise a front edge and a rear edge which is situated at a fixed distance thereof, and wherein the distance between the front edge and the rear edge of the dispensing mouth in said direction is smaller than the distance between the front edge and the rear edge of the mould cavity opening in said direction, characterized in that the moulding device is provided with: - a position-determining device, for example a position sensor, for determining and/or detecting the position of the front edge of the mould cavity opening of the mould cavity with respect to the front edge of the dispensing mouth of the filling device during movement of the mould cavity opening of the mould cavity and the dispensing mouth of the filling device with respect to one another, and - a control unit which is connected to the position-determining device and to the pump, which control unit is configured to control the pump on the basis of the position-determining device during the movement of the mould cavity opening of the mould cavity and the dispensing mouth of the filling device with respect to one another in such a manner that the pump displaces a volume of the foodstuff which substantially corresponds to the volume of the mould cavity from the dispensing mouth into the mould cavity while the front edge of the mould cavity opening and the front edge of the dispensing mouth, viewed in the direction of the movement path, move with respect to each other over a predetermined filling length which has been input into the control unit, which filling length is smaller than the distance between the front edge and the rear edge of the mould cavity opening, viewed in the direction of the movement path. - a mould member having a moulding surface in which at least one mould cavity for moulding the products from the foodstuff is arranged, which mould cavity is provided with a mould cavity opening at the moulding surface, - a filling device for filling the mould cavity of the mould member with the foodstuff, which filling device is provided with a dispensing mouth, and a pump for displacing a volume of the foodstuff from the dispensing mouth, wherein the mould cavity opening of the mould cavity of the mould member and the dispensing mouth of the filling device can be moved with respect to one another along a movement path by a drive device, and wherein the dispensing mouth and the mould cavity opening each, viewed in the direction of the movement path, comprise a front edge and a rear edge which is situated at a fixed distance thereof, and wherein the distance between the front edge and the rear edge of the dispensing mouth in said direction is smaller than the distance between the front edge and the rear edge of the mould cavity opening in said direction, - a position-determining device, for example a position sensor, for determining and/or detecting the position of the front edge of the mould cavity opening of the mould cavity with respect to the front edge of the dispensing mouth of the filling device during movement of the mould cavity opening of the mould cavity and the dispensing mouth of the filling device with respect to one another, and - a control unit which is connected to the position-determining device and to the pump, which control unit is configured to control the pump on the basis of the position-determining device during the movement of the mould cavity opening of the mould cavity and the dispensing mouth of the filling device with respect to one another in such a manner that the pump displaces a volume of the foodstuff which substantially corresponds to the volume of the mould cavity from the dispensing mouth into the mould cavity while the front edge of the mould cavity opening and the front edge of the dispensing mouth, viewed in the direction of the movement path, move with respect to each other over a predetermined filling length which has been input into the control unit, which filling length is smaller than the distance between the front edge and the rear edge of the mould cavity opening, viewed in the direction of the movement path.