This paper examines the perception of risk associated with the presence of coronavirus in food purchased online and online vs. offline food shopping during the COVID-19 epidemic. The influence of COVID-19 status on risk perception was tested using the data collected from 742 consumers between December 2021 and January 2022. The empirical approach distinguished between the epidemic’s status in a province (or region), city, and other areas of the country and applied the ordered logit technique. The regional and citywide epidemic increased the perception that online purchases carry the virus and are riskier than those made offline. Further examination showed that the regional/provincial epidemic created the perception that packaging or social media use were risk factors when purchasing food online. Heterogeneity analysis showed that risk perception was significantly higher in affected cities than in non-affected provinces or other provinces. Risk perception differed across five online food categories, with the highest levels for online-ordered meals and fresh products. Strengthening COVID-19 prevention and control in cities and the province, managing risk due to the handling of food purchased online, and government monitoring of social media use will lessen consumers’ risk perceptions and encourage the use of online food offers during epidemics.