Background and Aims Hypospadias is a common congenital malformation in pediatric patients. Surgical repair of this malformation is a painful procedure and has long-term effects. Pudendal and penile nerve blocks are commonly preferred techniques for maintaining postoperative analgesia. However, the conventional landmark-based penile block technique involves numerous potential complications and provides a shorter analgesic period compared to the pudendal block. A promising ultrasound-guided dorsal penile nerve block was recently described. We aimed to compare the analgesic effectiveness of ultrasound-guided penile nerve block with that of neurostimulator-guided pudendal nerve block. Method Thirty-three patients aged 1-7 years were included in this prospective, double-blinded, randomized controlled trial. Patients were divided into two groups and received either ultrasound-guided dorsal penile nerve block or neurostimulator-guided pudendal nerve block. All blocks were performed by the same two anesthesiologists, and the same surgeons performed the surgical procedures. The Face, Legs, Activity, Cry, and Consolability (FLACC) scale was used for postoperative pain management. The primary outcome of the study was time to first analgesic requirement. Secondary outcomes were FLACC scores at different time points, and types and cumulative doses of analgesic drugs. Results Dorsal penile nerve block provided longer analgesia than pudendal nerve block (32.29 +/- 5.47 hours and 21.13 +/- 3.53 hours, respectively; differences in mean: 11.16, 95% CI: 7.873-14.465) (P < .001). FLACC scores at the time of first analgesic requirement were significantly lower in dorsal penile nerve block group than pudendal nerve block group (median [IQR]: 2 [2-2.5] and 3 [3-5], respectively; differences in median: -1, 95% CI: -1.851 to -0.149) (P < .001). Conclusion Ultrasound-guided dorsal penile nerve block provided a longer analgesic period and reduced opioid consumption compared to neurostimulator-guided pudendal nerve block.