The outcome of this work not only improves the separation efficiency of small organic and inorganic salts by nanofiltration, but also provides a new perspective in regulating pore size distribution and surface charge of nanofiltration membranes for precisely separating small molecules.