An air compressor is a machine that converts power (from an electric motor or gas engine) into potential energy by drawing in atmospheric air and compressing it into a smaller space. This pressurized air is stored in a tank and released on demand to power tools, inflate tires, or run industrial machinery.