Coal resources are rich in Ningxia. Long-term mining creates mine goaf, which causes coal to burn spontaneously for a very long time. Unavoidably, the rocks around the coal fire area are affected by high temperatures, which can alter the characteristics of rocks and lead to safety accidents. To explore the temperature influence of sandstone in coal fire areas under cyclic impact loading, the sandstone treated under different temperatures is tested by a split Hopkinson pressure bar (SHPB). The mechanical properties of rocks treated at different temperatures are obtained. The composition of rock is determined, and the energy dissipation is calculated. Meantime, the digital image correlation (DIC) method is applied to study the mechanical behaviors of sandstone. The results show that at the first impact, the peak stress of sandstone decreases as the temperature increases. However, there is no obvious trend in the peak strain. Under the SHPB cyclic impact, the sandstone specimen is completely destroyed after two to three times of impact at different temperatures. At 25~1000 °C, the dynamic peak stress of sandstone decreases with the increase in impact times, and brittle failure occurs. When the impact pressure is 0.6 MPa, the incident energy increases with the impact velocity; the dynamic peak stress increases with the transmitted energy. Using the DIC method, it is found that when the temperature is below 800 °C, the dynamic characteristics of rock specimen have a close correlation with the crack initiation point and extreme point. When the temperature exceeds 800 °C, the rock specimen is seriously damaged, the overall strain is small, and the stress transfer efficiency is low. These findings show that temperature significantly affects the mechanical properties and initial damage of the sandstone, and the performance and damage are abrupt at 800 °C. Meanwhile, the DIC technology can effectively characterize the strain evolution of rock materials and explain the formation and propagation process of cracks, which provides a valid means for studying the damage and crack evolution of materials.