A process for producing methanol comprising the following steps: a. reforming of a hydrocarbon-containing source into a make-up gas comprising hydrogen, carbon oxides and water; b. subjecting the make-up gas generated in step (a) to a cooling process; c. separating a portion of makeup gas during the cooling process of step b) and before the cooling process is completed, and subjecting the remainder portion of makeup gas to complete cooling, obtaining a main stream of makeup gas, the separated gas being at a higher temperature than the main stream; d. subjecting said separated makeup gas to at least one water gas shift conversion step obtaining a shifted gas enriched in hydrogen; e. cooling said shifted gas and feeding the cooled shifted gas to a first hydrogen recovery section obtaining a first hydrogen stream; f. adding the main stream of makeup gas with said first hydrogen stream and with a second hydrogen stream obtained in step (i), thus obtaining an adjusted make-up gas with an adjusted content of hydrogen; g. feeding the adjusted make-up gas to a methanol synthesis loop wherein catalytic conversion of carbon oxides to methanol is carried out under methanol synthesis conditions, obtaining a condensate crude methanol stream; h. purifying the condensate crude methanol stream, preferably in a distillation section, obtaining a methanol product; i. feeding a purge stream withdrawn from the methanol synthesis loop to a second hydrogen recovery section obtaining a second hydrogen stream containing hydrogen removed from the purge stream, and a tail gas containing methane; j. adding the second hydrogen stream to the main stream of makeup gas according to step (f); k. using at least a portion of the tail gas as a feedstock for the production of the make-up gas of step (a). a. reforming of a hydrocarbon-containing source into a make-up gas comprising hydrogen, carbon oxides and water; b. subjecting the make-up gas generated in step (a) to a cooling process; c. separating a portion of makeup gas during the cooling process of step b) and before the cooling process is completed, and subjecting the remainder portion of makeup gas to complete cooling, obtaining a main stream of makeup gas, the separated gas being at a higher temperature than the main stream; d. subjecting said separated makeup gas to at least one water gas shift conversion step obtaining a shifted gas enriched in hydrogen; e. cooling said shifted gas and feeding the cooled shifted gas to a first hydrogen recovery section obtaining a first hydrogen stream; f. adding the main stream of makeup gas with said first hydrogen stream and with a second hydrogen stream obtained in step (i), thus obtaining an adjusted make-up gas with an adjusted content of hydrogen; g. feeding the adjusted make-up gas to a methanol synthesis loop wherein catalytic conversion of carbon oxides to methanol is carried out under methanol synthesis conditions, obtaining a condensate crude methanol stream; h. purifying the condensate crude methanol stream, preferably in a distillation section, obtaining a methanol product; i. feeding a purge stream withdrawn from the methanol synthesis loop to a second hydrogen recovery section obtaining a second hydrogen stream containing hydrogen removed from the purge stream, and a tail gas containing methane; j. adding the second hydrogen stream to the main stream of makeup gas according to step (f); k. using at least a portion of the tail gas as a feedstock for the production of the make-up gas of step (a).