The present invention relates to a method for producing hydrogen, with reduced carbon dioxide emissions, from a hydrocarbon mixture. In said method, the hydrocarbon mixture is reformed so as to produce a synthetic gas that is cooled, then treated in a shift reactor so as to be enriched with H2 and CO2. Optionally dried, said mixture is treated in a PSA hydrogen purification unit in order to produce hydrogen. The residue is treated by means of partial condensation with a view to capturing CO4 before said residue is sent as fuel to reforming.