An air compressor is a mechanical device that converts power into potential energy stored in compressed air. It provides a continuous supply of pressurized air, used in various applications such as powering pneumatic tools, inflating tires, and operating machinery.