Abstract Background Non-alcoholic fatty liver disease (NAFLD) is becoming increasingly prevalent worldwide, emerging as a significant health issue on a global scale. Berberine exhibits potential for treating NAFLD, but clinical evidence remains inconclusive. This meta-analysis was conducted to assess the efficacy and safety of berberine for treating NAFLD. Methods This study was registered with PROSPERO (No. CRD42023462338). Identification of randomized controlled trials (RCTs) involved searching 6 databases covering the period from their initiation to 9 September 2023. The primary outcomes comprised liver function markers such as glutamyl transpeptidase (GGT), alanine transaminase (ALT), aspartate transaminase (AST), lipid indices including total cholesterol (TC), triglyceride (TG), low-density lipoprotein cholesterol (LDL-C) and high-density lipoprotein cholesterol (HDL-C), homeostasis model assessment for insulin resistance (HOMA-IR) and body mass index (BMI). Review Manager 5.4 and STATA 17.0 were applied for analysis. Results Among 10 RCTs involving 811 patients, berberine demonstrated significant reductions in various parameters: ALT (standardized mean difference (SMD) = − 0.72), 95% confidence interval (Cl) [− 1.01, − 0.44], P