A device for moulding foodstuff masses comprises: - one or more moulds (14)provided with sockets (16) which define pouring cavities; inserts (22) made ofthermally conductive material associated, in a relationship of heat exchange,with the pouring cavities (16); and - thermal-conditioning cells, associatedto the conductive material (2). There is present generating signals forconditioning units (24) thermal treatment of units (24), such as Peltier ainserts made of thermally control unit control of the so as to provide thematerial (34) for thermal~cycles of undergoing selectively pre-determinedpouring. A preferential application is in the sector of the confectioneryindustry.