Food safety is connected to public health, making it crucial to protecting people’s health. Food analysis and detection can assure food quality and effectively reduce the entry of harmful foods into the market. Carbon dots (CDs) are an excellent choice for food analysis and detection attributable to their advantages of good optical properties, water solubility, high chemical stability, easy functionalization, excellent bleaching resistance, low toxicity, and good biocompatibility. This paper focuses on the optical properties, synthesis methods, and applications of CDs in food analysis and detection, including the recent advances in food nutritional composition analysis and food quality detection, such as food additives, heavy metal ions, foodborne pathogens, harmful organic pollutants, and pH value. Moreover, this review also discusses the potentially toxic effects, current challenges, and prospects of CDs in basic research and applications. We hope that this review can provide valuable information to lay a foundation for subsequent research on CDs and promote the exploration of CDs-based sensing for future food detection.