The whole molecule of the title compound, C16H11N7, is relatively planar, with an r.m.s. deviation of 0.061 Å for all 23 heteroatoms. It exhibits symmetric three-centre (bifurcated) intramolecular hydrogen bonds. In the crystal, molecules are linked by C—H...N hydrogen bonds, forming 31 helices propagating along the c-axis direction. Within the helices, there is evidence of offset π–π stacking being present [intercentroid distances = 3.648 (6) and 3.832 (6) Å].