What is process of turning sugar into acid?

Sugar can be fermented to yield alcohol and that can be oxidized to produce acid. So you may be looking the word fermentation. Perhaps not.