Ordered and flexible porous frameworks with solution processability are highly desirable to fabricate continuous and large-scale membranes for the efficient gas separation. Herein, the first microporous hydrogen-bonded organic framework (HOF) membrane has been fabricated by an optimized solution-processing technique. The framework exhibits the superior stability because of the abundant hydrogen bonds and strong π-π interactions. Thanks to the flexible HOF structure, the membrane possesses the unprecedented pressure-responsive H2 /N2 separation performance. Furthermore, the scratched membrane can be healed by the treatment of solvent vapor, achieving the recovery of separation performance.