Quantitative description of electrolyte impact is established for nanoscale water electrolysis prevalent during photocatalytic overall water splitting.