Substrates able to rectify transport of ions based on charge and/or size are ubiquitous in biological systems. Electrolytes and interphases that selectively transport electrochemically active ions are likewise of broad interest in all electrical energy storage technologies. In lithium-ion batteries, electrolytes with single- or near-single-ion conductivity reduce losses caused by ion polarization. In emergent lithium or sodium metal batteries, they maintain high conductivity at the anode and stabilize metal deposition by fundamental mechanisms. We report that 20- to 300-nm-thick, single-ion-conducting membranes deposited at the anode enable electrolytes with the highest combination of cation transference number, ionic conductivity, and electrochemical stability reported. By means of direct visualization we find that single-ion membranes also reduce dendritic deposition of Li in liquids. Galvanostatic measurements further show that the electrolytes facilitate long (3 mAh) recharge of full Li/LiNi0.8Co0.15Al0.05O2 (NCA) cells with high cathode loadings (3 mAh cm−2/19.9 mg cm−2) and at high current densities (3 mA cm−2).