a device for bending a plurality of winding segments to form a winding of a winding carrier of an electric machine is provided . the device includes : a holding device designed for holding in place the winding carrier in which the winding segments are arranged ; a main bending device , including a number of main locking elements , which point towards the holding device , are arranged along first sections of a circumferential line and are designed to lock exposed end sections of first winding segments ; and a partial bending device , including a number of partial locking elements , which point towards the holding device , are arranged along second sections of the circumferential line and are designed to lock exposed end sections of second winding segments . the holding device on the one hand and the main bending device and the partial bending device on the other hand are rotatable relative to each other .