The molecular conformation of the title compound, C17H14ClN3O4, is stabilized by an intramolecular C-H···O contact, forming an S(6) ring motif. In the crystal, the molecules are connected by N-H···O hydrogen-bond pairs along the b-axis direction as dimers with R22(8) and R22(14) ring motifs and as ribbons formed by intermolecular C-H···N hydrogen bonds. There are weak van der Waals interactions between the ribbons. The most important contributions to the surface contacts are from H···H (34.9%), O···H/H···O (19.2%), C···H/ H···C (11.9%), Cl···H/H···Cl (10.7%) and N···H/H···N (10.4%) interactions, as concluded from a Hirshfeld surface analysis. © 2021 International Union of Crystallography. All rights reserved.