Existing surgical guidewire endpoint localization methods in X‐ray images face challenges owing to their small size, simple appearance, nonrigid nature of objects, low signal‐to‐noise ratio of X‐ray images, and imbalance between the number of guidewire and background pixels, which lead to errors in surgical navigation. An eight‐neighborhood‐based method for increasing the localization accuracy of guidewire endpoint to improve the safety of interventional procedures is proposed herein. The proposed method includes two stages: 1) An improved U‐Net network is employed for segmenting the data of the guidewire to extract regions of interest containing guidewire endpoints with higher precision and to reduce interference from other anatomical structures and imaging artifacts. 2) The proposed method detects guidewire endpoints using the adjacent relationship between pixels in the eight‐neighborhood regions. This stage covers skeletonization extraction, removal of bifurcation points, and repair of fracture points. This study achieves mean pixel errors of 2.02 and 2.13 pixels in an in vivo rabbit and porcine X‐ray fluoroscopy images, outperforming ten classic heatmap and regression methods, achieving state‐of‐the‐art detection results. The proposed method can also be applied to detect other tiny surgical instruments such as stents and balloons, while preserving the flexibility of the guidewire bending angle.