An air compressor is a machine that compresses air from the atmosphere and stores it in a tank for later use. It's a pneumatic device that uses mechanical power to convert air's kinetic energy into potential energy.
How it works
An air compressor takes in air at a lower pressure
It uses mechanical power from an electric motor, diesel engine, or gasoline engine to compress the air
The compressed air is stored in a tank
When the air is released from the tank, the potential energy is converted back into kinetic energy