Treated sewage source heat pump systems can reuse the waste energy in the treated sewage. However, biofilms in the heat exchangers decrease the system efficiency. This work investigates the feasibility of thermal shock at accessible temperatures in heat exchangers for biofilm inhibition. Bacillus subtilis biofilms were formed on coupons and in a miniaturized plate heat exchanger. Thermal shocks at different temperatures (50-80 • C) for different exposure times (1-60 min) were used to treat the biofilms. The results showed that thermal shock had a significant bactericidal and biofilm inhibition effect, and the effect was enhanced as the temperature and the exposure time increased. Data fitting of the biomass showed that temperature had a more significant influence on the biofilm inhibition effect than exposure time. The results of the heat exchanging experiments showed that high temperature thermal shock could significantly mitigate the heat transfer deterioration caused by the biofilms, indicating that thermal shock could be used as a viable biofilm inhibition approach for heat exchangers.