Nanostructured polymeric membranes are key tools in biomedical applications such as hemodialysis, protein separations, in the food industry, and drinking water supply from seawater. Despite of the success in different separation processes, membrane manufacture itself is at risk, since the most used solvents are about to be banned in many countries due to environmental and health issues. We propose for the first time the preparation of polyethersulfone membranes based on dissolution in the ionic liquid 1-ethyl-3-methylimidazolium dimethylphosphate ([EMIM]DEP). We obtained a series of membranes tailored for separation of solutes with molecular weight of 30, 5, 1.3, and 1.25 kg mol-1 with respective water permeances of 140, 65, 30 and 20 Lm-2h-1bar-1. We demonstrate their superior efficiency in the separation of complex mixtures of peptides with molecular weights in the range of 800 to 3500 gmol-1. Furthermore, the thermodynamics and kinetics of phase separation leading to the pore formation in the membranes were investigated. The rheology of the solutions and the morphology of the prepared membranes were examed and compared to those of polyethersulfone in organic solvents currently used for membrane manufacture.