An optical fiber scanner includes: an elongated optical fiber driving piezoelectric elements that are provided on an outer circumferential surface of the optical fiber and produce bending oscillation at a distal-end portion of the optical fiber as a result of an alternating voltage being applied thereto detecting piezoelectric elements provided on the outer circumferential surface at the distal-end portion of the optical fiber and a control unit that controls an alternating voltage to be applied to the driving piezoelectric elements on the basis of the voltages produced by the detecting piezoelectric elements.