In the title compound, C6H9N2
+·C6H2N3O7
−, the three nitro groups of the anion are twisted from the central benzene ring at dihedral angles of 5.4 (1), 27.1 (1) and 32.9 (1)°. In the crystal, intermolecular N—H⋯O, N—H⋯(O,O) and N—H⋯N hydrogen bonds link the cations and anions into layers parallel to the bc plane.