Dear Student!
Oxidizing agents are those compound which carry out oxidation of other substance either by providing oxygen or electronegative element or one or more electrons or by removing hydrogen or any other electropositive element from that substance.
Thus, oxidizing agents , themselves get reduced. So, oxidizing agent oxidizes other substance and itself get reduced. For ex: Cl2, KMnO4, HNO3 etc.
For ex: H2S + Cl2 --> 2HCl + S
Here, H2S gets oxidized to S while Cl2 gets reduced to HCl . Hence, Cl2 is the oxidizing agent which gets reduced to HCl.
Similarly, in presence of sulphuric acid, the KMnO4, the ethanol (alcohol) is oxidized to form acetic acid as:
3C2H5OH + 2KMnO4 +2H2SO4 ---> 3CH3COOH + Mn2SO4 +K2SO4 + 5H2O