A hedge trimmer includes a first housing with a first handle, a second housing with a second handle, a transmission mechanism combined to the first housing, a trimming blade for being driven by the transmission mechanism to carry out a shearing motion, an electric motor combined to the first housing and for driving the transmission mechanism, and a battery pack combined to the second housing and for supplying power to the electric motor. The first and second housings respectively include first and second rotation connection parts for making them be connected and rotatable around a rotation axis. The second housing has first and second rotation positions when being rotated with respect to the first housing. A plane perpendicular to the rotation axis is obliquely intersected with a plane perpendicular to a longitudinal axis of the trimming blade.