NOVELTY - Recovering (P1) high purity gaseous hydrogen and carbon dioxide from syngas stream involves treating high pressure syngas stream in water gas shift reactor that increases hydrogen and carbon dioxide by forming water gas shift effluent; allowing the effluent to pass and be introduced into membrane separation unit; withdrawing first membrane stream; processing second membrane stream through compressor that is suitable for carbon dioxide removal in cryogenic purification unit and dehydration unit; followed by secondary water gas shift effluent that is routed to a hydrogen recovery unit.    USE - For recovering high purity gaseous hydrogen and high purity gaseous carbon dioxide from syngas stream (claimed).    ADVANTAGE - The process uses hydrogen selective membrane unit, cryogenic purification unit, hydrogen recover unit and multiple water gas shift reactors to recover pure H2 from coal or bio-mass fed gasification units, resulting in H2 rich stream and CO2 rich stream at high pressure. The CO2 stream produced is at high pressure and contains some CO, methane and H2 products. The process separates the CO2 from this stream at reduced energy cost by utilizing cryogenic purification unit.    DETAILED DESCRIPTION - Recovering (P1) high purity gaseous hydrogen and high purity gaseous carbon dioxide from syngas stream involves (a1) generating high pressure syngas stream containing at least hydrogen and carbon monoxide from at least one solid fuel sources in a gasification unit; (b1) treating the high pressure syngas stream in water gas shift reactor further to increase the hydrogen and carbon dioxide contents in the high pressure syngas stream by obtaining water gas shift effluent; (c1) allowing the water gas shift effluent to pass from the water gas shift reactor and be introduced into membrane separation unit that includes at least one module, where each module has at least one membrane that is highly selective for hydrogen, and each of the membranes have permeate side and residue side and allowing passing of hydrogen to the permeate side to form first membrane stream on the permeate side of the membrane and the retention of carbon dioxide and the remaining components in the water shift effluent to form second membrane stream on the residue side of the membrane; (d1) withdrawing the first membrane stream for further use; (e1) processing the second membrane stream through compressor to achieve pressure that is suitable for carbon dioxide removal in cryogenic purification unit and dehydration unit to reduce the dew point to temperature that is lower than the temperature reached in the next step to produce compressed and dried second membrane stream; (f1) processing the compressed and dried second membrane stream through cryogenic purification unit where carbon dioxide is separated and potentially purified through multiple or single step partial condensation and/or distillation using external refrigeration units or an auto-refrigerated process to produce carbon dioxide rich stream and high pressure non-condensable mixture of at least carbon monoxide, hydrogen and carbon dioxide; (g1) the high pressure non-condensable mixture is routed to second water gas shift reactor where it is further processed to further increase the hydrogen concentration in the high pressure non-condensable mixture by forming secondary water gas shift effluent; and (h1) the secondary water gas shift effluent is routed to hydrogen recovery unit for the recovery of hydrogen.