The invention discloses a spindle vertical-horizontal turnover device, and belongs to the technical field of numerical control woodworking machines. The device comprises a spindle seat A, a left spindle swing bearing pedestal, a reducer fixing plate, a reducer, a driving motor, a turnover supporting component, locking air cylinders, a locating pin, a turnover transmission shaft, an electric spindle, a sliding plate, a spindle seat B, a right spindle swing bearing pedestal, a collision block, a sensor and a lead. The electric spindle drives a reduction motor through the driving motor, power is transmitted to the left spindle swing bearing pedestal and the right spindle swing bearing pedestal through the turnover transmission shaft, and the electric spindle is driven to rotate and change within the range of 0 to 90 degrees in the vertical plane. When the collision block collides with the sensor, turnover locating of the electric spindle can be achieved, and therefore precise locating of vertical and horizontal switching and turnover can be achieved. Vertical and horizontal turnover of the spindle is flexible, high reliability is achieved, cost is low, locating precision is high, machining precision is high, response speed is high, and production efficiency is improved. The device guarantees the machining precision of a workpiece and contributes to the construction of the wood-working machine industry of our country.