Making use of the preferred adsorption affinity and capacity to CO(2) as well as the highly porous structure with huge cavities of 2.4 nm, a highly permeable and selective ZIF-95 molecular sieve membrane was developed for the separation of H(2) from CO(2).