A ratchet tool includes a shaft member, a handle and a ratchet mechanism, in which the handle is connected to the ratchet mechanism, and the shaft member extends into the interior of the ratchet mechanism along the central axle of the ratchet mechanism from the front end of the ratchet mechanism and is connected to the ratchet mechanism. The shaft member includes a shaft and an extension portion which passes through the rear end of the ratchet mechanism along the central axle of the ratchet mechanism from the front end of the ratchet mechanism and is connected to the ratchet mechanism, and the shaft is designed to be integrated with or separated from the extension portion. Such a design of the shaft member solves the wobble problem of the shaft. The ratchet tool of the present invention also includes a lighting device. The ratchet tool of the present invention requires small turning force when turning back and has strong capacity of torque transferring, and at the same time achieves lighting feature.