An air compressor including: a motor; a compression mechanism that is configured to be driven by the motor; a tank unit that includes an air tank configured to store therein compressed air generated by the compression mechanism and to which the motor is fixed; an elastic member via which the compression mechanism is coupled to the tank unit; and a rotation transfer member that is configured to transfer a rotational force of the motor to the compression mechanism even when a shaft center of a rotary shaft of the motor and a shaft center of a rotary shaft of the compression mechanism deviate from each other.