The purpose of the present invention is to make the front and rear electrodes less susceptible to short circuits even when solder or conductive adhesive overflows in the width direction of the electrode. An optical fiber scanner (8) according to the present invention comprises an optical fiber (10) that guides illumination light and emits the same from the tip thereof, and one or more oscillation parts (11) that are secured to the outer surface of the optical fiber and oscillate the tip of the optical fiber in a direction perpendicular to the longitudinal axis of the optical fiber. An oscillation part includes one or more plate-shaped piezoelectric elements (15) subjected to expansion and contraction in the longitudinal direction of the optical fiber due to an alternating voltage applied in the plate thickness direction, and electrodes (16a, 16b) respectively provided on the front and rear surfaces opposite each other in the plate thickness direction of the piezoelectric element. The electrode on the front surface of the piezoelectric element includes a connection surface to which a lead (18) supplying the alternating voltage is electrically connected, and a creeping distance from the tip of the electrode at a position on the connection surface to the rear surface of the oscillation part has a larger dimension than the thickness dimension of the piezoelectric element between the electrodes.La présente invention a comme objet de rendre les électrodes avant et arrière moins sensibles aux courts-circuits même lorsqu'une soudure ou un adhésif conducteur déborde dans le sens de la largeur de l'électrode. Un dispositif de balayage à fibre optique (8) selon l'invention comprend une fibre optique (10) qui guide la lumière d'éclairage et émet celle-ci à partir de sa pointe, et une ou plusieurs parties d'oscillation (11) qui sont fixées à la surface extérieure de la fibre optique et font osciller la pointe de la fibre optique dans une direction perpendiculaire à l'axe longitu