What are the difference between inverter & UPS?

Inverter (except for online inverter) takes about 4-6ms to transfer DC power to AC power when utility power is failing or abnormal, but UPS (online UPS) takes zero, therefore, usually power inverter is used at home and UPS is used at office/commercial place.