The wave-equation dispersion spectrum inversion is applicable to imaging the shallow Earth across scales.• It avoids picking explicit dispersion curves, utilizes all the existing modes and inverts for multi-dimensional S-wave velocity models.• A gradient-based optimization is used to update the S-wave velocity.