@KamranAslam
Inverter means to convert DC to AC. You can use anywhere. In UPS AC is converted to DC and is stored in batteries, when the electricity goes inverter converts that stored DC voltage in batteries to AC voltage to power electrical appliances at home.