Transformation between 2D covalent organic frameworks (COFs) via exchange of molecular building blocks with different symmetries has been realized, which gives rise to the conversion between 2D COFs with distinct pore hierarchy. This type of monomer replacement has expanded the scope of the building-unit-exchange-based COF-to-COF transformation strategy.