A few epidemiological data are available assessing the associations of intakes of sodium (Na) and potassium (K) with non-alcoholic fatty liver disease (NAFLD). We aimed to examine the associations of dietary intake of Na and K with the prevalence of ultrasound-diagnosed NAFLD. We performed a cross-sectional study of 100 177 participants (46 596 men and 53 581 women) who underwent a health screening examination and completed a FFQ at the Kangbuk Samsung Hospital Total Healthcare Centers, South Korea, between 2011 and 2013. NAFLD was defined by ultrasonographic detection of fatty liver in the absence of excessive alcohol intake or other known causes of liver disease. The proportion of NAFLD was 35·6 % for men and 9·8 % for women. Increasing prevalence of NAFLD was observed with increasing Na intake. The multivariable-adjusted prevalence ratios (PR) of NAFLD comparing the highest with the lowest quintile of energy-adjusted Na intake were 1·25 (95 % CI 1·18, 1·32; Ptrend<0·001) in men and 1·32 (95 % CI 1·18, 1·47; Ptrend <0·001) in women. However, when we additionally adjusted for body fat percentage, the association became attenuated; the corresponding PR of NAFLD were 1·15 (95 % CI 1·09, 1·21) in men and 1·06 (95 % CI 0·95, 1·17) in women. No inverse association was observed for energy-adjusted K intake. Our findings suggest that higher Na intake is associated with a greater prevalence of NAFLD in young and middle-aged asymptomatic adults, which might be partly mediated by adiposity.