A pet retractor includes a housing having a spindle and having a guide channel and two seats, a rotary member engaged in the housing for engaging with a pet leash, and the rotary member has a number of ratchet teeth, a spring biasing member is engaged between the rotary member and the housing for recovering the rotary member relative to the housing, and a lock device includes a base slidably engaged in the guide channel of the housing and engageable into the housing for engaging with the ratchet teeth of the rotary member, a knob is pivotally attached to the base and includes a latch member for engaging with either of the seats of the housing.