Safflower (Carthamus tinctorius L.) is a famous food additive and herbal medicine in China. In the present research, an online comprehensive two-dimensional hydrophilic interaction chromatography coupled to a diode array detector and a hybrid linear ion trap-Orbitrap mass spectrometry (HILIC x HILIC-DAD-ESI/HRMS/MSn) platform was developed to analyze the flavonoids and alkaloids in safflower. By combining with an XBridge Amide column (150 mm x 4.6 mm, 3.5 mu m) and an Ultimate amide column (50 mm x 4.6 mm, 5 mu m), the system orthogonality reached 88% and a total of 231 peaks were detected. Altogether 93 compounds, including 75 flavonoids and their glycosides and 10 alkaloids were unambiguously or tentatively identified in both negative and positive ion modes, using accurate mass and MS fragment data. Among them, 5 compounds were discovered and reported from safflower for the first time. The established HILIC x HILIC platform should be a powerful tool for the separation and characterization of complicated matrices in natural herbs.