Since December 2019, the deadly novel severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) has caused the current COVID-19 pandemic. To date, vaccines are available in the developed countries to prevent the infection of this virus, however, medicines are necessary to help control COVID-19. Human coronavirus 229E (HCoV-229E) causes the common cold. The main protease (Mpro) is an essential enzyme required for the multiplication of these two viruses in the host cells, and thus is an appropriate candidate to screen potential medicinal compounds. Flavonols and dihydroflavonols are two groups of plant flavonoids. In this study, we report docking simulation with two Mpro enzymes and five flavonols and three dihydroflavonols, in vitro inhibition of the SARS-CoV-2 Mpro, and in vitro inhibition of the HCoV 229E replication. The docking simulation results predicted that (+)-dihydrokaempferol, (+)-dihydroquercetin, (+)-dihydromyricetin, kaempferol, quercetin, myricentin, isoquercetin, and rutin could bind to at least two subsites (S1, S1', S2, and S4) in the binding pocket and inhibit the activity of SARS-CoV-2 Mpro. Their affinity scores ranged from -8.8 to -7.4. Likewise, these compounds were predicted to bind and inhibit the HCoV-229E Mpro activity with affinity scores ranging from -7.1 to -7.8. In vitro inhibition assays showed that seven available compounds effectively inhibited the SARS-CoV-2 Mpro activity and their IC50 values ranged from 0.125 to 12.9 uM. Five compounds inhibited the replication of HCoV-229E in Huh-7 cells. These findings indicate that these antioxidative flavonols and dihydroflavonols are promising candidates for curbing the two viruses.