Cationic chitosan derivatives have been widely studied as potential antimicrobial agents. However, very little is known about their antiviral activity and mode of action against enveloped viruses. We investigated the ability of hydroxypropanoic acid-grafted chitosan (HPA-CS) and N-(2-hydroxypropyl)-3trimethylammonium chitosan chloride (HTCC) to inactivate enveloped viruses like the human immunodeficiency virus (HIV) and severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2). The membrane-disrupting potential of the chitosan derivatives was initially investigated in a hemolysis assay. At 1.0 mg/mL, about 80% hemolysis was observed for the cationic chitosan derivatives, which was significant when compared to almost no membranedisrupting activity by the unmodified chitosan. Virus inhibition was evaluated using the luciferase-based antiviral assay against the HIV-1 NL4.3 virus (400 TCID). The IC 50 of HPA-CS was 4.109 mg/mL, while the HTCC showed a higher antiviral activity at an IC 50 = 0.225 mg/mL. For practical application, the antiviral efficacies of the HTCC-coated and uncoated nonmedical masks were evaluated for SARS-CoV-2 virus capture. The coated masks demonstrated an almost excellent performance with nearly 100% viral inhibition compared to less than 60% inhibition by the uncoated masks. Molecular docking predictions suggest that the HTCC polymers interact with the viral spike protein, blocking the coronavirus interaction with the target host cell's angiotensin-converting enzyme 2 cellular receptors.