Several viruses hijack various forms of endocytosis in order to infect host cells. Here, we report the discovery of a molecule with antiviral properties that we named virapinib, which limits viral entry by macropinocytosis. The identification of virapinib derives from a chemical screen using high-throughput microscopy, where we identified chemical entities capable of preventing infection with a pseudotype virus expressing the spike (S) protein from SARS-CoV-2. Subsequent experiments confirmed the capacity of virapinib to inhibit infection by SARS-CoV-2, as well as by additional viruses, such as mpox virus and TBEV. Mechanistic analyses revealed that the compound inhibited macropinocytosis, limiting this entry route for the viruses. Importantly, virapinib has no significant toxicity to host cells. In summary, we present the discovery of a molecule that inhibits macropinocytosis, thereby limiting the infectivity of viruses that use this entry route such as SARS-CoV2.