Background:In pediatric cardiac surgery, the use of multimodal analgesia, including a regional analgesic technique reduces opioid consumption and adverse effects. Objective: This study aimed to compare the effect of the ultrasound-guided bilateral thoracic erector spinae plane block (ESPB) and paravertebral block (PVB) on postoperative pain score and opioid consumption. Methods: This is a single center randomized, controlled, double-blinded, non-inferiority study. A total of 50 eligible pediatric patients, aged 2-10 years, scheduled for elective open cardiac surgery via median sternotomy were recruited. Bilateral ultrasound-guided thoracic ESPB at T4 was performed in patients included in the ESPB group and bilateral PVB was done in patients included in the PVB group by injecting 0.25% bupivacaine 0.4mL/kg on each side. The primary end point was fentanyl consumption during the first 24 h following extubation, while the secondary endpoints were postoperative modified objective pain score (MOPS), time needed to perform the block, intraoperative fentanyl consumption, time to the first analgesic request and the incidence of mechanical complications. Results: Both ESPB and PVB similarly reduced fentanyl consumption during the first 24 h following extubation and MOPS at all time points of measurement. Intraoperative fentanyl consumption and time to first analgesic request were similar in both ESPB and PVB group. The time needed to perform the block was significantly shorter in the ESPB group than the PVB group. Mechanical complications of needle advancement did not occur in any patients. Conclusion: In pediatric patients scheduled for open cardiac surgery via median sternotomy, ultrasound-guided bilateral thoracic ESPB is non-inferior to PVB in providing postoperative analgesia in terms of opioid consumption and pain score. Moreover, ESPB is easier and its performance requires a shorter period than PVB.