Due to the enhanced mass transfer process of nanochannels and the high affinity of ionic liquids (ILs) for carbon dioxide (CO2), the membranes combined with 2D nanosheets and ILs have attracted significant attention in carbon capture, utilization, and storage (CCUS). However, regulating the structure of IL to enhance the separation performance of CO2 remains a big challenge. Herein, we selected different imidazolium-based ILs and proposed a simple strategy to prepare nano-confined IL membranes by intercalating ILs into graphene oxide (GO). These membranes are subsequently used to remove CO2 from industrial syngases, where they display an abnormal CO2 preferential permeation process relative to the smaller H2 molecule. Meanwhile, CO2 permeation decreases gradually with the increase of alkyl chain length, whereas CO2/H2 selectivity shows a tendency to first increase and then decrease. Interestingly, all GO-confined IL membranes surpass the Robeson upper bound, achieving peak CO2 permeance of 13.85 GPU and CO2/H2 selectivity of 13.58, respectively. Further characterization of the interlayer spacing and density functional theory (DFT) calculations reveal that the high CO2/H2 separation performance mainly arises from the fact that nano-confined ILs can block the transit of H2 through the dense packing structure, simultaneously enhancing CO2 solubility and permeability through the membrane. These quantitative insights into the nanoconfined IL membrane not only deepen the scientific understanding of the abnormal transfer process within the nanochannel but also propose novel methodologies for preparing high-performance CO2 capture membranes.