Ultrasound-guided needle interventions play a pivotal role in the diagnosis and treatment processes in clinical practice. However, existing echogenic needles face challenges in achieving a balance between effectiveness, ease of manufacturing, and inexpensiveness. In this study, we developed an echogenic needle that encompassed the aforementioned advantages through the use of the electrolysis technology. The overall contour of the needle after electrolysis was observed using bright-field microscopy, while scanning electron microscopy (SEM) was employed to examine the micro-variations on the needle's surface. Subsequently, we validated the enhanced visualization effects in vitro (pork) and in vivo (anesthetized rabbit's thigh) puncture phantoms. To ensure the safety of the needles after the puncture procedure, we conducted Vickers hardness tests, SEM detection, bright-field microscopy, and DAPI staining. The results demonstrated that the surface roughness of the needle increased with the duration of electrolysis. Taking into account the comprehensive safety tests, the needle, subjected to 40 s of electrolysis, demonstrated a safe and effective enhancement of ultrasound visualization.