Purpose Fungal keratitis (FK) is a difficult condition to treat, particularly in underdeveloped nations. The study aimed to compare the in vitro activity of chlorhexidine (CHX) and seven antifungal agents against a collection of fungi recovered from FK patients. Methods Seventy-three fungi were collected from patients with FK included in study. The antifungal agents tested were fluconazole, voriconazole, posaconazole, miconazole, natamycin, amphotericin B, and caspofungin. The concentration range for CHX was 1–1024 μg/mL. Assessments of antifungal susceptibility were conducted using the EUCAST broth microdilution reference method. Results The findings demonstrated the beneficial in vitro inhibition of filamentous and yeast fungi by CHX. CHX demonstrated efficacy against Fusarium spp., Aspergillus spp., Candida spp., S. apiospermum and dematiceous fungi at concentrations of 4–64, 32–64, 4–32, 8, and 4–16 µg/mL respectively. The median MICs and MIC distributions of CHX showed no significant differences among the evaluated spp. (p > 0.05). The most effective antifungal drug was posaconazole, which was followed by voriconazole, caspofungin, and amphotericin B. Conclusion In situations where access to a range of antifungal medications and microbiological facilities is limited, CHX should be further investigated as a potential treatment for FK. It might be able to treat the condition as an inexpensive topical treatment.