We theoretically and experimentally study the phenomena related to self-phase modulation of Airy pulses in fibers. During nonlinear evolution, most spectral components of the Airy pulses concentrate into one or two peaks for normal and anomalous dispersion, respectively. The resulting peaks self-shift along the propagation, effectively mapping the longitudinal coordinate into the frequency domain. The frequency shift can be precisely controlled by simply acting on the spectral cubic phase structure without the need to alter the fiber length.