PurposeInternet-famous food (also known as “online celebrity” food) is very popular in the digital age. This study aims to investigate consumer attitudes and understand consumer behavior towards Internet-famous food.Design/methodology/approachThe authors collected 136,835 online comments regarding “Internet-famous food” from Dianping platform between 2016 and 2019 using a web scraper. A sentiment lexicon for Internet-famous food was constructed, and sentiment analysis is further conducted to understand consumer attitudes. Additionally, the authors use topic analysis and time series analysis to study consumer behavior.FindingsSentiment analysis showed that the number of consumers' comments decreased over time with the attitudes being overall positive, and the Internet-famous food industry has a positive prospect; time series analysis showed that the consumption of Internet-famous food was not affected by the season; topic analysis showed that consumers' comments on Internet-famous food were rich with a large variety, covering food categories, brand, quality, service, environment and price.Originality/valueTo the authors’ knowledge, limited research has focused on public opinions regarding “Internet-famous food”. This is the first study on consumer behavior towards Internet-famous food. This article provides a unique insight into the purchasing behavior and attitude of Chinese Internet-famous food consumers through text mining.