The purpose of this study is to explore the diagnostic efficacy and value of ultrasound detection for testicular torsion in children with scrotal and testicular diseases. A total of 120 children with acute scrotal swelling and pain who were treated in our hospital from August 2017 to August 2022 were selected for preliminary diagnosis through color Doppler ultrasound diagnostic instrument examination. The final diagnosis was made through surgical or conservative treatment. At the same time, 40 children with acute epididymitis during the same period were selected as the control group, and the clinical treatment of patients with testicular diseases was retrospectively analyzed. A total of 120 children were diagnosed with testicular torsion disease, with 57 cases affecting the left testicle and 63 cases affecting the right testicle. Ultrasound examinations revealed no blood flow signal in 78 cases, a significant reduction in blood flow in 38 cases, and no change in 4 cases. Among the pediatric patients who underwent manual reduction, 79 cases had a favorable prognosis. Surgical reduction was performed in 41 cases, with 35 cases successfully treated and 6 cases resulting in testicular removal. Follow-up examinations conducted 6 months to 1 year postoperatively showed testicular atrophy in 4 out of 35 cases with preserved testicles, while the 6 cases that underwent testicular resection had good outcomes. The non-active subgroup had a longer disease course and a greater degree of torsion (P < .05). There was no statistically significant difference in testicular volume and the ratio of healthy testicular volume between the 2 groups (P > .05). The sensitivity of ultrasound diagnosis was 95.24% (73/77), specificity was 78.57% (34/43), and accuracy was 89.29% (107/120). Ultrasound can effectively diagnose testicular torsion and evaluate the success rate of testicular reduction. Early treatment of patients with testicular torsion leads to better efficacy and higher survival rates.