The potential of nanocomposite membranes (NCMs) prepared by the sodium alginate polymer and embedded with synthesized zeolitic imidazole framework-8 (ZIF-8) as fillers having microporous structure in the application of separation of gaseous mixture generated by the process of methane reforming was assessed. ZIF-8 crystals were created through hydrothermal synthesis, with sizes varying from 50 to 70 nm. NCMs were prepared with a 15% filler loading, i.e., synthesized ZIF-8. NCMs (ZIF-8) having H2 permeability of 28 Barrer and H2/CH4 selectivity of 125 outperformed neat polymer membranes in terms of separation performance at ambient temperature and 4 kg/cm2 pressure. The purity of H2 increased to as high as 95% among the measured values. The NCMs did not, however, outperform a neat polymer membrane in terms of their ability to separate mixtures of gases. Moreover, the combination of ZIF-8 as a filler with sodium alginate was new and had not been reported previously. As a result, it is worthwhile to investigate.