In H2O2, oxidation number of oxygen is -1 and it can vary from O to -2 (+ 2 is possible in OF2). The oxidation number can decrease or increase, because of this H2O2 can act both oxidising and reducing agent. Ozone (O3) only acts as oxidising agent since it decomposes to give nascent oxygen.