Four acrylonitrile derivatives with different length of alkyl chains were synthesized.
The derivatives exhibited aggregation-induced emission feature.
The derivatives showed alkyl length dependent mechanofluorochromism.
The mechanofluorochromism was affected by molecular polarity and crystalline performance.