In the laboratory, oxygen is prepared by catalytic decomposition of hydrogen peroxide in which manganese oxide is used as a catalyst to produce Hydrogen gas and oxygen gas.
Thermal decomposition of potassium chlorate:
When potassium chlorate is heated in the presence of manganese oxide then it releases oxygen along with a by-product potassium chloride.
Electrolysis decomposition of water:
When acidified water is subjected to electrolysis, chemical decomposition takes place which further evolves oxygen and hydrogen gases.