We investigated the transfer of photogenerated charge carriers from GaN nanowires into a surrounding electrolyte by electron paramagnetic resonance (EPR) and fluorescence spectroscopy. Using 5,5-dimethyl-1-pyrroline-N-oxide (DMPO) as a spin trap we find that the formation of hydroxyl radicals dominates in acidic, neutral and moderately basic environments, while in an electrolyte with a pH of 13.5 the superoxide formation becomes detectable. We explain the two processes considering the redox potentials for radical formation in the electrolyte as well as the positions of the conduction and valence bands. The role of surface band bending and surface states in the semiconductor is discussed.