According to one embodiment, a conveying device includes a controller that is configured to determine a moving direction of a holder holding a first object based on a state of overlapping between the first object and a second object viewed in a conveying direction of the first object in a case where the second object is positioned in the conveying direction of the first object with respect to the first object.