Method for extracting puree, or juice, from a starting product based on vegetable or animal food comprising a starting treatment step, for example a step of softening the food product obtaining a treated product (101). A deviation step follows (102), during which the treated product is selectively directed towards a cold extraction (110), or towards a hot extraction (200). If the treated product is directed towards a cold extraction, it follows firstly an extraction step (103), in which the treated product at the inlet is separated into a main product comprising the puree, or the juice (103a) and into a waste material (103b). The main product is then subjected to an enzymatic inactivation step which provides quickly heating the treated product up to a determined temperature T (104). In case, instead, the treated product is directed towards a hot extraction, it follows firstly the enzymatic inactivation step (203), and then it follows the extraction step, from which the main product (204a) and the waste material (204b) derive.