The cation of the title molecular salt, C12H9N4S+·ClO4−, is approximately planar, with the pyridine and pyridinium rings being inclined to the central thiadiazole ring by 6.51 (9) and 9.13 (9)°, respectively. The dihedral angle between the pyridine and pyridinium rings is 12.91 (10)°. In the crystal, the cations are linked by N—H...O and C—H...O hydrogen bonds, involving the perchlorate anion, forming chains propagating along the [100] direction. The chains are linked by weak offset π–π interactions [inter-centroid distance = 3.586 (1) Å], forming layers parallel to the ab plane.