The antibacterial effects of chitosan have been widely studied, but the underlying molecular mechanisms are not fully understood. We investigated the molecular responses of Escherichia coli MG1655 cell, a model gram-negative bacterium, upon exposure to chitosan (Cs), alkylated Cs (AlkCs), and chitosan nanoparticles (CsNPs). Nine target genes involved in relevant signaling pathways (ompF, ompC, ompA, mrcA, mrcB, mgtA, glnA, kdpA, lptA) were selected for analysis. A significant reduction in the expression of mrcA, mgtA, glnA, and lptA genes was observed in the cells treated with Cs. Those treated with Cs, AlkCs, and CsNPs revealed an increase in ompF gene expression, but the expression level was lower in the cells treated with AlkCs and CsNPs compared to Cs. This increase in porin expression suggests compromised membrane integrity and disrupted nutrient transport. In addition, the changes in the expression of mgtA, kdpA, and glnA are related to different effects on membrane permeability. The higher expression in the genes mrcA and mrcB is associated with morphological changes of cells treated with AlkCs and CsNPs. These findings contribute to our understanding of the molecular mechanisms underlying chitosan-induced stress responses and provide insights for the development of safer antimicrobial compounds in the future.