The device (10) incorporates at least one retaining tool part (13) for holding the tube, at least one forming tool part (14) which is movable crossways to the tube axis and at least one counter tool part (15) which is opposite to the forming tool part. The retaining tool part is movable crossways to the tube axis and is opposite to the counter tool part.