Upending and lifting tool for upending and lifting an object, e.g. a foundation member of an offshore wind turbine, e.g. a monopile, the tool being configured to be suspended from one or more hoisting cables, e.g. a pair of hoisting cables suspended from a crane hook of a crane, the tool comprising a frame provided with a functional part that is operable for coupling an object to the tool, and the frame being provided with a cable attachment member by means of which the frame of the tool is pivotally connectable to the one or more hoisting cables in order to be pivotable about a substantially horizontal pivot axis relative to the one or more hoisting cables between: - a vertical orientation, in which the center of gravity of the frame and the pivot axis are aligned on a vertical line, and - a horizontal orientation, wherein the tool is engageable with the object in a horizontal orientation of the object prior to upending thereof to a vertical orientation thereof by means of the tool, wherein in the horizontal orientation of the frame the center of gravity is offset over a horizontal distance from the pivot axis, characterized in that the tool further comprises a cable shifting mechanism, said mechanism comprising: - a cable shifting member which is mounted to the frame and is moveable relative to the frame, which cable shifting member has a cable engagement surface, - one or more shifting actuators operative between the cable shifting member and the frame, wherein the cable shifting mechanism is configured to, with the tool suspended from one or more hoisting cables and with the frame initially in the vertical orientation, perform a routine which comprises: - operating the one or more shifting actuators, thereby moving the cable shifting member and engaging the cable engagement surface with the one or more hoisting cables at a height above the pivot axis, further continuing said motion of the cable shifting member and thereby applying a cable shifting force on the one or more hoisting cables resulting, in reaction, in a pivoting of the frame into the horizontal orientation thereof. - a vertical orientation, in which the center of gravity of the frame and the pivot axis are aligned on a vertical line, and - a horizontal orientation, wherein the tool is engageable with the object in a horizontal orientation of the object prior to upending thereof to a vertical orientation thereof by means of the tool, wherein in the horizontal orientation of the frame the center of gravity is offset over a horizontal distance from the pivot axis, characterized in that the tool further comprises a cable shifting mechanism, said mechanism comprising: - a cable shifting member which is mounted to the frame and is moveable relative to the frame, which cable shifting member has a cable engagement surface, - one or more shifting actuators operative between the cable shifting member and the frame, - a cable shifting member which is mounted to the frame and is moveable relative to the frame, which cable shifting member has a cable engagement surface, - one or more shifting actuators operative between the cable shifting member and the frame, wherein the cable shifting mechanism is configured to, with the tool suspended from one or more hoisting cables and with the frame initially in the vertical orientation, perform a routine which comprises: - operating the one or more shifting actuators, thereby moving the cable shifting member and engaging the cable engagement surface with the one or more hoisting cables at a height above the pivot axis, further continuing said motion of the cable shifting member and thereby applying a cable shifting force on the one or more hoisting cables resulting, in reaction, in a pivoting of the frame into the horizontal orientation thereof. - operating the one or more shifting actuators, thereby moving the cable shifting member and engaging the cable engagement surface with the one or more hoisting cables at a height above the pivot axis, further continuing said motion of the cable shifting member and thereby applying a cable shifting force on the one or more hoisting cables resulting, in reaction, in a pivoting of the frame into the horizontal orientation thereof.