Background: The prevalence of nonalcoholic fatty liver disease (NAFLD) has increased as the obese pediatric population has increased. NAFLD causes progressive liver injury and the only effective treatment is lifestyle modifications. However, few studies have examined the dietary risk factors for pediatric NAFLD or liver fibrosis. Here, we evaluated the dietary factors associated with suspected NAFLD and potential liver fibrosis in Korean children. Methods: Data collected from 1674 children and adolescents aged 10-18 years during the 2014-2017 Korean National Health and Nutrition Examination Surveys analyzed. The 24-h recall method measured the food consumed 1 day before the survey. The "suspected NAFLD" group included excessive body mass index (BMI) subjects ≥ 85th percentile) with alanine aminotransferase (ALT) levels exceeding the upper normal limit (24.1 U/L for boys and 17.7 U/L for girls); the "healthy control" group included subjects with a BMI and ALT level below these thresholds. Sodium intake was assessed by the urinary sodium-to-urinary specific gravity unit ratio (U-Na-to-SGU ratio). A pediatric NAFLD index (PNFI) higher than 3 indicated potential liver fibrosis. Results: The overall prevalence of suspected NAFLD and potential liver fibrosis was 8.2 and 4.5%, respectively. The suspected NAFLD group had a larger proportion of males and subject with a greater height, BMI standard deviation score (BMI-SDS), systolic and diastolic blood pressure SDS, waist circumference, hemoglobin A1c, and levels of total cholesterol, triglycerides, aspartate aminotransferase (AST) and ALT than the control group. The suspected NAFLD group presented significantly higher U-Na-to-SGU ratios and cholesterol intake. The PNFI > 3 subgroup included a significantly larger proportion of males and subjects with higher BMI-SDS, AST and ALT values, and intake of water, carbohydrate, protein, calcium, phosphorus, iron and vitamin B2. After adjusting for confounders, male, BMI-SDS, AST, and protein and carbohydrate intake were independent risk factors for potential liver fibrosis. Niacin intake was an independent protective factor for potential liver fibrosis.