In the presented work, we report the design and synthesis of different new sets of triazolopyrimidine-based (9a-d) and triazole-based (11a-h, 13a-c, 15a,b, 17a,b and 21a-g) benzenesulfonamides. The newly synthesized sulfonamides were assessed for their inhibitory activities toward four human (h) metalloenzyme carbonic anhydrase (CA, EC 4.2.1.1) isoforms; hCA I, II, IX and XII. The four examined isoforms were inhibited by the prepared sulfonamides (9a-d, 11a-h, 13a-c, 15a,b, 17a,b and 21a-g) in variable degrees with KIs ranges: 94.4–4953.5 nM for hCA I, 6.9–837.6 nM for hCA II, 3.3–85.0 nM for hCA XI, and 4.4–105.0 nM for hCA XII. In particular, sulfonamides 11e, 21a and 21e emerged as single-digit nanomolar hCA IX and hCA XII inhibitors. Interestingly, triazolopyrimidine-based sulfonamide 9d and triazole-based sulfonamide 21e were found to be the most selective hCA IX inhibitors over hCA I (SI = 100.85 and 210.58, respectively) and hCA II (SI = 18.54 and 38.36, respectively). Thereafter, sulfonamides 9d and 21e were docked into the active site of CAs II, IX and XII, then poses showing the best scoring values and favorable binding interactions were subjected to a MM-GBSA based refinement and, limited to CA IX and XII, to a cycle of 100 ns molecular dynamics.