A can opener includes a housing, a driving gear, a reduction transmission device, a cutting wheel, a slide, an idling wheel, a first driven gear, a second driven gear, a torsion spring, a third driven gear, and a cam. The driving gear rotates the cutting wheel and the first driven gear. The first driven gear drives the second driven gear which rotates the third driven gear which rotates the cam which moves the slide which moves the idling wheel, so that the idling wheel is moved toward the cutting wheel to clamp the rim of the lid between the idling wheel and the cutting wheel. The idling wheel and the cutting wheel are moved along the rim of the lid to cut the rim of the lid and to separate the lid from the can to open the can automatically.