An injection molding tool for producing at least one molded part in a molding space, wherein the injection molding tool has at least two tool elements which can be moved relative to one another between an open position and a closed position, wherein in the closed position the molding space is at least partially enclosed by the at least two tool elements and wherein in the open position a molded part produced in the molding space is removed from the injection molding tool, wherein the injection molding tool has at least one spacer element, which can be arranged in the injection molding tool in such a way that a movement of the at least two tool elements from the open position in the direction of the closed position is only permitted by the spacer element up to a cleaning position which lies between the open position and the closed position and a further movement of the at least two tool elements in the direction of the closed position is prevented by the spacer element, wherein in the cleaning position the at least two tool elements and the spacer element form at least one section of an extended molding space for receiving a plasticized melt.