Designing efficient biological inspired devices and circuits remains a challenge. Here, the authors develop ionic diodes based on gel polymer electrolytes enabling ion rectification through different diffusion and migration of mobile ions for logic gates, nanogenerator and synaptic devices.