COVID-19 has caused severe consequences in terms of public health and economy worldwide since its outbreak in December 2019. SARS-CoV-2 3C-like protease (3CLpro), crucial for the viral replications, is an attractive target for the development of antiviral drugs. In this study, several kinds of Michael acceptor warheads were utilized to hunt for potent covalent inhibitors against 3CLpro. Meanwhile, novel 3CLpro inhibitors with the P3-3,5-dichloro-4-(2-(dimethylamino)ethoxy)phenyl moiety were designed and synthesized which may form salt bridge with residue Glu166. Among them, two compounds 12b and 12c exhibited high inhibitory activities against SARS-CoV-2 3CLpro. Further investigations suggested that 12b with an acrylate warhead displayed potent activity against HCoV-OC43(EC50 = 97 nM) and SARS-CoV-2 replicon (EC50 = 45 nM) and low cytotoxicity (CC50 > 10 μM) in Huh7 cells. Taken together, this study devised two series of 3CLpro inhibitors and provided the potent SARS-CoV-2 3CLpro inhibitor (12b) which may be used for treating coronavirus infections.