Abstract We use supersymmetric localization techniques to study the low-energy dynamics of BPS vortex-strings in four-dimensional N = 2 $$ \mathcal{N}=2 $$ theories. We focus on theories with SU(N c ) × U(1) gauge group and N f hypermultiplets, all in the fundamental representation of SU(N c ) but with general U(1) charges. Recently, we proposed a condition that determines whether the low-energy string dynamics is captured by a two-dimensional worldsheet theory that decouples from the bulk [1]. For strings for which this decoupling applies, we propose a prescription for extracting the two-sphere partition function of the string worldsheet theory from the four-ellipsoid partition function of the parent theory. We obtain a general formula for...