Designing low-dimensional hybrid organic–inorganic perovskites (HOIPs) with enhanced broadband emission under ambient conditions remains a pressing challenge. Here, interesting results of emission blueshift and enhancement were successfully achieved by pressure modulation of the (NH2(CH3)2PbI3 ((NH2(CH3)2 = DMA) structure. The observed rapid blueshifted emission is closely related to the distortion of PbI6 octahedron induced by phase transition from the P63/mc phase to the P1 phase at 0.8 GPa, which has been confirmed by in situ high-pressure PL, UV–vis absorption, synchrotron XRD and Raman spectroscopy. The pressure-induced PL enhancement of DMAPbI3 can be ascribed to the mechanism that the distorted PbI6 octahedrons promote the radiative recombination of self-trapped excitons by increasing the activation barrier energy for detrapping. The PL intensity enhancement was retained at 4 times the initial value after the pressure was released. These findings deepen the understanding of the structure-property relationships of one-dimensional perovskite and reveal the roles of pressure in regulating the optical properties of perovskites.