A hierarchical membrane consisting of precisely controlled nanopores on top of micropores is fabricatedviaphotofluidization for oil-in-water emulsion separation.