In the title mol-ecule, C6H8N2, the endocyclic angles are in the range 118.43 (9)-122.65 (10)°. The mol-ecular skeleton is planar (r.m.s. deviation = 0.007 Å). One of the two amino H atoms is involved in an N-H⋯N hydrogen bond, forming an inversion dimer, while the other amino H atom participates in N-H⋯π inter-actions between the dimers, forming layers parallel to (100).