Sanhan Huashi formula(SHF) is the intermediate of a newly approved traditional Chinese medicine(TCM) Sanhan Huashi Granules for the treatment of COVID-19 infection. The chemical composition of SHF is complex since it contains 20 single herbal medicines. In this study, UHPLC-Orbitrap Exploris 240 was used to identify the chemical components in SHF and in rat plasma, lung and feces after oral administration of SHF, and heat map was plotted for characterizing the distribution of the chemical components. Chromatographic separation was conducted on a Waters ACQUITY UPLC BEH C_(18)(2.1 mm×100 mm, 1.7 μm) using 0.1% formic acid(A)-acetonitrile(B) as mobile phases in a gradient elution. Electrospray ionization(ESI) source was used to acquire data in positive and negative mode. By reference to quasi-molecular ions and MS/MS fragment ions and in combination with MS spectra of reference substances and compound information in literature reports, 80 components were identified in SHF, including 14 flavonoids, 13 coumarins, 5 lignans, 12 amino-compounds, 6 terpenes and 30 other compounds; 40 chemical components were identified in rat plasma, 27 in lung and 56 in feces. Component identification and characterization of SHF in vitro and in vivo lay foundations for disclosure of its pharmacodynamic substances and elucidation of the scientific connotation.