The title compound, C16H16N4O2S, crystallizes with two symmetry-independent half-molecules in the asymmetric unit. All non-H atoms in each molecule lie in a crystallographic mirror plane. The molecules form sheets in the ac plane, which then form stacks along the b axis. The sheets are connected via π–π stacking interactions [centroid–centroid distance between pyrazolato rings = 3.6949 (8) Å]