Congenital heart disease (CHD), a birth defect, is a major cause of neonatal mortality; however, improvements in surgical procedures and medical treatments have resulted in decreased mortality rates. Nonetheless, postoperative morbidity, particularly cerebral dysfunction, remains an issue in patients receiving extracorporeal life support (ECLS) for cardiac surgeries. Herein, we aimed to assess the association between optic nerve sheath diameter (ONSD) and ECLS time in newborns receiving ECLS for cardiac surgery. We enrolled 25 newborn patients who received ECLS for cardiac surgery at our hospital. ONSD was measured at four different time points during the surgery: baseline (T1), 15 min after cross-clamping (T2), after displacement of cross-clamping (T3) and at the end of the surgery (T4). Furthermore, the ECLS time, aortic cross-clamp time, and surgery time were recorded. The regression analysis revealed a significant association between ONSD and ECLS time, cross-clamp time and surgery time. The correlation analysis showed strong associations between baseline ONSD and ONSD at T2, T3, and T4. Moreover, ONSDs significantly increased at T2 compared with those at baseline during cardiac surgery. Our findings suggest an association between ONSD and ECLS time in newborns receiving ECLS for cardiac surgery. Monitoring ONSD may provide valuable information about intracranial pressure changes in these patients.