BackgroundKnowledge and attitude toward electroconvulsive therapy (ECT) play crucial roles in determining the acceptance of ECT as a viable and effective treatment option.ResultsThis study involved 400 participants (57.3% female), aged 18–25 years (36.8%) and predominantly single (49.8%), with a bachelor’s degree or higher (78.8%). Only 1.8% had undergone ECT before. While 32.0% relied on social media for ECT information, only 9.5% had a family history of psychiatric illness, and 5.8% had previous psychiatric visits. Knowledge about ECT was moderate (4.51 ± 1.76). Attitudes were less favorable (2.45 ± 2.47), with concerns about ECT as punishment or inhumane treatment. Public stigma towards mental illness was moderate (mean score: 17.77 ± 6.89), with some disagreement on stereotypes. Significant differences were observed in the knowledge scale based on residing governorates and sources of information (p = 0.003 and < 0.001, respectively). Additionally, significant differences in the attitude scale were reported for sources of information (p = 0.002), and significant differences in public stigma were found among age groups (p = 0.023). Spearman’s correlation revealed moderate positive associations between knowledge and attitudes (0.314, p < 0.001) and weak positive associations between knowledge and public stigma (0.185, p < 0.001).ConclusionPatients with stigma and poor knowledge of ECT may affect their choice in undergoing or advising family members to take on ECT if medically prescribed.