<p>An air compressor (1) has a battery device (4), a DC brushless motor (8) connected to the battery device (4) by an electric circuit and inverter-driven by a control device (23) provided on the electric circuit, a compressor (6) driven by the brushless motor (8) to compress air, a tank (3) for containing compressed air discharged from the compressor (6), and an air take-out opening (26) for taking out the compressed air contained in the tank (3).</p>