A programmable electrochemical rectifier based on thin-layer electrochemistry is described here. Both the rectification ratio and the response time of the device are programmable by controlling the gap distance of the thin-layer electrochemical cell, which is easily controlled using commercially available beads. One of the electrodes was modified using a ferrocene-terminated self-assembled monolayer to offer unidirectional charge transfers via soluble redox species. The thin-layer configuration provided enhanced mass transport, which was determined by the gap thickness. The device with the smallest gap thickness (similar to 4 mu m) showed an unprecedented, high rectification ratio (up to 160) with a fast response time in a two-terminal configuration using conventional electronics.