This study investigates the effects of grafting 1-(4-carboxyphenyl)-N, N, N-trimethylammonium onto different functional groups of chitosan on the antifungal properties of the resulting products. The modified products were characterized using FTIR, 1H NMR, and X-ray diffraction XRD techniques. We investigated the antifungal activity of quaternary ammonium salt derivatives of chitosan against Phytophthora capsici, Gibberella avenacea R. J. Cook, Valsa mali, Fusarium oxysporum f. sp. niveum, and Curvularia Lunata using the mycelial growth rate method. Among these derivatives, 6-OH-grafted 1-(4-carboxyphenyl)-N, N, N-trimethylammonium chitosan (PTMACS) showed the greatest antifungal activity, with EC50 values below 500 μg/mL against all tested fungal strains. PTMACS exhibited the strongest inhibitory effect against Phytophthora capsici (EC50 = 21.56 μg/mL). Microscopic morphological analysis revealed that this modified product disrupts the ultrastructure of the fungal hyphae, thus inhibiting their growth. At a concentration of 400 μg/mL, PTMACS exhibited remarkable curative (82.32% ± 1.89%) and protective (79.41% ± 2.20%) properties, extending the shelf life of fresh peppers by up to 21 days. This study demonstrates the potential of using quaternary ammonium salt chitosan for antifungal preservation.