To simultaneously improve the water permeability, selectivity, and antifouling properties of polyamide nanofiltration (NF) membranes in textile wastewater treatment, we fabricated a salt-responsive thin-film nanocomposite (TFN) membrane with the incorporation of zwitterionic polymeric nanoparticles (ZNPs) into polyamide selective layer. Herein, the ZNPs were synthesized via an inverse miniemulsion polymerization with zwitterionic monomer, amino monomer, and cross-linker reagent. The salt-responsive property of ZNPs rendered their resultant membranes TFN-ZNPs with adjustable microstructure and separation performance via varying the sodium chloride (NaCl) concentration in water. The water permeance of TFN-ZNPs was enhanced to be 1.7 times that of its pure water permeance with the 10 g L−1 NaCl solution, and the salt-responsive behavior was reversible. Moreover, this salt-responsive property endowed the membrane with outstanding separation performance for the salt/dye or dye/dye mixtures. The selectivity of TFN-ZNPs to NaCl/congo red and methyl orange/neutral blue was enhanced to ∼104 and ∼127, respectively. The TFN-ZNPs with salt-responsive property also exhibited an improved antifouling performance, i.e., the flux recovery ratio was enhanced from 85.6 % to 96.5 % by washing with NaCl solution instead of deionized water. Thus, this work provided a paradigm shift in the fabrication of salt-responsive TFN membranes for the highly efficient separation of organic molecules and inorganic salts and wastewater treatment.