In the solid state, the title compound, adopts the keto–amine tautomeric form, with the H atom attached to the N atom, which participates in an intramolecular N—H⋯O hydrogen bond with an S(6) ring motif. In the crystal, molecules are linked by weak C—H⋯O hydrogen bonds to generate C(16) chains propagating in the [301] direction.