Atomically dispersed metal catalysts display high atom efficiency for electrocatalytic processes. Here, the authors report that sulfur-doped zeolite-templated carbon stabilizes highly dispersed platinum species, predominantly as single-atom centres, and probe its oxygen reduction selectivity.