The crystal structure of the title compound, C20H16BrN3O2, was determined using an inversion twin. Its asymmetric unit comprises two crystallographically independent molecules (A and B) being the stereoisomers. Both molecules are linked by pairs of N—H O hydrogen bonds, forming a dimer with an R22(16) ring motif. The dimers are connected by further N—H O and N—H N hydrogen bonds, forming chains along the c-axis directionC—Br interactions between these chains contribute to the stabilization of the molecular packing. Hirshfeld surface analysis showed that the most important contributions to the crystal packing are from H H, C H/H C, O H/H O, Br H/H Br and N H/H N interactions. © 2022 International Union of Crystallography. All rights reserved.