The present invention relates to a cooking device for cooking of foodstuffs, comprising a cooking chamber, a product conveyor, a shape-controlling belt, and a lifting member, the product conveyor being arranged to convey said foodstuffs through said cooking chamber, the shape-controlling belt being an endless belt extending along an upper return path, and a lower work path, the lifting member being arranged to shift a part of the lower work path between a first position in which the belt extending along said part is slacking and is adopted to contact said foodstuffs on the product conveyor, and a second position in which the belt extending along said part is adopted to be separated from said foodstuffs on the product conveyor. The invention further relates to a method for switching a cooking device between being adapted for shape-controlled cooking and non-shape-controlled cooking of food-stuffs, and use of the cooking device.