The invention includes a process which eliminates or reduces the CO2 emissions from a steam methane reforming and autothermal reforming plant. The process preferentially uses temperature swing adsorption units which are employed to purify the hydrogen stream instead of more conventional solvent based aMDEA plants to remove the CO2 from the gas stream when creating a higher purity hydrogen stream.