The invention relates to an automatic loading and unloading device, in particular to an automatic loading and unloading device used on a precision machining tool in a matched manner. The automatic loading and unloading device comprises a bottom plate, a bracket, a feed plate, a small shaft, two deep groove ball bearings, a large space ring, a V-shaped locating block, a movable pressing block, a tension spring, a back plate, an inductive switch, a feed bracket, a feed guide sleeve, a small space ring, a loose joint, a cylinder, a rotating shaft and a flat gasket, wherein the bracket is fixed on the bottom plate through two hexagon bolts; the two deep groove ball bearings are mounted in the feed plate, the small shaft penetrates through an inner hole of the feed plate and the large space ring to fix the feed plate on the side surface of the bracket; the V-shaped locating block is fixed at the front end of the feed plate through one cross recessed screw; the movable press block is fixed on the feed plate by an inner hexagon screw, the rear end of the movable press block is connected with one end of the tension spring through one cross recessed screw, and the other end of the tension spring is fixed on the feed plate through one cross recessed screw; the back plate is fixed on the bracket through inner hexagon flat-end set screws II; and the inductive switch is fixed at the upper part of the bracket.