This study was to investigate the correlation between oxidative balance score (OBS) and the prevalence of kidney stones in the general adult population. We conducted an analysis using data from the 2007-2018 National Health and Nutrition Examination Survey (NHANES) project, including 17,988 participants. The OBS was computed based on previous research, combining 16 dietary factors and 4 lifestyle factors. Multiple logistic regressions and restricted cubic spline (RCS) regressions were utilized to explore the associations between OBS and kidney stone prevalence. Our analysis included 1,622 adults with kidney stones and 16,366 adults without kidney stones. The average age of participants was 46.86 ± 0.27 years, with 50.72% being male. The median OBS was 22.00 (17.00, 27.00). After adjusting for all covariates, each one-unit increase in OBS was associated with a 3% decrease in kidney stone prevalence (odds ratio [OR] = 0.97 [0.96-0.98], P < 0.001). Moreover, compared to the first quartile, the fourth quartile of OBS (OR = 0.65 [0.50-0.84], P = 0.001) exhibited a negative association with kidney stone prevalence after adjusting for multiple variables. Furthermore, we observed a non-linear negative relationship between OBS and kidney stone prevalence, with inflection points at 18.2 (P for nonlinearity = 0.048). Stratified analysis did not identify any variables significantly affecting the results. Our findings indicate that a higher OBS is associated with a decreased prevalence of kidney stones in the general adult population.