The substituents on the phenyl ring are rotated slightly out of the mean plane of the ring while the piperidine moiety is nearly perpendicular to that plane. In the crystal, C—H⋯O hydrogen bonds form chains of molecules extending along the c-axis direction, which are linked by C&z-dbnd;O⋯π(ring) interactions. A Hirshfeld surface analysis showed the majority of intermolecular interactions to be H⋯H contacts while O⋯H/H⋯O contacts are the second most numerous.