The invention relates to the technical field of portable air compressors, in particular to a portable air compressor with a wire winding function, which comprises a shell, an air compressor mechanism, a wire winding device and a power wire. A boss is arranged at a bottom of the shell, clamping holes are arranged on the boss, the air compressor mechanism is arranged inside the outer shell, and the wire winding device is arranged at the bottom of the boss. The wire winding device is pulled out from the boss or pushed into the boss by correspondingly matching with the clamping holes. The power wire is wound on the wire winding device. By the aid of the wire winding device additionally arranged on the portable air compressor, the power wire can be wound neatly and can be used and carried conveniently, the service life of the portable air compressor is prolonged, and the integral appearance and structure of the portable air compressor are attractive. Meanwhile, the power wire can be protected well without being squeezed or scratched, the potential safety hazard of an electricity leakage in use can be eliminated, portability is practically realized, and the service life of the portable air compressor is prolonged.