This study initially explores and reports the feasibility of surfactant foams to increase the efficacy of hydrogen storage in porous media. This is an essential field of study, which aims to tackle a primary concern of the future hydrogen-based economy-hydrogen storage, which is essential for the supply of energy during periods of intermittent supply. For this, storage of hydrogen in porous media is explored wherein non-uniform front advance and superior gas mobility reduce storage efficacy. To mitigate this concern, the foam was prepared using compressed air and a non-ionic surfactant, Triton X-100, in a guar gum solution of 4000 ppm. A fabricated sand-pack, prepared from the sand of size 100−180 μm, was used as porous media, in which hydrogen storage was evaluated for a fixed flow rate of 30 mL/h as a function of varying slug sizes. The inclusion of foam as mobility control fluid massively increased hydrogen storage by a factor of 1.5−2.7, with slug size 0.5 PV being the most desirable. Enhanced hydrogen storage was obtained when a slug of 0.3 PV or greater was used. Altering the gas flow rate from 30 to 60 mL/h reduced hydrogen storage by 34%. The presence of crude oil reduces foam stability, and the injection and storage of hydrogen gas in depleted oilfields having high volume of crude oil is thus not recommended. This study promotes the use of surfactant foams for subsurface storage of hydrogen in sandstone media by controlling the mobility of injected gas.