An air compressor is a machine that takes ambient air from the surroundings and discharges it at a higher pressure. It is an application of a gas compressor, and a pneumatic device that converts mechanical power (from an electric motor, diesel or gasoline engine, etc.)