The crystal structure of the title compound, C9H9N3O2, features N-H⋯N and C-H⋯O inter-actions. The N-H⋯N inter-action generates a chain running along the a axis and the C-H⋯O inter-action generates a chain along the c axis. An intra-molecular C-H⋯O inter-action is also observed.