Single-molecule analysis reveals TDG exhibits multiple modes of linear diffusion to process 5-formylcytosine.