Molecules of the title compound, C13H11N3O3, are connected into centrosymmetric dimers via intermolecular N—H⋯N hydrogen bonds, generating an R
2
2(8) motif. The pyrimidine and the phenyl rings are twisted with respect to each other by an interplanar angle of 61.3 (1)°.