Method for the hot filling of liquids, in particular juices, with a flash pasteuriser, which comprises a first heat exchanger, a filling station for filling the liquids into containers, for example bottles, and a cooling tunnel, which comprises a plurality of cooling cells, for cooling the filled containers by means of a cooling liquid, for example water, whereby the liquids are heated in the flash pasteuriser before filling into containers in the filling station, in that thermal energy from the cooling liquid from the cooling tunnel heated during the cooling process is passed to the flash pasteuriser by means of a separate heat pump.