A hand tool with a swinging structure, including a head section, a handle connected with the head section via at least one swinging joint and a shift button and a resilient unit disposed at the swinging joint. The swinging joint is composed of a first pivot end and a second pivot end pivotally connected with each other. The second pivot end includes a first and a second lugs and a base section connected therebetween. A stopper section is disposed on the base section. A stopper block is formed on an inner face of the shift button. The shift button is transversely and back and forth movably positioned between the two pivot ends. The resilient unit serves to resiliently push the shift button toward the first pivot end, whereby a front end of the shift button keeps engaged with the first pivot end. When the shift button is transversely shifted to a disengaged position, the stopper section will not interfere with the stopper block, permitting the swinging joint to swing. When the shift button is shifted to an engaged position, the stopper block is stopped by the stopper section to prevent the shift button from moving rearward so as to fix the swinging joint at a certain angle.
A hand tool locking device for a hand tool includes a switch member having a shank which is rotatably inserted in a recess defined in the head of the hand tool and the shank includes a convex and curved surface and a flat surface. A pawl and a spring are received in a passage defined in an inside of the yoke of the head of the hand tool. The pawl has teeth defined in a first end thereof and the teeth are pushed to engage with engaging teeth of the pivotable tool head when the convex and curved surface of the shank pushes a second end of the pawl toward the tool head. When the shank is rotated to let the flat surface to contact the second end of the pawl, the teeth of the pawl are disengaged from the engaging teeth of the pivotable tool head.