The asymmetric unit of the title compound, C13H10N2O3, contains four independent mol-ecules (I, II, III and IV). Mol-ecule IV shows whole-mol-ecule disorder over two sets of adjacent sites in a 0.669 (10):0.331 (10) ratio. The dihedral angles between the aromatic rings are 32.30 (13)° in mol-ecule I, 2.24 (14)° in II, 41.61 (13)° in III, 5.0 (5)° in IV (major component) and 10.2 (3)° in IV (minor component). In the crystal, mol-ecules are linked into layers lying parallel to (024) by C-H⋯O and O-H⋯O inter-actions. The layers inter-act by C-H⋯π and weak aromatic π-π stacking inter-actions [centroid-centroid distances = 3.8476 (16), 3.725 (3) and 3.733 (5) Å].
Keywords: C—H⋯π interactions; crystal structure; hydrogen bonding; nitroaromatic compounds; whole-molecule disorder; π–π stacking interactions.