A wrench includes a handle, a joint movably mounted on the handle and a working unit pivotally connected to the joint. The handle pivots relative to the working unit between a first position, where the handle and the working unit extend perpendicular to each other, and a second position, where the handle and the working unit extend along a same axis.