Membrane separation of CO from H, N, or CH has economic benefits. However, the trade-off between selectivity and permanence in membrane separation is challenging. Here, we prepared a high-performance CO-philic membrane by confining the [BMIM][BF] ionic liquid to the nanochannels in a laminated graphene oxide membrane. Nanoconfinement causes the [BMIM][BF] cations and anions to stratify. The layered anions facilitate CO transportation with a permeance of 68.5 GPU. The CO/H, CO/CH, and CO/N selectivities are 24, 234, and 382, respectively, which are up to 7 times higher than that of GO-based membranes and superior to the 2008 Robeson upper bound. Additionally, the resultant membrane has a high-temperature resistance, long-term durability, and high-pressure stability, indicating its great potential for CO separation applications. Nanoconfining an ionic liquid into the two-dimensional nanochannels of a laminated membrane is a promising gas separation method and a nice system for investigating ionic liquid behavior in nanoconfined environments.