`H_(2)O_(2)` or hydrogen peroxide acts as a strong oxidizing agent both in acidic and basic media.
When added to a cloth, it breaks the chemical bonds of the chromophores (colour producing agents). Hence, the visible light is not absorbed and the cloth gets whitened.