In the title compound, C24H20N4O2, the pyrazole ring makes dihedral angles of 47.57 (10)° and 30.56 (11)° with its N-bound and C-bound phenyl groups, respectively. The C-N-N-C group that links the two carbonyls has a torsion angle of 81.5 (2)°. The torsion angles between the carbonyl groups and their adjacent pyrazole and phenyl rings are 125.89 (19) and 164.22 (17)°, respectively. In the crystal, pairs of mol­ecules are linked by N-HO hydrogen bonds into R22(10) ring motifs, which in turn link to form chains that propagate parallel to the c-axis direction.

This is an open-access article distributed under the terms of the Creative Commons Attribution Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original authors and source are cited.