The asymmetric unit of the title compound, C10H10N2O, contains two crystallographically independent molecules with similar geometries, which exist in the keto form. The C=O bond lengths are 1.2878 (12) Å in molecule A and 1.2890 (12) Å in molecule B, indicating that the compound undergoes enol-to-keto tautomerism during the crystallization process. In molecule A, the pyrazole ring is approximately planar [maximum deviation = 0.007 (1) Å] and forms a dihedral angle of 36.67 (6)° with the attached phenyl ring. In molecule B, the dihedral angle formed between the pyrazole ring [maximum deviation = 0.017 (1) Å] and the phenyl ring is 41.19 (6)°. In the crystal, intermolecular N—H⋯O hydrogen bonds link neighbouring molecules into dimers generating R
2
2(8) ring motifs. These dimers are linked into ribbons along [101] via intermolecular N—H⋯O hydrogen bonds, forming R
4
2(10) ring motifs.