Clarifying public willingness to pay (WTP) for farmland non‐point source pollution (FNSP) governance helps to establish an ecological compensation mechanism with public participation. This will reduce China's agricultural pollution and its environmental and food safety consequences while promoting sustainable development. Nevertheless, research has yet to reveal the public WTP within China's FNSP governance policy framework. To this end, a “2030‐oriented FNSP governance program” choice experiment with specific FNSP governance measures (fertilizer reduction, pesticide reduction, straw resource utilization, and mulch film recycling) was conducted in Gansu Province to reveal the public WTP for FNSP governance and its key influencing factors. Results from mixed logit models show that urban residents' marginal WTP (MWTP) for improving the FNSP status quo and different measures for fertilizer reduction, pesticide reduction, straw resource utilization, and mulch film recycling is ¥151.62, ¥1.33, ¥7.3, ¥4.85, and ¥3.16 annually, respectively, indicating the highest preference for reducing pesticides because of food safety problems. Meanwhile, the average individual WTP for optimal FNSP governance schemes is ¥513.02 annually, accounting for only 3.86‰ of annual household income; the regional aggregate social welfare of optimal FNSP governance is as high as ¥2038.23 million, accounting for 2.81% of GDP in 2020. This means that FNSP governance can bring substantial social welfare with a low household economic burden. In addition, the perception that food safety has improved in the past 5 years or an awareness of food safety incidents can enhance the willingness of urban residents to change the status quo of FNSP: the more serious the respondents perceive food safety problems to be, the stronger the above effects, indicating the critical impact of food safety factors on the public's WTP for FNSP governance. The study's findings highlight the potential to find socially acceptable ways to promote FNSP governance as well as provide insight into the relevant policymaking process from the standpoint of public participation and food safety.