A facile one-step method to shape covalent triazine frameworks (CTFs) for catalytic applications is reported. Phase inversion of the CTF powder by using a polyimide as a binder in a microfluidic device results in the formation of composite spheres with accessible CTF porosity and a high mechanical and thermal stability. The fabricated spheres can be used to host organometallic complexes. The obtained shaped catalysts, Ir@CTF spheres, are active and fully recyclable in the direct hydrogenation of carbon dioxide into formic acid under mild reaction conditions (20 bar and 50–90 °C) and in the dehydrogenation of formic acid.