Low-cost, layered transition-metal dichalcogenides (MX_2) based on molybdenum and tungsten have attracted substantial interest as alternative catalysts for the hydrogen evolution reaction (HER). These materials have high intrinsic per-site HER activity; however, a significant challenge is the limited density of active sites, which are concentrated at the layer edges. Here we unravel electronic factors underlying catalytic activity on MX_2 surfaces, and leverage the understanding to report group-5 MX_2 (H-TaS_2 and H-NbS_2) electrocatalysts whose performance instead mainly derives from highly active basal-plane sites, as suggested by our first-principles calculations and performance comparisons with edge-active counterparts. Beyond high catalytic activity, they are found to exhibit an unusual ability to optimize their morphology for enhanced charge transfer and accessibility of active sites as the HER proceeds, offering a practical advantage for scalable processing. The catalysts reach 10 mA cm^(−2) current density at an overpotential of ∼50–60 mV with a loading of 10–55 μg cm^(−2), surpassing other reported MX2 candidates without any performance-enhancing additives