The invention relates to an electric riveting tool used in the technical field of machines. The tool is composed of an outer cover, a trigger, a rivet pulling system, a lead screw transmission system, a planetary gear speed-reducing system and a power motor assembly. A spring sleeve is connected with the front end of a ball lead screw, the planetary gear speed-reducing system is fixed to a lead screw nut through a connection shaft, the power motor assembly is connected with the planetary gear speed-reducing system, a nail collecting cylinder is arranged at the rear end of the power motor assembly, a discharging pipe penetrates through a motor shaft and the planetary gear speed-reducing system and then is arranged outside a core ejector pipe in a sleeving mode, the outer cover is provided with a circuit board, the trigger and a stroke control plate, the circuit board is connected with a motor and the stroke control plate through control lines, the stroke control plate is provided with an inductor, a rolling wheel positioning block is provided with a magnet, and the inductor is located on the lower portion of the magnet. The tool is strong in power, can be used for work indoors and outdoors, is used in a handheld mode, accords with the principle of ergonomics, makes full use of tool space, can be used for pulling rivets of different specifications and is high in applicability, and waste nail rod discharging is easy.