A pet dung collector includes a shovel, which consists of a handle, a shovel plate positioned at a front end thereof and a drop-in opening provided at the shovel plate whereas both sides thereof are provided with a respective hook, and a receipt component, which is pivotally connected at a bottom of the shovel plate and clipped beneath the drop-in opening as well as consists of a receiver for covering the drop-in opening when not in operation and receiving the dung therefrom. Thereby the hooks at both sides of the shovel plate are utilized to enable the shovel to extend over an edge of two surfaces with respect to each other of a collecting bag that by flipping the receipt component downward the dung can be automatically dislodged therefrom into the collecting bag.