Process for producing a hydrogen product, in which a carbonaceous feed is converted by reforming and water gas conversion in order to obtain a hydrogen- and carbon dioxide-containing gas mixture referred to as synthesis gas, from which, in a first CO2 separation step, the removal of carbon dioxide gives rise to crude hydrogen, and this is processed by at least one further process step to give the hydrogen product, wherein process heat is obtained by combustion of a fuel and carbon dioxide separated from the synthesis gas is disposed of by sequestration or sent to a physical use, wherein the synthesis gas is separated into a first and a second synthesis gas substream, of which the first is treated in the first CO2 separation step in order to obtain the crude hydrogen, while a combustion gas consisting largely of hydrogen is formed from the second synthesis gas substream by the removal of carbon dioxide in a second CO2 separation step and is combusted to obtain process heat.