Food safety and food production are closely related to the health of consumers. Food-related accidents often cause tremendous losses of personnel and property. Thus, rapid detection and analysis of ingredients in food, tracing food sources, studying the optimal conditions for food production, and more are vital for preventing incidents related to safety. Conventional analysis based on proteomics, microbial cultures, and morphology, as well as biochemical tests based on metabonomics, are considered gold standards and used frequently, but they are labor-intensive, time-consuming, tedious, error-prone, and incapable of meeting the demand for rapid and precise detection at a large scale. Alternative detection methods that utilize capillary electrophoresis have the advantages of high efficiency, high throughput, high speed, and automation; these methods are coupled with various nucleic acid detection strategies to overcome the drawbacks of traditional identification methods, and to prevent false results. Therefore, this review focuses on the application of capillary electrophoresis based on nucleic acid detection in food analysis and provides an introduction to the limitations, advantages, and future developments of this approach.