Nano-scale changes in structure can help optimise ion exchange membranes for use in devices such as flow batteries.