how compressor works
An air compressor brings in a volume of ambient air to a chamber, applies mechanical force to reduce the physical size of that chamber, and then releases the compressed gas into a system of plumbing, where it can be stored or used to produce other useful work.
A gas compressor is a mechanical device that increases the pressure of a gas by reducing its volume. An air compressor is a specific type of gas compressor. Compressors are similar to pumps: both increase the pressure on a fluid and both can transport the fluid through a pipe. As gases are compressible, the compressor also reduces the volume of a gas.