A series of secondary and tertiary aryl sulfonamides were synthesized under flow conditions and evaluated for their ability to selectively inhibit tumor-associated carbonic anhydrase isoforms IX and XII. The tested compounds revealed to be highly potent CA IX inhibitors in nanomolar range, and to inhibit CA XII activity with different ranks of potencies. Remarkably, 4-methyl-N-phenyl-benzenesulfonamide was a selective nanomolar CA IX inhibitor with an IC50 of 90 nM.