The canine mammary tumor is the most common tumor type in female dogs and seriously threatens their life. Currently, no effective treatments are available for this condition. Hence, it is essential to identify biomarkers that positively influence the early diagnosis and treatment and prognosis of this disease. To provide a basis for early diagnosis of canine breast tumors, in this study, 23 dogs with mammary tumors were identified via histopathological examination combined with ancillary diagnoses via blood examinations and diagnostic imaging. The canine mammary tumor and tumor-adjacent healthy tissues were collected, and their metabolites were identified utilizing a UHPLC-qTOF-MS-based untargeted metabolomics approach. The metabolic results revealed a total of 979 ion features in the positive polarity mode and 371 ion features in the negative polarity mode in the tissues of two groups; among them, 536 differential metabolites (385 in the positive and 151 in the negative polarity mode) were analyzed by PCA and PLS-DA. Subsequently, the enrichment pathways purine metabolism, alpha-linolenic acid metabolism, vitamin B6 metabolism, and fatty acid biosynthesis were analyzed using Metaboanalyst 4.0, which suggested that these pathways were valuable diagnostic and therapeutic targets. Moreover, the receiver operating characteristic curves further confirmed 13Z,16Z-docosadienoic acid, 23-nordeoxycholic acid, and (±)12(13)-DiHOME as expected candidate biomarkers of canine mammary tumors. In conclusion, the discovery of tumor biomarkers based on untargeted metabolomics is informative for pathological mechanism studies and facilitates the early diagnosis of canine mammary tumors.