The invention provides an electric massage pillow of automatic height regulation, which comprises a remote controller and an electronic massage pillow, wherein the remote controller comprises an emitter and a receiver module, the receiver module is arranged between a basal plate and a middle plate, the emitter comprises a shell, a semicircular pipeline, a magnetic ball, a reed-tube sensor and an emitter module, the semicircular pipeline, the reed-tube sensor and the emitter module are arranged in the shell, the magnetic ball is in the semicircular pipeline, and the reed-tube sensor is arranged outside a left point, a middle point and a right point of the semicircular pipeline. The electric massage pillow comprises a pillow case, a remote-control receiver module, a basal plate, a middle plate, an elevation plate, an elevator and a horizontal driver, the pillow case wraps the outer parts of the basal plate and the middle plate, the elevator is arranged between the elevation plate and the middle plate, and the horizontal driver is arranged between the basal plate and the middle plate. The massage pillow can automatically regulate the height, automatically descends when the user lies on the back, and ascends when the user lies on the side, has a massage function, promotes sleep and greatly reduces the incidence of human cervical spondylosis.