Twelve new glucosidic and galactosidic derivatives of N-alkylaminosugars with different alkylamines from 6 to 18 carbons were synthesized and characterized by (1)H and (13)C NMR. Their antifungal activity against the food fungal pathogen Aspergillus niger was evaluated using the radial growth assay. The influence of the variation of the alkyl chain length of N-alkylaminosugars on the mycelium growth was then discussed. Inhibition by the different alkylamines is shown as a biostatic effect rather than a biocidal effect. It was observed that alkylamines keep their antifungal properties after a thermal treatment compatible with food packaging and processing.