In the title compound, C15H18N4O4, the 1H-imidazole ring forms a dihedral angle of 67.12 (8)° with the benzene ring. An S(6) ring motif is formed via an intramolecular N—HO hydrogen bond. In the crystal, neighbouring molecules are linked by a pair of intermolecular N—HN hydrogen bonds, forming an inversion dimer. The dimers are further linked by a pair of C—HO hydrogen bonds, leading to the formation of chain along . A C—Hπ interaction involving the centroid of the benzene ring is also observed between the chains.