The invention discloses an optical fiber connector capable of accurate positioning, which comprises a connector socket and a connector plug, wherein the connector socket comprises a connector socket base, a locking wheel pressure ring, a locking wheel and an operating handle, and the connector socket base is fixed to an optical bottom plate of a confocal imaging system in a rigid manner; the locking wheel pressure ring, the locking wheel and the operating handle form a locking and limiting mechanism of the connector socket; the head part of the connector plug is provided with an axial positioning head, a rotary positioning head is arranged behind the axial positioning head, an optical fiber bundle passes through a hollow hole, and the optical fiber bundle and the connector plug are fixed to each other after being leveled; and the hollow hole faces just to a circular light passing hole when connector plug is inserted to the bottom part of a positioning groove of the connector socket base, and focused laser is injected into the optical fiber bundle through the circular light passing hole. The optical fiber connector adds a rotary positioning function, limits the optical fiber to rotate around the axis, achieves positioning in the rotational direction, applies a pressure on the connector through a spring, ensures stable and reliable locking of the connector, and can control the pressure.